#placeholder-api

1 messages · Page 137 of 1

turbid tide
#

nah

#

playerName

#

just having a string there

#

is like having a function and then returning

#

functions are not necessary. Its easier to understand if you have functions if you're a beginner but my code still works

odd jay
#

oh

#

cool, so what shall I test now?

turbid tide
#

the code I just gave above

#

the 3 lines

#

both for online and offline player

odd jay
#

alright 30sec

#

for online players, it return player names

#

for offline players, it returns Script Error, gonna check the console

#

should I?

turbid tide
#

ye

#

send the error over

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

odd jay
turbid tide
#

Ok one more thing to test

odd jay
#

sure

turbid tide
#

so it is a null

#

well that makes everything easy

odd jay
#

hmm I see, so it would need to replace when it is null... then how?

turbid tide
#
var player = BukkitServer.getPlayer(args[0])
if (player == null) "&7¡Offline!"
var placeholder = PlaceholderAPI.static.setPlaceholders(player, "%player" + "_ping%");

function ping() {
   if (placeholder >= 0 && placeholder < 150)
       return "&a" + placeholder;
   if (placeholder >= 150 && placeholder < 300)
       return "&2" + placeholder;
   if (placeholder >= 300 && placeholder < 600)
       return "&c" + placeholder;
   if (placeholder >= 600)
       return "&4" + placeholder;
}
ping();```
#

please try this

#

don't change anything to it

#

just try it as it is

odd jay
#

sure 30 sec

turbid tide
#

for both online and offline once again

odd jay
#

It breaks the same, showing raw placeholders as if it wouldn't exist

#

I think that the null thing, is invisible but you can't change it, but what you can do, is add something next to, in this case "offline", and it would be good to go

turbid tide
#

hmm

#

1 more debug them

odd jay
#

sure

turbid tide
#
var player = BukkitServer.getPlayer(args[0])
if (player === null) "&7¡Offline!"
"&a¡Online!"```
#

try this code

#

nothing else

odd jay
#

Sure, brb

#

and test it for offline players right?

#

Yeah it breaks

#

the null thing won't likely be changable

#

the only way would be by adding "Offline" next to it

turbid tide
#

both

#

hmm

odd jay
#

Yeah, its totally broken because of the null value getting changed

turbid tide
#

I wonder

#
var offlinePlayer = BukkitServer.getOfflinePlayer(args[0])
offlinePlayer.isOnline() ? "&a¡Online!" : "&7¡Offline!"``` Can you try this? @odd jay  ^
odd jay
#

Sure!

turbid tide
#

with offline and online Player

odd jay
#

It shows the raw javascript placeholder, as if it weren't existing

#

for both

#

did you miss the ";" at the end?

#

or it just doesn't go on this case?

turbid tide
#

no need for them

#

if you're on the latest version of the JS expansion

odd jay
#

Wait, I'm gonna make sure about that

#

I mean, I'm using PAPI 2.10.10-DEV-110
not sure how to check JavaScript's expansion version

turbid tide
#

just do /papi ecloud download Javascript then /papi reload

#

and it should download the latest

#

if you don't have it

odd jay
#

Sure

turbid tide
#

I think 1.6 is latest

odd jay
#

Now gonna test again the last one you sent me

#

Hmm, stills breaking

turbid tide
#

ye then its not the missing ;

odd jay
#

apparently

turbid tide
#

and no error in console btw?

#

can you check the new error in console if there is one

odd jay
#

it says that the placeholder is empty

turbid tide
#

Ok then try this:

#
var offlinePlayer = BukkitServer.getOfflinePlayer(args[0])
offlinePlayer.isOnline() ? "&a¡Online!" : "&7¡Offline!"
"None of the above"```
#

and see what happens

odd jay
#

sure! brb

#

Same, and same message on console

turbid tide
#

what if you just do this

#
args[0]```
#

nothing else

odd jay
#

lemme see

#

it returns the specified argument without any troubles

turbid tide
#

so I guess there isn't rly a way to check if the player is online

odd jay
#

yeah, I made a quick view of the JavaScript wiki page, and didn't found anything related to Online stuff

turbid tide
#

I don't know rly. I wish I knew xD

odd jay
# turbid tide I don't know rly. I wish I knew xD

then thats why it returns null when the player is offline, because it cannot even know if it is online or not.
So apparently that "null" value isn't changable, but yet you can add values next to it, (null + "&7Offline" I guess).

var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitServer.getPlayer(args[0]), "%player" + "_ping%");

function ping() {
   if (placeholder >= 0 && placeholder < 150)
       return "&a" + placeholder + "&8ms";
   if (placeholder >= 150 && placeholder < 300)
       return "&2" + placeholder + "&8ms";
   if (placeholder >= 300 && placeholder < 600)
       return "&c" + placeholder + "&8ms";
   if (placeholder >= 600)
       return "&4" + placeholder + "&8ms";
}
ping();
```Do you have any idea on how to add "&7Offline" next to the null value on this JS?
#

for the meanwhile Im gonna try something

turbid tide
#

no idea. But the thing is. I've tried to make a check. And see if the player is null or not

#

and it didn't work

#

like in one of the debugs I asked you to try

odd jay
#

Yea I kind of understood that one

#

but apparently on mines, the null value is detected in here

   if (placeholder >= 0 && placeholder < 150)
       return "&a" + placeholder + "&8ms";
```as if it was "0"
#

for some reason

#

fixed it :))

turbid tide
#

ugh?

odd jay
#
var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitServer.getPlayer(args[0]), "%player" + "_ping%");

function ping() {
   if (placeholder == 0)
       return placeholder + "&7Offline";
   if (placeholder > 0 && placeholder < 150)
       return "&a" + placeholder + "&8ms";
   if (placeholder >= 150 && placeholder < 300)
       return "&2" + placeholder + "&8ms";
   if (placeholder >= 300 && placeholder < 600)
       return "&c" + placeholder + "&8ms";
   if (placeholder >= 600)
       return "&4" + placeholder + "&8ms";
}
ping();
#

look at the first condition of the function, that fixed it apparently

turbid tide
#

wait

#

but didn't I give you this to try already?

#

I swear to god I did

odd jay
#

not sure lmao

turbid tide
#

I did ...

#

just didn't return placeholder + offlne

#

just offline

#

Idk I give up

#

glad to hear it works

#

lmao

odd jay
#

No, because you are replacing the null value in there

#

when you touch the null value of a placeholder, apparently the null value becomes agressive and kills the entire placeholder

#

the null value is pretty friendly though, It lets you put values next to it

#

Did I clarify well?

odd jay
#

Oh I forgot to ask about the last problem, it is related to symbols

#

so I wanted to put ✠ on a message inside JS

#

its CSS code its \2720

#

but apparently it returns something weird, wait I will look for the exact thing it displays

#

Nevermind I fixed it lol

#

it was \u2720 for JavaScript

turbid tide
#

ah

steep thorn
turbid tide
#

its null

#

but I tried

#

checking if its null and it would still error

odd jay
austere hawk
#

I using FactionsUltimate and I want to change f perm message

odd jay
austere hawk
#

idk

#

hello

#

can someone help me with something plz

#

Is there placeholder-item such a thing as

#

i have good gpu and a bad one how i make the good gpu work?

slow crystal
#

placeholder api

steep thorn
barren verge
#

how do I implement a placeholder into a placeholder?

#

I have a placeholder that makes a multiplication and I need to get a int value from another placeholder

#

to then multiply for 30

warm plover
mint fable
#

send the menu you have @warm plover

#

=paste

tender vaporBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
HelpChat Paste

warm plover
#

Okay, mind giving me 10 minutes? Sorry :/

mint fable
#

yep I've got time

warm plover
#

Thank you very much

mint fable
#

it has to accept it

#

if it does, you'll most likely have to use {placeholder} instead of %placeholder%

#

where are you trying to use it? in the math placeholder?

barren verge
#

I made a placeholder with JavaScript extension

mint fable
#

and you want to use another placeholder in that placeholder?

barren verge
#

ye

mint fable
#

do you only have to multiply it by 30? or does your javascript do other stuff too?

barren verge
#

only * 30

mint fable
#

so just use the math placeholder

barren verge
#

k

#

I didnt know it existed thats y I did that

mint fable
#

%math_{placeholder}*30%

barren verge
#

ok thx

mint fable
#

👍

warm plover
mint fable
#

oh my

#

what version are you on? I just spam tested some placeholders and had no issues

#

can you test the same thing with /papi parse me %placeholder%

#

@warm plover

warm plover
#

Of papi?

mint fable
#

server version

warm plover
#

Oh sorry 1.16.4

mint fable
#

hmm, I just tested on that version

#

can you try spamming it with /papi parse?

#

wait

#

I am blind

#

you didn't put mat: in front of anything

#

iron_ingot, stone_sword, etc.

#

coal

#

wooden_sword

#

you did checkitem_remove_iron_ingot instead of checkitem_remove_mat:iron_ingot

warm plover
#

oh wow....

#

thank you

mint fable
#

👍

#

I really like your menu

#

putting checkitem to good use

#

this is exactly what I was hoping for when I made it 👍 PlusOne

austere hawk
#

Can me translate papi?

#

example: %player_online% = Yes or No
I want to change

warm plover
mint fable
#

check the papi config @austere hawk

flint nacelle
#

Is it a way to detect what type of item player has in inventory, some not have matrial name (it has some type of nbt but has not successful get it read it)?

It cant get any placeholder or script read it or is it a special setup for this?

flint nacelle
#

Only material name is Material:potion and that not help.

flint nacelle
#

I has try all checkitems options, even new has meta (has even check java script (but not find any usefull).

proud tide
#

I think I have an issue with the playtime statistic placeholder

flint nacelle
#

your problem is?

proud tide
#

I can't upload it on imgur

tender vaporBOT
#

@proud tide,

Uploading Images

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

proud tide
#

alright got it

flint nacelle
#

and error is?

pearl current
#

Hello I could not connect to the LeaderHeads plugin. I need help. My english is bad, sorry

steep thorn
#

@pearl current the plugin page says to contact me and not ask in some public chat

turbid tide
#

you will probably use the PlayerList expansion to get the online players then I think there's a Server#playSound method

steep thorn
#

I don't feel like a JavaScript expansion would be the best way to do this

#

Because how would you decide when to play the sound? Most placeholders get parsed constantly

proud tide
#

I have this when using the playtime statistic

#

like it says 1d 39h

#

instead if 2d 15h

trim mist
#

Yeah it's a known bug. There's a PR to fix it waiting to be merged. Waiting on the PR author to fix a conflict and then I'll merge it.

flint nacelle
austere hawk
#

the pleasureholder of the VotigPlugin does not work

steep thorn
austere hawk
#

the variables of the votingPlugin do not work, I put /papi list and it does not come out

steep thorn
#

Define 'not work'

#

Does it show the raw variable when you parse it?

austere hawk
#

yes

#

I send you a private capture

manic sky
#

no

#

dont do private or dms

#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

manic sky
#

we are here for a reason

steep thorn
#

Show /papi dump please

#

@austere hawk

austere hawk
#

takes me to a link

steep thorn
#

Yeah

#

I said 'show'

#

Show the link

austere hawk
austere hawk
#

@balmy marten the pleasureholder of the VotigPlugin does not work

tender vaporBOT
#

@austere hawk,

Hey!

Please respect the rules, be patient and don't ping staff members!

austere hawk
#

fannycube the pleasureholder of the VotigPlugin does not work

dusk scarab
dusk scarab
#

Also: tag me if you respond lol

mild gale
dusk scarab
#

I am not really sure as I'm not the one who set up the plugin, let me check with the other guy

dusk scarab
#

That's what he told me

odd jay
#

{fastest} - 0.1 seconds.

#

{fast} - 0.5 seconds

#

{medium} - 1 seconds

#

{slow} - 5 seconds

#

{slowest} - 10 seconds.

#

{fastest} is actually more instantly

steep thorn
#

Read the first item of the FAQ and stop writing 'pleasureholder'

flint nacelle
#

is this possible to do with javascript? Is not so good at this so, this is probably not working. Anyone with good ideas? The idea is to run with a placeholder who has the name of the effect you want to remove and you get errors if you do not have the right item.

var messages = ["you have wrong item name"];
var numdata = "%player_name%." + IDv + "." + messages;
var IDv = 0;

function getMessage(ID) {
    if ( args.length == 2) {
        IDv = args[0];
        messages = [args[1]];
    }

function run() {
      if (args.length !== 1) {
      return "&cInvalid syntax;
    } else if (Removed 1 items from player() === clear %player_name% potion{Potion:"minecraft:[args[1]"} 1 {
      return yes ();
    }
function run() {
     if (args.length !== 1) {
    return "&cInvalid syntax;
    } else if (No items were found on playe() === clear %player_name% potion{Potion:"minecraft:[args[1]"} 1 {
    return no ();
        }


steep thorn
#

I guess you could do that with PlaceholderAPI, but it's kind of weird

#

It wasn't really designed to do this

flint nacelle
steep thorn
#

What about a Skript?

flint nacelle
steep thorn
#

I don't know, it's just a suggestion

#

Skript, not script

brisk coral
#

Ew.

flint nacelle
steep thorn
#

Yeah, but I don't know why you would need PlaceholderAPI in Skript?

flint nacelle
steep thorn
#

I don't really have any suggestions, but anything you can do in Javascript placeholders, you can also do in Skript

#

And I don't see why you would create a placeholder for something that gets executed once

#

Placeholders are usually evaluated constantly

flint nacelle
#

not need be a placeholder, string or other similar some transform it to true or false work.

#

and is not for one portion it is for all ingame and I miss not only in view_requirement but also so players can sell special type of effect (soo need to check if player have it or not).

#

It is way is not easy to get this too work, potions has no true material data and no one has make it so it can read nbt string, so have to make my own and it is not easy.

uneven sigil
#

Hey guys, I am using papi with leaderheads to display some statistics and all works great. Later today I used the placeholder from Player called : %player_minutes_lived%

#

It seems the placeholder is not in seconds, minutes, hours or milliseconds

#

but returns something else, maybe ticks ?

#

Is this a known issue ? Any ideas ?

steep thorn
#

@uneven sigil send me a private message please

uneven sigil
#

Certainly

flint nacelle
#

I fail to find a way too detect if a command, fail or not . So not solution on potions with effects yet.

timber current
#

Hi, is there any way to show someone's placeholders?

#

So if i want to see how many kills has a certain player, etc.

silver minnow
#

If you're trying to use another plugin it depends on the plugin, most don't support parsing for other players though

timber current
#

So

#

what will it do?

silver minnow
#

you can use the Statistic placeholders

timber current
#

Ye, but i want to do a menu for it so you could do like /profile <name>

#

So it would show the placeholders of the player.

silver minnow
#

DeluxeMenus?

timber current
#

Ye

silver minnow
#

try using %statistic_placeholderhere%

timber current
#

Wouldnt it show mine?

silver minnow
#

ohh

timber current
#

That's the case.

#

Do you know? I'm trying so hard, but i dunno how to do it

silver minnow
#

I'm not sure if it's possible with DeluxeMenus

timber current
#

Rylly?

#

I thought there would be a expension but i dunno

#

Anyone?

raw plaza
#

What can I modify to make work: Pinger

No IP and ports detected to show players etc.

timber current
#

Show the placeholder @raw plaza

raw plaza
timber current
#

@raw plaza Tell us what's the problem-

raw plaza
#

For example I add in Compass Menu: %pinger_players_ServerIP:25567%

#

But no show players, show number 0

timber current
#

the "ServerIP" must be your server ip

#

If you didn't add it.

raw plaza
#

Yes I added

timber current
#

Does the item update?

raw plaza
#

Yes and I reload the Menu and Placeholder

#

But no infomation

#

Lobby to other servers is

#

Bungee problem seems but I have no idea what to enable

timber current
#

Is the ip and port correct?

raw plaza
#

Yes

timber current
#

You tried it with tellraw?

raw plaza
#

No

timber current
#

Then try that

raw plaza
#

No show nothing in chat

timber current
#

Not a 0?

raw plaza
#

Solved, I must add 127.0.0.1

timber current
#

If it's local host then ye

raw plaza
#

Not local but bungee

timber current
#

Oh you dont have bungee forwarding dont u?

raw plaza
#

Yes

timber current
#

W8, now i know what you wanted to do.

#

You could easilly do it with a %bungee_online%

raw plaza
#

But I want

minplayers/maxplayers
statusserver (off / on)

#

And that expansion could add that

timber current
#

That's true.

#

Good job

raw plaza
#

👍 Thanks anyways

scarlet path
#

Hello
I'm using CheckItem to remove player heads with a name, but it's only removing if the amount (in the inventory) is bigger than 1.
%checkitem_remove_mat:SKULL_ITEM,amt:1,data:3,namecontains:&a&lGema%

green cloud
#

why some of my placeholders arent working?

trim mist
#

Sounds like either the expansion jar is bad or the playerpoints jar is bad.

green cloud
#

is there some way of finding out what jar is damaged or bad?

trim mist
#

You could recompile either one or try re-downloading them.

#

My guess is it's going to be the PlayerPoints jar.

green cloud
#

i tried to redownload them already

#

both of them

trim mist
#

Alrighty.

#

You could try contacting the developer of PlayerPoints then.

green cloud
#

ok i will try

toxic nest
#

Hi guys i have an issue with one of the statistics for placeholderapi %statistic_mine_block%
It does not count any blocks that i mined but it worked i have restarted the server reloaded the papi plugin etc.

turbid tide
#

@high swift why not use the %statistic_time_played% placeholder?

high swift
#

Bc It has seconds

turbid tide
#

oh I mean just use javascript to remove them

high swift
#

I don't want the seconds on the end

turbid tide
#

yes

#

you can use javascript placeholders to get that value and remove the seconjds

high swift
#

I don't know java :/

mental night
#

script^

#

two different things

scarlet yew
#

Hey guys just wondering if it's possible to link placeholders into a string value alongside it also linking to my config and getting a path. Kinda like how you can send messages but also put "ChatColor.translateAlternativeColorCodes" at the start to allow the player to use every single color code, I kinda wanna make that possible but for placeholders. Here is my line of code so far, and I have no clue how to do it haha. Please help. String welcomeback = ServerEssentials.getPlugin().getConfig().getString("welcome-back-message");

turbid tide
#

@scarlet yew I know Sellinq sent you here but developers rarely look in this channel xD #development is the best bet. Once again you can leave it here but I can't guarantee a fast naswer

#

answer*

mental night
#

👍

scarlet yew
#

🤣 okey dokey

#

Off I go again. I'll leave it in here too

sharp glacier
#

Could somebody give me the file to PlaceholderAPI?

#

Spigot is being a pain in the ass.

balmy marten
tender vaporBOT
#

@vocal folio,

Hey!

Please respect the rules, be patient and don't ping staff members!

silver minnow
#

._. also don't ghost ping

turbid tide
#

he actually asked like 2 questions but for some reasons removed both. he pinged cj

deep hollow
#

Hey, I'm so idiot for javascripts, I'm trying to multiple * 2 the %superior_island_radius% placeholder

#

but

#
    return Math.round(parseInt('%superior_island_radius%') * 2;
}
hp();``` is giving error, any suggestion please? Thanks 🙂
brisk coral
#

I mean would help if you showed the what the error was

turbid tide
#

@deep hollow this

deep hollow
#
    <eval>:2:40 Expected , but found ;
    return Math.round(parseInt('50') * 2;
                                        ^ in <eval> at line number 2 at column number 40```
stoic grove
#

I think you are missing ) at the end?

turbid tide
#

ah he is

#

indeed

#

you forgot a ) after 2

deep hollow
#

oh thanks 🙂

#

it works now

#

but it's showing 100.0 instead of 100

turbid tide
#

ye its weird for some reason I've seen that happening to me as well. What I did is convert it to a string, split by "." and take the first part

deep hollow
#

Oh

#

and how you did that?

#

converting it to a string and spliting by "."

turbid tide
#

I think you can just do js return Math.round(parseInt('%superior_island_radius%') * 2).split(".")[0];

#

also

#

the function is not necessary

#

those 4 lines

#

can be just 1

#
Math.round(parseInt('%superior_island_radius%') * 2).split(".")[0]```
#

this is all you need

#

no ;

#

at the end

#

no function

#

no return

deep hollow
#

is giving me that error

#

with the latest one you sent

#
    TypeError: Math.round(parseInt("50") * 2).split is not a function in <eval> at line number 1```
#

maybe I need the return?

#

oh nvm, it doesn't work with the return neither

turbid tide
#

yep yep

#

the problem is not the return

#

I'm trying to split anm int

#

thought maybe it will do some smart stuff and convert it by itself xD

#
var value = Math.round(parseInt('%superior_island_radius%') * 2) + ""
value.split(".")[0]```
#

wait

#

no

#

try this

deep hollow
#

yeah works fine now

#

much appreciated! 😄

turbid tide
#

👍

#

btw

#

if you didn't understand why the function is not required

#

is becasue it will find the first string

#

and will print that

#

in our case value.split(".")[0]

deep hollow
#

perf, got it!

#

ty again 🙂

stoic moon
#

hello guys i need placeholder for world counter

#

i try this but not working

#

please someone help me ❤️

scarlet yew
#

Hi there! Basically I am using LuckPerms and the Tab plugin to display the player's rank prefix in the Tablist. So I am using the placeholder %luckperms_prefix% for both the 'Rank:' and the bit next to my name. But for some reason one is update but one isn't. Please help!

steep thorn
#

The plugin 'LeaderHeads' can do this

steep thorn
warm topaz
#

self advertisement, u love to see it fingerguns

silver minnow
#

xD

mint fable
#

@flint nacelle you around?

flint nacelle
#

Yes.

mint fable
#

what server version do you run where you were testing potions?

flint nacelle
#

Now 1.16.4 but we has try this on older versions too and we has not get it work.

mint fable
#

so what placeholder are you using and can you send me a picture of the item?

flint nacelle
#

data,custommodeldata,matcontains,enchantments,enchanted,strict,inhand,

i has go true all methods.like this (%checkitem_data:"name"%)
here is one we has try but we has try several and not get it work.
https://i.imgur.com/Tbin2lz.png

mint fable
#

so what you want is potioneffect correct?

flint nacelle
#

yes

cloud shard
#

I'm hoping theres an easy answer here, but does anyone have a way to have a repeating timer? like it counts down from 2 hours, and then restarts and counts down again.

mint fable
#

@flint nacelle I just uploaded 1.9.4

#

that will ||should|| work with potions 1.9+

flint nacelle
#

will try.

mental night
#

@mint fable is it possible to check for attributes with checkitem expansion

tender vaporBOT
#

@mental night,

Hey!

Please respect the rules, be patient and don't ping staff members!

mental night
#

like to see the damage

mint fable
#

maybe in the next update

#

another day 😉

#

open it up

#

for now, I will get 🚀 and enjoy the day off 👍

flint nacelle
#

your update , soo long i have test it work fine. Have to got to figure out a bit how I would make it work well 🙂

If you add support for dmg, is will be crazy (and I think players will complain) 😄

mint fable
#

👍

mental night
#

why will players complain

#

tf

flint nacelle
#

If I for example use this when players repair tools, I can do it more expensive you more dmg it is 🙂

rare wave
#

Why do I see this? I have dev v2.10.10

mental night
#

i don’t see how players would complain

#

you don’t have to use it

mint fable
#

no, he's saying players will be complaining since they have to grind more now that there is more damage that's achievable (I believe)

#

as in a good kind of complaining

#

hence the laughs and smiley faces

mental night
#

ah

mint fable
#

ye

#

now, i slep

mental night
#

gn

rare wave
#

Hello?

mental night
#

?

turbid tide
#

but idk what that is. I just see a dynmap photo

mental night
#

yeah it’s too small to see what’s wrong i assume the red text idk

rare wave
turbid tide
#

ah. you can disable the update check from config.yml

#

you can either ignore it

#

or disable it

rare wave
#

why I have a higher version

#

why its ask to update?

turbid tide
#

its broken

#

it will be fixed

#

in a future dev build

#

you can just ignore it

shut orchid
#

i did papi ecloud download luckperms, papi reload and still looks like this, any ideas?

turbid tide
#

you didn't do /papi reload

#

from the photo

#

it looks like you downloaded it, it suggested the reload

#

but you didn't do it

shut orchid
#

i did it

#

and it said nothing

#

i got this error

tender vaporBOT
#
📋 Your paste, pulitia romina
https://paste.helpch.at/iqezixupof

A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.

turbid tide
#

weird

#

can you go to plugins/PlaceholderAPI/expansion

#

and make sure that there is the luckperms expansion in there?

mental night
#

if not manually download it

shut orchid
#

it is there

turbid tide
#

try deleting it

#

going here

#

downloading it manually

#

adding it to the same folder you deleted the old one from

#

and then doing /papi reload

shut orchid
#

it half worked

turbid tide
#

well the other one is for the Player expansion

#

to the exact same

shut orchid
#

works, ty

sharp sail
#

How can I parse a placeholder inside an script using javascript extension?

steep thorn
#

@sharp sail is it a hardcoded placeholder or something dynamic

sharp sail
#

any idea how can I make it ?

steep thorn
#

Answer my question first please

sharp sail
#

I don't really understand it because lang barrier.

steep thorn
#

Just explain what you're trying to do

sharp sail
#

I was looking something like %javascript_parsethis_get,vault_rankprefix_$player%

steep thorn
#

And what should that do?

#

Return the VaultPrefix of another user?

sharp sail
#

yes

steep thorn
sharp sail
#

Yes... that expansion doesn't appear to work

steep thorn
#

It works perfectly fine

#

Show what you've tried

sharp sail
#

I get ArrayIndexOutOfBoundsException 👀

steep thorn
sharp sail
#

the command or the script

#

I used /papi parse me %parseother_Sainted_vault_prefix%

#

but returns %vault_rankprefix_playername%

steep thorn
#

That's not right

#

You need the { }

#

For the placeholder

sharp sail
#

let me try

#

It did work

#

welp thank you!

steep thorn
#

np

mint fable
#

@flint nacelle yo

#

you're using it slightly wrong

#

%checkitem_potionextended_potiontype:FIRE_RESISTANCE,amt:1%

#

%checkitem_potionextended,potiontype:FIRE_RESISTANCE,amt:1%

#

comma not _

#

so give that a go

#

same for upgraded btw

flint nacelle
#

aaa lol I always mess something up 🙂 will try.

mint fable
#

👍 lmk

flint nacelle
#

strange it work even if i get it wrong lol 🙂

mint fable
#

I haven't done anything with the extended/upgraded with strict btw

#

it basically just ignored the potionextended_ part I bet

flint nacelle
#

I check now and potionextended,potionupgraded is no problem (is detect both "boosted" and extended is it should with one placeholder, but normal potion can I not separate from the rest (it detect all tree type with what I can use for normal potion and only way around i have see is set two other to "no" )).

mint fable
#

I gotta add in strict

#

hmm

#

maybe I'll just make it true/false

flint nacelle
#

👍

mint fable
#

can you test that? it's now potionextended:<boolean>

#

(true/false)

mint fable
#

@flint nacelle this

flint nacelle
#

will test

flint nacelle
#

if i use potionextended:true or false it ignore it (only read potionextended).

mint fable
#

hmm

#

ya that was my bad woops forgot to actually implement it

flint nacelle
#

🙂 no problems

mint fable
#

give that a go

snow wagon
#

Hello how to activate PlaceHolder ?

mint fable
#

What do you mean?

snow wagon
#

Well when I but% player_name% in my menu it doesn't work

mint fable
#

run those commands

snow wagon
#

Thanks

flint nacelle
#

ups, it work 🙂 PlusOne will test it more, soo far it work as expected.

mint fable
#

noice i will update

flint nacelle
#

Smaller bug I find , potionextended:false work fine but not potionextended:true (this work however potionextended and give right output). same i think with potionupgraded (no it work if i´m not miss somthing in my speed test).

mint fable
#

o no

#

i wish i could delete versions ugh

#

ok updated

flint nacelle
#

👍 will test so fast i have time 🙂

flint nacelle
#

I have test new version and it seams work (all part of the new potion,will report if I find any nasty bugs 😉 ). PlusOne

mint fable
#

👍

austere hawk
#

hello i found a bug in a placeholder of statistic
%statistic_time_played%
This Shows Total hours and not resting after i played 24H

it should be resting the hours and adding another day as played
what can i do ?

turbid tide
#

ah or maybe the Static expansion build

rich glen
#

[12:52:08 WARN]: [PlaceholderAPI] listplayers is attempting to register placeholders via a PlaceholderHook class which is no longer supported! have been getting this after updating my plugin to 1.16.4

#

and this is how I register it

        if(manager.getPlugin("PlaceholderAPI") != null)
        {
            new Placeholders(this).register();
        }
turbid tide
#

the listplayers is opensource? or are you making another one?

#

because I have to let you know there is an expansion called that

#

already

rich glen
#

oh, I just realised it's in a different class

#

it's a different thing, it's custom, mine

#

just the name may be similar

turbid tide
#

ok ok. ye so you figured out what the problem is?

rich glen
#

this is it.

turbid tide
#

ye return PlaceholderAPI.registerPlaceholderHook(getIdentifier(), this);

#

PlaceholderHook is outdated

#

no longer supported on papi 2.10.7

rich glen
#

how do I change it?

turbid tide
#

I mean you have to follow the wiki to see how you're suppose to register a hook now. new Placeholders(this).register(); ah I just realised Placeholders(this).register() there is already a register method so you'rs takes over I guess

#

so basically use the provided method from PAPI instead of yours

#

this is the one provided by PAPi public boolean register() { return this.getPlaceholderAPI().getLocalExpansionManager().register(this); }

rich glen
#

yeah, I opened the project, bumped the papi version

#

noticed it says the old register method is gonna get deleted

turbid tide
#

yeah it was deprecated for quite a while

#

and they finally decided to remove it

flint nacelle
#

I have a problem, should cooldown placeholder save data even when you do server restart?

austere hawk
#

admin

#

please add command to download placeholders from PowerRanks

#

i must have it

[EDIT 13:15]
okay i find command to enable placeholderapi in powerranks 🙂

balmy marten
#

Seems like the placeholders are built into PowerRanks now

#

hence why theres no expansion

flint nacelle
#

Like it is now, it not save data on restart and the file it save in is not same as it should save in.

raw plaza
#

I can get player top kills and show their skull/head? [Placeholder and Skull of player at same time]

steep thorn
#

@raw plaza show the skull where? DeluxeMenus?

raw plaza
#

Yes @steep thorn

#

Show Top Kills by skull at the moment

steep thorn
#

Do you have a placeholder for that?

raw plaza
#

Yes

steep thorn
#

@raw plaza have you checked this?

#

It shows you how you can use a placeholder for the skull items

raw plaza
#

Thks

barren verge
#

/papi parse me %math_{math_{playerlist_online,perm,yes,amount,cutscene}*1000}-40%

this gives this error
The provided value was invalid!
Reason: Unknown operator '!' at position 31

#

theres no '!' tho

turbid tide
#

@barren verge can you do /papi parse me %playerlist_online,perm,yes,amount,cutscene% and tell me exactly what it says?

barren verge
#

1

#

if I do with only *1000 it works

turbid tide
#

try /papi parse me %math_{playerlist_online,perm,yes,amount,cutscene}*1000% now

barren verge
#

if I add -40 operation it doesnt

turbid tide
#

maybe you can't use placeholder in placeholder in placeholder.

barren verge
#

actually I can do 1 math_ placeholder

turbid tide
#

but that's just a guess

turbid tide
#

ah

#

makes sense

#

actually

barren verge
#

but I dont need it thinking baout it

turbid tide
#

ye you don't

barren verge
#

lol

#

Im dumb

#

XD

#

thx btw

turbid tide
#

%math_{playerlist_online,perm,yes,amount,cutscene}*1000-40%

#

this will work

#

just as well

barren verge
#

yep

#

thx for ur time btw

turbid tide
#

also you might want to use [precision:0]

#

%math_[precision:0]{playerlist_online,perm,yes,amount,cutscene}*1000-40%

#

that's your choice

barren verge
#

whats that?

turbid tide
#

but that will remove the .00

#

because rn this will return 9960.00

barren verge
#

ah ok

turbid tide
#

👍

barren verge
#

thx again

turbid tide
#

no problem

flint nacelle
#

I have cooldown script from placeholder-javascript and it reset the time when i do a serverrestart , is it purpose to tho like that?

barren verge
#

probably

austere hawk
#

bruh can you guys fix the console error

#

no actual functionality affected but its really annoying

#

everytime i stop my server papi screaches in console

turbid tide
austere hawk
#

no the one with townychat

turbid tide
#

Can I see it?

austere hawk
#

also sorry about how i started to convo i confused this with deluxechat thought this was something that had been around for awhile

#

but if this is your first time hearing it my bad

turbid tide
#

Oh that one... Nothing we can do. Well technically PAPI could remove that check entirely but the Towny expansion dev could as well just add the method

#

Actually don't think PAPI can remove the check

austere hawk
#

should i talk to townychat dev

turbid tide
#

Probably

#

All they have to do is add 3 lines of code

#

Well

#

Dk if they made the expansion ass well

austere hawk
#

!papi

#

-papi <expansion>

soft tapir
#

Anyone know why placeholders arent working, when ever I do /papi ecloud command it always comes back with

No cloud expansions are available at this time.

warm topaz
#

?ecloudblock

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

soft tapir
#

@warm topaz Still placeholders dont work any papi ecloud command I run says

No cloud expansions are available at this time.

turbid tide
#

well

#

the ecloud command doesn't work

#

because most likely

#

your host doesn't allow connections to the ecloud

#

so download the expansions manually

soft tapir
#

I did, it still isnt working tho and I rebooted

#

Unless I need to rename the jar file

turbid tide
#

you don't

#

send me a screenshot of how your plugins/placeholderAPI/expansions folder looks like

#

do /papi reload

#

and check the console

#

see what happens

soft tapir
#

Alright

#

It's fixed..

#

xD

mental night
#

smh limit

mint fable
#

Can I get some testers to test the checkitem 2.0.0?

#

I added give_

#

to give items 👍

#

Should work with nameequals mat amt data custommodeldata enchantments potiontype potionextended potionupgraded.

Will return yes if all items are deposited successfully and will return the number of items missed if not.

#

potion only works if it's a potion I believe

#

so far I've tested all and it did work so...

flint nacelle
#

Can test :) Wich versions shall I try on?

elfin spruce
#

Hi, how can I create a placeholder for Guilds?

steep thorn
#

@elfin spruce what do you mean with 'create'?

#

Develope one, use one?

elfin spruce
#

develop one to modify the original Guilds "prefix" placeholder

#

that is, add a placeholder with a different format for Guild Tag

#

As well as the config it offers to use "%guilds_formatted%" with options "Left and right braket"

#

Example: [GuildName] or without brakets GuildName

#

But in prefixes

#

I want to add it like this: [GuildPrefix] with the color that the user chooses when using the command

steep thorn
#

'the color that the user chooses using the command'

#

Seems like you want a custom plugin?

elfin spruce
#

You can choose the color you want in your guild, both name and prefix, originally, just by using &6 or another color code

#

Example: /guild prefix &9Prefix

#

I don't want a custom plugin, all good!

#

But yes a custom placeholder

steep thorn
#

You could use Javascript placeholders for this, seems pretty doable.

#

But why would you need a custom placeholder, couln't you just insert the brackets etc. in the place that you're planning to use the custom placeholder?

elfin spruce
#

I could do it, but the brackets that I would add would be with a color that I would choose, and I want the placeholder to load the brackets of the color that the user chose its guild prefix

#

Example:
/guild prefix &6Cool
The placeholder %guilds_prefix% It will show only the prefix name and color, example: &6Cool

Instead I want a placeholder that adds the brackets to the same color that the user has chosen
Example: &6[Cool]

#

If I did this, it would be a single color choice for all the brackets

#

Without using any programming

austere hawk
#

hi
i own three server
one for lobby
two for survival
can player create guild in lobby and use the guild prefix in survival server?

turbid tide
steep thorn
turbid tide
#

please send it here

#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

turbid tide
#

@austere hawk ^

#

and please don't use all channels. Just one is enough

#

use imgur to send the image

#

huh?

mental night
#

:?

turbid tide
#

well then paste the error

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

turbid tide
#

^

carmine veldt
#

You should probably wait until you're on computer before asking for support next time

silver minnow
#

or download discord

#

um what are the errors?

#

k

turbid tide
#

send it using HasteBin

silver minnow
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

silver minnow
#

right there

#

wait

#

isn't helpchat paste the same as hastebin tho

tender vaporBOT
#

@austere hawk,

Possible Solution Found:

There seems to be some invalid syntax in your config! You can paste it into https://yaml.helpch.at/ in order to find out where your issue is!

manic sky
#

holy

#

thats a lot of yaml errors

#

this isnt just papi

#

its also viaversion

#

and many other plugins

#

have yaml errors

mental night
#

idisguise...

#

jesus

#

just the amount of errors

manic sky
#

what version is your server?

#

you are using

#

the 1.13 version

#

of idisguise

#

for 1.12.2

#

...

#

yeah you are

#

[20:41:30] [Server thread/INFO]: [iDisguise] Loading iDisguise v5.8.2

silver minnow
#

uhhhh you're minecraft version doesn't support iDisguise, you need an outdated version of iDisguise due to your minecraft version being outdated

manic sky
#

look at the page

#

it tells you the version

#

don't just download random plugins

#

and not worry about the versions they are supported for

silver minnow
#

especially since your minecraft version is 1.12

manic sky
#

then download the correct version..?

silver minnow
#

Conclure is just saying to use plugins only if it supports the version (or use the correct version)

manic sky
#

I'm not saying to remove them

#

And also a lot of your plugins have issues, they aren't enabling at all

#

its not going to work

#

you are still going to get yaml errors

#

you have to fix those as well

#

[20:41:28] [Server thread/ERROR]: Could not load 'plugins\CommandNPC-1.9.1.jar' in folder 'plugins'

[20:41:29] [Server thread/ERROR]: Could not load 'plugins\ViaBackwards-3.2.0.jar' in folder 'plugins'

[20:41:29] [Server thread/ERROR]: Could not load 'plugins\ViaRewind-1.5.3.jar' in folder 'plugins'

#

Did you verify?

#

Did you use a yaml validator

#

sigh

tender vaporBOT
#
FAQ Answer:

You can check the syntax of your configs using the online parser here, https://yaml.helpch.at/

silver minnow
#

ok

manic sky
#

full log

silver minnow
#

did u input the yaml files?

#

or the console logs

#

?

manic sky
#

:d

silver minnow
#

?yaml

tender vaporBOT
#
FAQ Answer:

You can check the syntax of your configs using the online parser here, https://yaml.helpch.at/

silver minnow
#

in this, what did you put in the parser

#

;-;

#

you have to put the config files

manic sky
silver minnow
#

the ones with errors

#

not the logs that tell you that there are errors

#

lol

#

both dyno and barry

#

can you send your latest.log again

#

2

#
org.bukkit.plugin.UnknownDependencyException: Citizens
```might want to download Citizens if you want CommandNPC
#

unless

#

citizens isn't enabling

#

nvm

#

um

#

Citizens isn't in the log

#

Did you install the Citizens plugin..?

#

-_-

manic sky
#

wtf??

#

Bro

#

?????????????/

silver minnow
#

.....

tender vaporBOT
#

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

manic sky
#

Why are you pinging us

carmine veldt
#

banned

turbid tide
#

lmao

junior musk
#

genius

turbid tide
#

he had demons in his pc ...

#

poor guy

carmine veldt
#

he needs jesus

junior musk
#

seems for like he had demons in himself tbh

manic sky
#

Lol

mental night
#

;-;

#

bloody people

austere hawk
#

Complete beginner. I want to display the balance of a person on the right. I have Essentials and LuckPerms installed. Was told I need PAPI and Vault extension. A kind soul redirected me here.

#

Would appreciate it if someone could tell me what to do.

mint fable
#

You also need some sort of scoreboard plugin

#

to download the expansions run
/papi ecloud download <expansion>
then
/papi reload

#

example: /papi ecloud download player

tender vaporBOT
#
Placeholderapi
Useful Links & Information:

A resource that allows information from your favorite plugins be shown practically anywhere!
Spigot
Wiki
Placeholder-List
GitHub
eCloud

mint fable
#

you can view all placeholders on the list above this

#

@austere hawk

austere hawk
#

Tysm.

mint fable
#

I put an example

#

you can see more info on the placeholder-list

#

As the person that told you said, you need the PAPI and Vault Extensions

#

(expansion)

#

PAPI is just an API that allows other plugins/expansions to add placeholders to your game

austere hawk
#

Oh so the vault is an example of an expansion?

mint fable
#

yep

#

same for player

mint fable
#

uh

#

in-game

#

or in console

austere hawk
#

Ah k.

#

And what do I need to do to set them up?

mint fable
#

have you gotten titlemanager?

austere hawk
#

Yup.

#

Cj, you there?

#

@mint fable ?

#

Sorry for the ping

mint fable
#

ya, so once you get that setup you just add the placeholder into your scoreboard

#

Have you checked out the list to see all available placeholders?

austere hawk
#

Why does it take so much work to add a scoreboard lmfao.

silver minnow
#

not really

#

just install a scoreboard plugin and put whatever text you want

#

can't get simpler

austere hawk
#

I'm confused

silver minnow
#

if you want placeholders then just download expansions

#

then put the placeholders in

austere hawk
#

Ok so I do this in game.

#

to download the expansions run
/papi ecloud download <expansion>
then
/papi reload

#

Right as Cj said

austere hawk
#

Then what?

silver minnow
#

download vault expansion

#

then reload papi

austere hawk
#

/papi ecloud download vault

#

this right

#

then /papi reload

silver minnow
#

yes

austere hawk
#

then?

mint fable
#

add the placeholder to your scoreboard

austere hawk
#

howww

silver minnow
mint fable
#

go into the titlemanager folder and edit the config

warm topaz
#

%placeholder%

silver minnow
#

%vault_eco_balance_commas%

austere hawk
#

woah

mint fable
#

You have configured plugins, right?

austere hawk
#

What does that mean.....

silver minnow
#

welp

mint fable
#

...

austere hawk
#

As I said I'm a beginner.

silver minnow
#

hm

mint fable
#

go to your plugins/titlemanager/ folder

austere hawk
#

Okay..

#

Then?

silver minnow
#

what files are there

mint fable
#

^

austere hawk
#

config.yml

silver minnow
#

and

#

that's it?

austere hawk
#

animations

silver minnow
#

aHa

mint fable
#

I think it's in config

silver minnow
#

1 more?

austere hawk
#

playerinfo.sqlite

#

smth

silver minnow
#

o

#

we just need yml files

#

😄

mint fable
#

but titlemanager is a very in-depth plugin

silver minnow
#

yes

mint fable
#

In config.yml you'll find the setup for the scoreboard

silver minnow
#

open up config.yml

austere hawk
silver minnow
#

and scroll down to scoreboard

mint fable
#

nothing to be scared of, you've never configured a plugin before and titlemanager just has a TON of config options

#

so it could easily be overwhelming

#

if you want to continue using titlemanager (even though simplescore will most likely work for your needs) you can always refer to the wiki here: https://tmdocs.tarkan.dev/

#

or their discord (linked on plugin page)

austere hawk
#

it took me 4 hrs just to get here 😦

austere hawk
silver minnow
#

;-;

austere hawk
#

could ya send an ss

silver minnow
#

no

austere hawk
#

welp

silver minnow
#

i havent configured a plugin in a while

#

so i dont remember

#

what it looks like

austere hawk
#

YOOO

#

I found scoreboard.

#

Pog.

#

@silver minnow @mint fable

mint fable
#

are you still using titlemanager

austere hawk
#

YES

#

in config.yml

mint fable
#

well you see the lines?

#

just change them to what you want them to be

#

remove/add/whatever

austere hawk
#

Sets the scoreboard (sidebar) that is sent to the player

scoreboard:

Toggles this feature

enabled: true

The title displayed at the very top of the scoreboard

WARNING! (1.12 or below ONLY) The title must consist of 32 or less characters (this includes color codes)

title: '${shine:[0;2;0][0;25;0][0;25;0][&3&l;&b&l]My Server}'

The lines of the scoreboard (Maximum of 15 lines allowed)

lines:

  • '&b&m----------------------------------'
  • '&b> &3&lPlayer Name:'
  • '&b%{name}'
  • '&r'
  • '&b> &3&lPing:'
  • '&b%{ping} MS'
  • '&r&r'
  • '&b> &3&lServer Time:'
  • '&b%{server-time}'
  • '&b&m----------------------------------&r'

A list of worlds that the Scoreboard should not be shown in.

disabled-worlds:

  • 'my-disabled-world'
  • 'my-disabled-world-nether'
#

that^

mint fable
#

?codeblocks

tender vaporBOT
#
FAQ Answer:

Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```

For example:
```yaml
test:

  • “hi”
  • “there”
    ```

Produces:

test:
- “hi”
- “there”```
mint fable
#

btw ^

#

but why send it? just edit the lines

austere hawk
#

which lines...

#

Oh.

#

I get it.

#
  - '&b> &3&lPlayer Name:'
  - '&b%{name}'
  - '&r'
  - '&b> &3&lPing:'
  - '&b%{ping} MS'
  - '&r&r'
  - '&b> &3&lServer Time:'
  - '&b%{server-time}'
  - '&b&m----------------------------------&r'
#

This right.

mint fable
#

yes

austere hawk
#

what do i edit in it ;-;

mint fable
#

what program are you using now?

#

notepad?

austere hawk
#

interface on a website

mint fable
#

oh brother

austere hawk
#

..

mint fable
#

there's a lot to explain here

austere hawk
#

should i give up..

mint fable
#

are you able to edit it on the website or just view it

austere hawk
#

i can edit.

mint fable
#

then edit it on the website

austere hawk
#

yea.

#

but what do I edit .-.

mint fable
#

how do you want your scoreboard to look?

austere hawk
#

what would the scoreboard show? the balance right.

mint fable
#

||I still suggest simplescore||

#

are you in-game?

#

right now the scoreboard shows all that nonsense

#
  - '&b&m----------------------------------'
  - '&b● &3&lPlayer Name:'
  - '&b%{name}'
  - '&r'
  - '&b● &3&lPing:'
  - '&b%{ping} MS'
  - '&r&r'
  - '&b● &3&lServer Time:'
  - '&b%{server-time}'
  - '&b&m----------------------------------&r'```
#

it shows the name, their ping, the server time

#

cut out whatever you don't want, and add what you do want

#

Including the placeholders we mentioned earlier

austere hawk
#

I still have to do this,

#

/papi ecloud download <expansion>
then
/papi reload

#

one sec.

#

One more thing @mint fable

#

This would show their balance of the economy in essentials right.

mint fable
#

yes

#

essentials uses vault for economy

austere hawk
#

Is there a plugin to get money?

#

Like to break wood that gives you money etc.

mint fable
#

uh

#

=plugin jobs

austere hawk
#

And to get jobs like breaking wood from a villager.

tender vaporBOT
#

v4.16.3 by Zrips
A fully configurable plugin that allows you to get paid for breaking, placing, killing, fishing...

Downloads:

228,300

Likes:

670

Reviews:

415

mint fable
#

I think jobs has a pretty good default config as well ^

#

so you could use that probably with minimal configuring

austere hawk
#

And is there a plugin to sell stuff?

#

with a villager interface?

#

@mint fable ?

mint fable
austere hawk
#

But when I google stuff, I find outdated stuff :/

mint fable
#

villager shop is what I googled

austere hawk
#

@mint fable

#

/papi ecloud download vault doesnt work.

#

Unknown command.

#

wait one sec.