#placeholder-api

1 messages ยท Page 152 of 1

viral knot
junior musk
#

?player

tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

zenith pebble
#

?help

tender vaporBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

tawdry saddle
#

Caused by: java.lang.ExceptionInInitializerError

#

after i use intellij to build my plugin , it has a lot errors

#

why

#

Caused by: java.lang.NullPointerException: Cannot invoke "network.chrisrak.Core.getDescription()" because "network.chrisrak.Core.instance" is null

#

also this one

#

public static Core instance;
public static Core instance() { return instance; }

errant iron
#

did you ever instantiate the instance variable?

tawdry saddle
#

what do you mean instantiate instance veriable

#

instance = this;

#

like this?

vivid sparrow
#

Yes

tawdry saddle
#

it works now , thx

tawdry saddle
#

Cannot resolve symbol 'paramBlockBreakEvent'

#

LOL why

#

i want to check if player break block and i change my placeholder

silver minnow
tawdry saddle
#

oh ok

silver minnow
#

a lot of devs dont check this channel

tawdry saddle
#

thx

austere hawk
#

Hello i can't use papi with chestcommand ๐Ÿ˜ฆ

turbid tide
finite locust
#

Hey i'm curious, would it be possible to make a FactionsUUID expansion? I think it could be awesome because the actual factions expansions didn't get an update since 2018, same as the real faction plugin made by Cayorion

turbid tide
#

yo @warm topaz did anyone update the expansion or was it never updated?

pearl sinew
#

Hey, I'm from a company looking into sponsoring this plugin, if a relevant person could DM me in due course, that'd be appreciated ๐Ÿ™‚ Thanks

warm topaz
#

someone else updates FUUID i think

turbid tide
#

huh can't find it

warm topaz
#

nor can i

finite locust
#

Pog, could it be possible to update it please? Because it isn't working at the moment

turbid tide
#

Well we thought it was updated but I can't even find the original source so it might not even be Open Source. So no one is able to update it

finite locust
#

Oof, So I guess we will need to wait a answer from a ADM?

warm topaz
#

wait is this mcore factions or different?

turbid tide
#

fuuid

finite locust
#

FactionsUUID is a different one

#

The actual factions expansion has been made for Mcore

#

But Mcore didn't get an update since 2018

warm topaz
#

i have the updated version of that one fingerguns

#

but no fuuid then

turbid tide
#

bcz I don't think its on the ecloud is it?

finite locust
#

I don't have any expansion for Fuuid, I was asking if it would be possible to create one! (I'm pretty sorry if my question wasn't clear enough, english isn't my primary language )

#

Because Mcore Factions doesn't work well on 1.16.5 since he didn't get any update

turbid tide
#

wait but are you using MCore or FactionsUuid?

finite locust
#

FactionsUuid

turbid tide
#

you'll have to contact the current developer to update it if it doesn't work

finite locust
#

It is, do you know where I could find every % of the plugin?

warm topaz
finite locust
#

Thank you very much guys!

#

Sorry for the disturbing, I wish you all a nice day

turbid tide
#

no problem ๐Ÿ‘

hexed current
#

hello, the name of my item is "Custom", but the result is equal to "NO"
%checkitem_nameequals:Custom%

#

where is my problem?

austere hawk
#

Why i can't use chestcommands ? with papi ๐Ÿ˜ฆ

tender vaporBOT
#
๐Ÿ“‹ Your paste, Logan Paul
https://paste.helpch.at/inebatepiq

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

austere hawk
#

sorry

drifting nimbus
#

actually no clue

subtle patrol
#

hi there it seems that papi and buycraft are having some issue?

[18:45:45] [Craft Scheduler Thread - 47 - PlaceholderAPI/WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.9 generated an exception while executing task 1694
java.lang.NullPointerException: null
    at it.alexdev_.buycraftapi.FileManager.FileManager.containsSection(FileManager.java:303) ~[?:?]
    at it.alexdev_.buycraftapi.FileManager.FileManager.calcCurrentMonth(FileManager.java:289) ~[?:?]
    at it.alexdev_.buycraftapi.Tasks.Tasks$5.run(Tasks.java:81) ~[?:?]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Tuinity-"06ce05b"]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:58) ~[patched_1.16.5.jar:git-Tuinity-"06ce05b"]
    at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Tuinity-"06ce05b"]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]```
trim mist
#

Send that to the developer of Buyecraft.

silver minnow
#

BuyCraft*

austere hawk
#

How do i get custom placeholders? that are not in the wiki?

#

like:

#

Placeholder
Description
%cp-player-displayname%
Players Display Name
%cp-player-name%
Players Name
%cp-player-x%
Players X Position
%cp-player-y%
Players Y Position
%cp-player-z%
Players Z Position
%cp-player-input%
The player will be asked to enter input in the chat to determine what the placeholder will be changed to. Using this placeholder multiple times per item will duplicate the input per item.
%cp-player-world%
World name the player is located
%cp-player-balance%
Players Balance (needs an economy & Vault)
%cp-player-online-1-find%
You can change the number 1, to any number, it will check server slots and find the player in that slot. If you are the only one online and use the number 1, It will show up as yourself. If you then make it 2, it will show offline, since there is only one player on the server.

silver minnow
#

uh

silver minnow
austere hawk
#

how tho?

#

Do i need to search each plugin that has those?

silver minnow
#

wdym

austere hawk
#

like in the wiki

silver minnow
#

the wiki doesn't have everything

austere hawk
#

yes

silver minnow
#

%player-name% exists

#

%player_displayname% also exists

#

same with vault balanace

#

and world too

#

%player_world%

austere hawk
#

Ok ill try

#

thx

silver minnow
#

placeholders dont appear from thin air :p

#

people have to code them

austere hawk
#

๐Ÿ˜„ ok

silver minnow
#

@austere hawk ^

#

theres %player_x%, along with y and z

austere hawk
#

Ok

sour igloo
#

Hi, I neeed help with Mcmmo plugin. I need placeholders for top players per skill, because i want to make top hologram on spawn. Thank yu and best regards

random wadi
#

Is there any way to change a placeholder name?

#

For example I'm using a factions plugin that shows their clan, and I want to put brackets around their name

#

And when they're not in a faction, the brackets are still there

#

(I'm using tab)

smoky spoke
#

is [precison:0] broken?

errant iron
#

you need to do %math_0-----% instead

smoky spoke
#

ok

smoky spoke
errant iron
#

%math_0_2+1%

random wadi
#

How do I use StringUtils.replace

random wadi
#

I'm new to this, how would I change a placeholder

errant iron
#

are you implementing placeholderapi in your plugin?

random wadi
#

no

austere hawk
#

is there a placeholder i can use to add the player who has opened a menu made in deluxe menu's head?

random wadi
#

I want to change a placeholder

#

In an existing plugin

austere hawk
#

@errant iron

#

is there a placeholder i can use to add the player who has opened a menu made in deluxe menu's head?

errant iron
austere hawk
#

also a time played placeholder?

errant iron
#

What are you trying to do, like big picture?

random wadi
errant iron
#

What are you trying to do? Is this in a plugin? Or are you trying to modify a placeholder after the fact in like TAB or something

random wadi
#

I'm trying to modify a placeholder

#

For example %faction_name% turns out as Cool
When I want %faction_name% to turn out as [Cool]

(Cool is an example of someone setting their faction name)

errant iron
#

Is this in a plugin?

random wadi
#

Yes

errant iron
#

like, you're editing java code?

random wadi
#

I don't know what I'm doing, I'm just trying to modify a placeholder to have a different outcome

errant iron
#

I need to understand the context

#

Is this is a config.yml of a tab editing plugin or something?

#

or are you making another plugin or extension that uses a placeholder

random wadi
#

No, it's part of PlaceholderAPI

#

Let me show you one sec

errant iron
#

In what context

#

Like what are you doing to edit it

#

java? config.yml? chat?

random wadi
#

Java

errant iron
#

oh just modify the string wdym

random wadi
#

Where can I modify it at

errant iron
#

huh

#

are you making your own plugin/extension?

#

that uses another placeholder?

random wadi
#

I just want to change a placeholder that already belongs to another plugin

errant iron
#

you can't do that without modifying the source code

#

which you could do

random wadi
#

How would I do that

errant iron
#

but I'm saying there's probably an easier way than to actually modify the plugin

#

do you know how to code?

random wadi
#

I know a little bit, and if I don't; I know a friend who knows Java and has helped me a bit

austere hawk
#

yo star

#

could u help me out with something?

#

is there a placeholder i can use to add the player who has opened a menu made in deluxe menu's head?

#

and a time played placeholder

errant iron
#

If someone knew, they'd answer. Maybe wait for Blitz

austere hawk
#

ok

errant iron
#

And the second is using the stats expansion

austere hawk
#

how would i do that?

errant iron
austere hawk
#

thanks

errant iron
random wadi
#

I'm confused on how to do this

errant iron
#

oh yeah that's a good point, you can just write a little javascript to modify that as you please

random wadi
#

Do I make it a .jar after I paste and modify it?

errant iron
#

uh

#

if you just unzipped, edited, and rezipped a jar I think it'd still work

#

but that's real ghetto

hollow pollen
#

Can you somehow chain one placeholder with another?

austere hawk
#

what is the placeholder for like the player that has opened the menu in deluxe menus

errant iron
#

I mean afaik jetboi, %player% will give you the current player which would be the one who opened the menu

errant iron
hollow pollen
#

mmm I just realized that what I'm looking for is more focused on the javscript extension, so I don't know if this is the right place to ask

errant iron
#

i mean yeah why not. you wanna combine two placeholders with a javascript extension?

hollow pollen
#

ok in simple words I would like to use certain placeholders, to use them internal to other placeholders in the style of any function, but I am not sure if it is possible

errant iron
#

those were not simple words

#

that explanation tells me nothing lol

#

got an example?

hollow pollen
#

a silly example would be that I have a placeholder that returns the power of a number (%javascript_Pow_2,3%) and another that returns the sum of 2 numbers (%javascript_sum _?, 4%), and I would be willing to do the operation ( 2 ^ 3 + 4), I know that I can make a placeholder for that specific case but I would rather avoid having to create a placeholder for each specific one that I need.

errant iron
#

oh I see, use placeholders as functions

hollow pollen
#

I do not demand that it exists because I understand the complexity but I would like to know if the way exists

errant iron
#

ummm, as far as I know composition is limited to only one placeholder at the top level

#

but that would indeed be very cool

hollow pollen
#

I know, with something like that I could do wonders

#

but hey, I just wanted to know that, thank you very much, you are a love of person โ™ฅ

errant iron
#

yeah no problem man, good luck in your coding endeavors!

lament burrow
#

um hi, not working mi / papi parse me% world_players_mapa% don't know what it will be?

errant iron
#

Did you /papi ecloud download world then /papi reload?

lament burrow
#

yeah

#

but still doesnt work

errant iron
#

What does it put in chat?

lament burrow
#

i send screen

#

Failed to find expansion named: world

errant iron
#

Okay then you didn't download the world expansion

#

try downloading it from there

#

and putting it in your placeholderapi folder manually

lament burrow
#

no i dowloand it

errant iron
#

Well obviously not if it can't find that expansion

lament burrow
#

i send you screen to dm

errant iron
#

?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.
You can also use a screenshot service like gyazo or jinx and post those links here.

lament burrow
errant iron
#

Try deleting the Expansion-world.jar and restarting the server

lament burrow
#

ok

#

still didnt work:/

sour igloo
#

What are placeholders for top players in mining skills on mcmmo for holograms? Thank you

austere hawk
#

what is this placeholder ? %player_ping%

sour igloo
rare lily
lament burrow
rare lily
#

Try parse %world_players_$%

sour igloo
lament burrow
rare lily
#

I mean, just try parsing it as a test

silver minnow
#

well you can get console spam fix, but you shouldn't really be analyzing logs anyways, as that could be useful info ๐Ÿคท

hexed current
#

hi, some way to remove decimals from variable %math% results??

turbid tide
#

yeah

#

%math_0:_MATH-HERE%

#

add the _0: part

hexed current
#

works thanks! โค๏ธ

upbeat musk
#

Hey what's wrong with the onPlaceholderRequest method? It won't let me use it because it is marked for removal

#

How do I use the new API?

turbid tide
#

I think its just best to use onRequest

#

It can do all that onPlaceholderRequest can and more

errant iron
#

Wait it's deprecated

#

How come nobody updates the docs

turbid tide
#

why don't you?

#

its opened to PRs

errant iron
#

Cause I obviously didn't know that lmao

turbid tide
#

well now you know

#

๐Ÿ‘

upbeat musk
turbid tide
#

well you can get that from an offline player

#

that's what I mean

#

you can get the Player from OfflinePlayer

upbeat musk
#

so instead of onPlaceholderRequest I use onRequest?

turbid tide
#

yeah

upbeat musk
#

I'll try that

turbid tide
#

and you just get the player from the offline player and check if its null or not

#

I think it can be null. not surey

#

you'll have to check the spigot javadocs

#

actually wait

#

d;spigot OfflinePlayer#getPlayer

ionic fractalBOT
#
@Nullable
Player getPlayer()```
Description:

Gets a Player object that this represents, if there is one

If the player is online, this will return that player. Otherwise, it will return null.

Returns:

Online player

turbid tide
#

yeah it can be null

upbeat musk
#

Nice, thanks\

wide wolf
#

hello, im trying to setup leaderboard for ajparkour and placeholders donest work at all... what am i doing wrong... i write everything corectly...

austere hawk
#

Hey, so I'm trying to make a server selector plugin and so far it's gone well so far.

So, I'm trying to use PlaceholderAPI in my gui which works as expected however this message keeps getting sent every so often in chat, I was wondering if anyone knows how or how I'm able to disable it https://prnt.sc/11cwlxk

vital linden
#

i have a question about papi and if it supports scoreboard revision

#

because i used it and when i put %vault_eco_balance% it does not show that on the scoreboard it just shows it as "%vault_eco_balance%"

errant iron
#

Papi doesn't affect the scoreboard by default, you'd need a plugin that modifies it that works with PAPI for that

vital linden
#

ik i have the vault one

#

and i did /papi reload

errant iron
#

No you need a plugin that modifies the scoreboard

vital linden
#

oh

#

which one is that?

errant iron
#

Uh there are many options

brisk coral
#

KiteBoard

vital linden
#

whats the best one in you're oppinion?

#

ok

#

so is that one that creates a scoreboard?

#

so should i replace scoreboard revision with this?

errant iron
#

Oh you already have a scoreboard plugin?

vital linden
#

wait KiteBoard costs money?

vital linden
errant iron
#

Well yeah it's an excellent plugin

#

You'd need to reload that scoreboard or restart the server for it to show up

vital linden
#

i have restarted my server many times

errant iron
#

?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

errant iron
#

send your config

vital linden
#

ok

#

papi config or scoreboard-r one?

errant iron
#

scoreboard

vital linden
#
#  ____  ____  ____  ____  _____ ____  ____  ____  ____  ____
# / ___\/   _\/  _ \/  __\/  __//  _ \/  _ \/  _ \/  __\/  _ \
# |    \|  /  | / \||  \/||  \  | | //| / \|| / \||  \/|| | \|
# \___ ||  \_ | \_/||    /|  /_ | |_\\| \_/|| |-|||    /| |_/|
# \____/\____/\____/\_/\_\\____\\____/\____/\_/ \|\_/\_\\____/
#
# Scoreboard-r by Rien Bijl
# rep: github : RienBijl/Scoreboard-revision
# v: R4 1.1 RELEASE

# Do not edit! The plugin uses this to determine if the configuration is suitable
config_version: 1

settings:
  # The driver is the Scoreboard implementation used to display the user
  # Old drivers will from now on remain supported so that switching back to
  # an older (perhaps more stable) version is easy.
  driver: SCOREBOARD_DRIVER_V1
  # Should we check updates? Caution! Disabling this is not recommended
  # you might miss awesome updates *wink*
  check-updates: true

# In what worlds should we disable scoreboard?
disabled-worlds:
  - 'non_existant_world'

board:
  title:
    interval: 3
    lines:
      - '&6&lP'
      - '&6&lP'
      - '&6&lPE'
      - '&6&lPE'
      - '&6&lPEE'
      - '&6&lPEE'
      - '&6&lPE'
      - '&6&lPE'
      - '&6&lP'
      - '&6&lP'
      - '&6&l'
      - '&6&l'
  rows:
    1:
      interval: 5
      lines:
        - '&c------------------------'
        - '&4------------------------'
    2:
      interval: 80
      lines:
        - '&6%vault_eco_balance%'
#

ok there

errant iron
#

huh

vital linden
#

that is the scoreboard config

errant iron
#

do /papi ecloud list installed

vital linden
#

it says 1? luckperms?

errant iron
#

oh

#

then you don't have the vault expansion downloaded

vital linden
#

in the folder i have both?

errant iron
#

you installed it manually?

#

/papi list

vital linden
#

it says 1?

#

luckpemrs?

vital linden
errant iron
#

okay so you don't have the vault expansion

#

try deleting it from the folder and downloading it manually

vital linden
#

ok

#

i put it in the folder

#

then i do /papi reload then it says no new expansions where registerd?

errant iron
#

which folder did you put it in?

vital linden
#

expansions

#

with luck perms

#

wait

#

luck perms is not in the folder?

#

oh god i bm deleated the luck perms

#

but im not using that one rn

errant iron
#

yeah afaik luckperms is integrated in the plugin

vital linden
#

hmm ok

errant iron
#

oh maybe there is

#

okay so I have no clue why it's not registering your thing

vital linden
#

i did /papi register "name of file"

#

and it says that it does not exit

#

exist*

errant iron
#

and it is in /plugins/PlaceholderAPI/expansions/

vital linden
#

yes

errant iron
#

are you on linux?

vital linden
#

mac

errant iron
#

the server is?

vital linden
#

on my pc

#

its hosted on my pc

errant iron
#

on your mac?

vital linden
#

yes

errant iron
#

hmmm

vital linden
#

i tried deleting the plugin and reinstalling it

#

i tried installing older versions

#

but it still does not work

errant iron
#

@turbid tide you got any ideas

tender vaporBOT
#
Hey!

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

errant iron
#

nice barry

turbid tide
#

Imagine pinging me...

#

let me sleep

errant iron
#

bro i saw you in #bot-commands

turbid tide
#

ok and?

errant iron
#

i presumed you were awake?

turbid tide
#

what if I don't want to help? xD

#

why are you harassing me

#

I'm going to report you to the helpchat police

errant iron
#

oh nu

#

monkafbi <- cube

turbid tide
#

I'll read this later

#

helping someone else rn

errant iron
#

ah see I knew it

#

always a helpful boi

vital linden
#

nice

turbid tide
#

time to read fingerguns

turbid tide
vital linden
#

il try that now

#

oh

#

what

#

yes

#

yes i have

#

it just says %vault_eco_balance%

turbid tide
#

/papi dump please

#

and send over the link it generates

turbid tide
vital linden
#

this is the link

errant iron
#

see blitz! no expansions registered or in the directory!

#

that's a useful command tho ima write that down

turbid tide
#

of course the expansion is not registered

vital linden
#

ik

#

i tried to get it

turbid tide
#

and?

errant iron
#

omg nice

vital linden
#

oh yes

#

i tried to get it

#

i did /papi reload

#

but no new expansions

errant iron
#

you don't have the actual plugin for vault??

vital linden
#

what??

#

i do?

turbid tide
#

download this

errant iron
#

it ain't in the list

turbid tide
#

put it in your plugin folders

#

and restart the server

#

restart it

vital linden
#

oh my god

#

im stupid af

#

ok il get it

#

i did them

#

and now it doesnt work?

#

oh yea lemme get the vault papi

#

OMG FINALY

#

TY Thank You Blitz!

errant iron
#

okay so I've learned to never make any assumptions

#

I presumed that you'd have the plugin you want a placeholder for installed smh

vital linden
#

i have learned that i am stupid

#

very cool

turbid tide
vital linden
#

yes

turbid tide
vital linden
#

xD

austere hawk
prisma pelican
#

Where can I find the list of the Placeholders for VoteParty?

turbid tide
#

=wiki voteparty

tender vaporBOT
#
Wiki Result:

VoteParty - HelpChat Wiki
Description. VoteParty was designed to allow you to reward all online players
with customizable rewards when your servers gets to a certain number of votes
usingย ...

turbid tide
#

on the wiki

prisma pelican
#

And thanks for the link!

rapid atlas
#

I feel like I'm overlooking something obvious here. I have health, hunger, and exp level all showing up how I want, but I can't seem to figure out what placeholder to use to get output like the "armor bar" in the vanilla client UI? (Not a bar, just the current numerical value of all armor.)

turbid tide
#

that's because there is none

rapid atlas
#

Then that would explain why I can't find it anywhere.

turbid tide
#

you can make a javascript placeholder to calculate it if you want

rapid atlas
#

Thanks!

turbid tide
#

It requires some javascript skills but probably not that much

rapid atlas
#

Not much, that's fairly straightforward. Thanks, again.

hexed current
#

hi, some way for %checkitem% to only work in HAND??

#

in OFFHAND no

tepid stone
#

Anyone know how I can make a placeholder that checks if another placeholder is giving a certain output, and if true use one placeholder and if false use another placeholder?

turbid tide
tepid stone
#

I've been looking through that today and im very very lost. I see you can easily check for permissions but I cant find anything that lets you check for a placeholder.

turbid tide
#

you just put it in a string

#

?js-tag

tender vaporBOT
#
FAQ Answer:

Add a space to the chat format if there's a tag

var tag = "%deluxetags_tag%";

function tagFormat() {
  return tag === "" ? "" : " " + tag;
}

tagFormat();
turbid tide
#

for example this ^

tepid stone
#

Oh I see! That helps loads

#

thank you

#

So i have the java script addon installed, yet I just realised, it is not working. /jsexpansion does not work and non of the community scripts/tutorial scripts work. I have the latest ver of papi and restarted after installing the javascript from via ecloud command.

turbid tide
#

/papi dump and send over the link it generates

tepid stone
turbid tide
#

delete them both

#

and do /papi ecloud download JavaScript then /papi reload

tepid stone
#

Ah rip thank you

ancient linden
#

hi, how can i fix it?
[PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

turbid tide
warm plover
#

Does the progress bar placeholder have an option to have like a multiple of 10 show?

#

Or just a max value..?

#

An example is I have a vote progress placeholder but I don't want it to go to a max value, I want it to be a multiple of 10

#

so if you have 10, it resets and goes to 20 as the max

ancient linden
#

okay so how to fix this one? xD

  • '%skript_ancient::Fovers%' > returns 5 (correctly)
  • '%skript_ancient::player%' > returns <none>
tepid stone
#

So ive tried running my script but it just returns a blank space in chat. Would appreciate if I could get a point in the right direction https://pastebin.com/BRqH8k0J (3 ones ive tired)

#

wait

#

i got it working

#

all good, thanks for the earlier help!

tall hemlock
#

hi is there any way to display %luckperms_prefix% but for other player? i mean i can display prefix of someone else

fossil remnant
tender vaporBOT
#
Hey!

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

ancient linden
#
  • '%skript_ancient::Fovers%' > Returns correct number
  • '%skript_ancient::player%' > Rerurns <none>
#

how to fix it?

tepid stone
#

Anyone now how to set a Relational Placeholders using java script extension? If its even possible. Need a relational placeholder for dchat prefix...

fickle tide
#

can you create custom variable with JavaScript Papi, i mean something like a shop but i would create a global fund like if a player purchases 10 diamonds that money is sent to "Diamond Fund" to make something similar like voting for mayor on Hypixel Skyblock or like in Prototype also on hypixel, like players can spend their money towards voting on next update for example

vast axle
#

Why %player_colored_ping% make the number red when ping is low, and green when is high?

turbid tide
#

do /papi info player please and tell me the version

vast axle
#

1.8.0

turbid tide
#

that's strange. 1.8.0 was supposed to fix that

#
        defaults.put("ping_color.high", "&c");
        defaults.put("ping_color.medium", "&e");
        defaults.put("ping_color.low", "&a");```
#

yeah even the code

vast axle
#

Mhm

turbid tide
#

is correct

#

ohhh

#

go to config.yml

#

in PAPI

#

I think there's an option

vast axle
#

ok wait

#

oh yes

#

it's here

#

low: '&c' ๐Ÿ˜‚

#

why

turbid tide
#

it was broken before and it just got fixed

#

so by default it was switched

vast axle
#

thank you!

turbid tide
#

no problem

sleek raven
#

Hello, What is the version of PAPI for minecraft 1.12.2 ?

turbid tide
tepid stone
turbid tide
#

and then you can use the relational expansion

#

instead

#

I think

hexed current
#

hi, is there a placeholder for the remaining storm time? ๐Ÿค”

turbid tide
hexed current
#

ok thank you ๐Ÿ˜†

tepid stone
turbid tide
#

have you tried the actual relation expansion?

tepid stone
turbid tide
#

the RelCon one?

tepid stone
#

Lemme check again

turbid tide
#

bcz I don't think the javascript expansion is actually relational

#

well actually I know for a fact it is not

tepid stone
#

Ah i tried using parse other, I'll give this one a try but will have to try tomorrow.

#

Ahh ok

#

So if this doesn't work it won't be possible unless I get a plugin that specifically does relational prefixs I guess

hexed current
#

and a placeholder that represents some kind of stopwatch or counter?

turbid tide
turbid tide
#

otherwise you'll need to google StopWatch plugin or something

#

if you want like /stopwatch 1h

#

or something

hexed current
#

ok I'll see that, thanks for your help reversed_fingerguns

keen mica
#

Does parseother not work for offline players?

desert trench
turbid tide
#

I was to late

#

xD

sharp jewel
#

hello everyone, I am looking for a way to Check slots of the "CheckItem" extension
translated by Google

tall hemlock
#

hi is there any way to display %luckperms_prefix% but for other player? i mean i can display prefix of someone else

frigid spade
#

hi
i want to do a progress bar with the placeholder but it doesnt work properly
because the underscore in "oak_log", the placeholder dont understand and dont work
How can i do to use item name with underscore in my placeholder

my placeholder :
%progressbar{rankup_requirement_item#oak_log_percent_done}_c:&a|_p:&a|_r:&c|_l:20_m:100_fullbar:&aComplet !%&

frigid spade
#

If someone know how to declare my oak log in this placeholder

upbeat holly
outer steeple
#

Maybe a stupid question, but what is the placeholder again for the amount of people online atm

outer steeple
#

Thanks ๐Ÿ™‚

junior musk
junior musk
frigid spade
junior musk
#

uh

#

well

#

try to do /papi parse me %rankup_requirement_item#oak_log_percent_done%

#

what does it show?

frigid spade
#

ok few seconds ^^

#

its juste create blank x)

junior musk
#

what's your Rankup plugin?

tall hemlock
#

nice thanks ๐Ÿ™‚

frigid spade
#

Rankup3

junior musk
junior musk
frigid spade
#

This placeholder work for all items who does not have any underscore in name

frigid spade
junior musk
#

uh

#

can you try without the _percent_done at the end?

frigid spade
#

the command ?

#

i have a blank space in chat everytime

junior musk
#

then try to contact the author again and tell him that you can't get the placeholder to work, I don't think PlaceholderAPI is at fault since it's his placeholders, idk, but try to ask him

frigid spade
#

ok thank you so much for your help

quiet mulch
#

hi, I want to make my plugin install "bungeecord" from the placeholders, is there a method to do this and how can I check if its already installed.

#

I know I could technically just run the command /papi ecloud download bungeecord but im wondering if there is a built in way to do it

junior musk
wet basinBOT
#

@rare lily Unknown expansion.

rare lily
#

Uh.. ok

#

No expansion for kotlin in public

wet basinBOT
#

@rare lily Unknown expansion.

gentle osprey
#

what do i use if i want to display a players /nick as currently im using %player%

turbid tide
gentle osprey
#

perfect thanks

#

didnt work

turbid tide
#

essentials /nick?

gentle osprey
#

do i have an ecloud to install to make it work?

#

yeah essential nick

#

im making it so when player ranksup it broadcast there name or nick

turbid tide
#

yeah you do have to download the Player expansion. /papi ecloud download Player then /papi reload

#

and then please do /papi parse me %player_displayname% to test if it works

#

or not

gentle osprey
#

that works thanks

turbid tide
#

no problem

sleek raven
#

Hello, I have the error : [PlaceholderAPI] failed to download expansion information

#

somebody can help me ?

sacred sandal
#

hi i would like to know why the {simpleclans clan isanyonline} and neither the %simpleclans_clan_onlinemembers_count% works on the featherboard

hexed current
#

hi is there a placeholder that stores values? for example, as the /scoreboard dummy

vagrant anchor
#

Buenas

#

alguien puede ayudarme?

errant iron
tepid stone
# turbid tide the RelCon one?

Ah, relcon is permissions only it seems, I cant use permissions, need it to check for if a placeholder is true or false (which is what my java script does, but its not relational)

tender vaporBOT
#
Hey!

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

tepid stone
#

Infact even if its not permissions only i cant get it to work. I've installed it and nothing happens, non of the relcon placeholders seem to work. If anyone can help me with why I would appreciate it. https://paste.helpch.at/budavipori

sacred sandal
sacred sandal
#

ty now it worked

austere hawk
#

hi i was wondering if there is a way to display the players head as an item who has opened a deluxe menu gui

#

like what is the placeholder for it

errant iron
#

?dm-heads

tender vaporBOT
#
FAQ Answer:

How to use custom heads in DeluxeMenus:
a) A player name material: head-extended_clip
b) The player's head material: head-%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
e) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/

errant iron
#

b

austere hawk
#

thanks

#

this will work with deluxe menus right

errant iron
#

How to use custom heads in DeluxeMenus:

austere hawk
#

lol

#

thanks

#

also sorry to bother you again but is there a placeholder to show the players balance using an economy plugin connected to vault

errant iron
austere hawk
#

thanks

#

i feel like an idiot to constantly ask you things and im sorry to bother you but what would the placeholder be for the players balance?

#

sorry again

#

its %vault_eco_balance% right?

errant iron
#

test it out

#

/papi parse me %vault_eco_balance%

austere hawk
#

thanks

#

would you mind if i were to private message you a picture to show you my issue?

errant iron
#

?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.
You can also use a screenshot service like gyazo or jinx and post those links here.

errant iron
#

๐Ÿ‘€

warm plover
#

yeah sorry I posted an issue with some placeholders and found the solution through testing

#

didn't realize parse other required a placeholder to find player name

errant iron
#

excellent! self-learning is always the best experience for someone

warm plover
#

%parseother_{player}_{armor_material_helmet}% doesn't seem to work though sadly

#

{player} is a dm variable, so maybe thats why

#

I could set {player} to a deluxemenu meta and then use that as a placeholder ๐Ÿค”

errant iron
#

yeah %player% isn't a placeholder lol

#

what's this for?

warm plover
#

/stats gui showung other peoples armor items and stats

#

like /stats (Player)

errant iron
#

ah I seeee

warm plover
#

I also have plans to detect if the player has never join ir if they are offline

errant iron
#

dang that is such an easy thing to do with plugins but I can see how hard it is with just deluxemenus

#

I commend you for your work lol

warm plover
#

lol

sleek grove
#

@warm plover Maybe this helps:

menu_title: '&8&lStats'
open_command:
- stats
register_command: true
args:
- target
args_usage_message: "&cStats: /stats <player> "
size: 54
items:   
  'helmet':  
    material: placeholder-%parseother_{{target}}_{armor_material_helmet}%
    amount: 1
    slot: 10
    priority: 2
lofty patio
#

Is it possible to translate message from placeholder api? For example I'm using Quests and when i write %quests_player_can_accept_quest_Czy jest tutaj miejsce dla mnie?% im getting true. Can i change this message?

errant iron
#

uh

#

you can write javascript wrapper placeholders that just call that placeholder and return whatever you want?

lofty patio
#

uh

errant iron
#

cause what those placeholders return is based on the expansion developer's code

lofty patio
#

so complicated
Is there easy way?

errant iron
#

if you know Java and if they're open source, you could make a custom one for you

#

Not that I know of, since they're all independently controlled

lofty patio
#

so should i write to... developer of addon?

errant iron
#

I severely doubt they'll add a whole language translation

#

It's just not something PAPI currently supports

lofty patio
#

oh ok

#

thanks

lilac oxide
#

I'm 99% sure it does

errant iron
#

not last time I checked; each expansion outputs its own thing, such as yes or no or true or false

lilac oxide
#

Well you can output a Boolean

#

And those are translatable

#

In papi's config

lofty patio
#

But it doesnt work
There is set yes for true but it doesnt work

errant iron
#

oop

lofty patio
#

Im still getting true

lilac oxide
#

Well go complain to the author

#

And make them return a boolean

lofty patio
#

Ok, I will

molten marsh
#

my placeholders not working

errant iron
#

which placeholder?

molten marsh
#

%player_name%

errant iron
#

did you install the expansion and reload papi?

#

?player

tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

molten marsh
#

yes

errant iron
#

do /papi dump and send it here

molten marsh
errant iron
#

what does /papi parse me %player_name% say in chat?

molten marsh
#

my username

errant iron
#

so where is it not working?

molten marsh
#

in hologram

#

holographic display

errant iron
#

do you have holographicextension?

molten marsh
#

no

errant iron
#

you need that to use placeholders in holograms

molten marsh
#

ok thanks

#

sorry but still not working

#

only not working with the holographic display plugin

errant iron
#

did you refresh the holograms?

molten marsh
#

yes

errant iron
#

restarted the server and everything?

molten marsh
#

yes

errant iron
#

do another /papi dump

molten marsh
#

its working my other server but not this one

errant iron
#

and they have the same plugins and everything?

molten marsh
#

yes same version same evrything

errant iron
#

You need ProtocolLib

molten marsh
#

are u sure

errant iron
#

It also injects your favourite placeholders from PlaceholderAPI (requires ProtocolLib)

molten marsh
#

ok

#

let me try

loud arrow
#

hey, does papi work with crazy crates? crazy crates says it does but papi doesn't

errant iron
#

yes

lilac oxide
#

papi doesn't need to support plugins, then need to support papi ๐Ÿ™‚

loud arrow
#

ah right, thank you!

#

how do I enable the expansion? I can't work out what it's called

errant iron
#

You don't need to enable it; it's part of the plugin already

loud arrow
#

weird it's not working, ok ty!

austere hawk
#

Is there a placeholder for server status bungeecord

errant iron
#

There's a placeholder for the players online on a server

#

You can use pinger if you want to check if a server can be found or not

austere hawk
#

is there one that shows that a server is online or offline

errant iron
#

%pinger_online_testplugins.com:25565%

#

will return whether it's online or offline

#

you just put the ip in

#

/papi ecloud download Pinger

#

/papi reload

austere hawk
#

kk

#

placeholders from Advancements loads too slow

#

can i somehow fix it?

errant iron
warm plover
#

Hey so using the armor placeholder, it says a stone when they have nothing on in that slot, is it possible to be changed to like a barrier or something?

#

and is it possible to get the display, lore, and stuff like that of the armor piece?

vivid sparrow
#

Will update the armor expansion at some point

turbid tide
#

yo I'd PR but rn I have to many things to do

vivid sparrow
#

Nah it is just broken

warm plover
#

Hello is there a world guard placeholder to get the priority of a region

#

it would be really useful lol

#

I see this %worldguard_<Any WG Placeholder>_<Priority (Lowest number = Highest priority)>% but don't know if it can grab the priority ๐Ÿค”

turbid tide
copper patio
#

Hey guys, im trying to add player kills to leaderheads with Statistic extension on papi but it doesnt counting any kills. my server version is 1.8.8

turbid tide
#

so for example if you have 3 overlaping regions with priority 1, 2, 3 you can parse placeholders for all of them

#

otherwise it would just take the priority 1 region

warm plover
#

Is there a way to just get the number of the priority of the region im standing on

turbid tide
#

what does it return>?

warm plover
#

I'm trying to do something for a project lol

turbid tide
warm plover
#

Oof that sucks

turbid tide
#

but the thing is that won't really work because regions overlaping it will just take the priority of the highest priority region

#

I don't really see the use myself

warm plover
#

Could I explain what I'm working on? :P

turbid tide
#

I mean sure but yeah I can't do anything about it. Just contact the dev and see if they can add it (the dev of the expansion not the dev of worldguard)

warm plover
#

bassically I have a boss bar and a floor based map

#

I wanted to make the boss bar change progress depending on the floor

#

Crypt: style: "NOTCHED_6" color: "RED" progress: "%math_0_16*{worldguard_region_name_capitalized}%" text: "&cCrypt Floor: %worldguard_region_name_capitalized%"

#

It works with other ones besides the top floor which isn't really a big deal ig

#

I was thinking if I could get it to multiple by 0 it would work

copper patio
tender vaporBOT
#
Hey!

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

turbid tide
copper patio
#

Yeah

turbid tide
#

what type of server do you have? paper, spigot?

copper patio
#

Taco

errant iron
#

Enchilada!

turbid tide
copper patio
#

Yeahh

warm plover
turbid tide
# copper patio Yeahh

can you go to server/world/stats and open the file with your UUID? see if the kills are still 0 there

#

it should look something like {"stats":{"minecraft:killed":{..., "minecraft:player": 10, ...}}}

copper patio
#

ok let me check

#

here is no file called stats ._.

turbid tide
#

its a folder

#

in the world folder

copper patio
#

or any folder

#

๐Ÿ˜ฆ

turbid tide
#

ugh maybe Taco doesn't register kills the same way?

copper patio
#

yeah i think so

turbid tide
#

Can you try switching to Paper maybe? Just to test

copper patio
#

yeah

#

bro i switchedd to paper 1.8.8 but still no stats folder in world file

turbid tide
#

are you sure you're looking in the correct world folder?

#

also get some kills first

#

it might generate after that

copper patio
#

sure

turbid tide
#

also it needs to be the main world. the one set in server.propreties I think

copper patio
#

level name is wworld i get 2 kills

#

but no there is still no folder called stats

turbid tide
#

this is strange. What folders are there?

#

Maybe it was different in 1.8 and I don't remember

copper patio
#

data, dim-1, playerdata, region

#

and files are
level.dat
leveldat_old
session.lock
uid.dat

turbid tide
#

hmm this is very strange. I'm not really sure. All I can say is the placeholder works but the kills are not stored. I do not know the reasoning tho.

copper patio
#

๐Ÿ˜ญ

turbid tide
#

is that world a release world?

#

if not try making a new world and setting it as the default one

copper patio
#

okay

#

nope bro

#

its still not working

turbid tide
#

I'm really not sure what might cause this. I haven't worked with 1.8 in a long while

copper patio
#

sad

#

Vault and others are working only Statistic are not working

#

i started to think it was a version problem or something else

turbid tide
#

its either version problem or server problem but not sure. The placeholder clearly parses to 0 so it should work

#

it just doesn't find any data

#

where its looking

warm plover
#

%checkitem_remove_mat:tripwire_hook,amt:1,namecontains:Floor {math_0_1+{deluxemenus_meta_GATE.NUMBER_INTEGER_0}} Key%'

#

How could I use placeholders inside of placeholders with checkitem?

turbid tide
#

I don't think that's possible how you're trying to do it

#

you'll probably need to make a javascript placeholder for that

#

placeholder inside placeholder inside placeholder is not possible

warm plover
#

:(

#

would you know a way I can do it with a javascript placeholder lol

#

I don't know much about js

#

Wait I'm dumb, I think I just got it to work, the math stuff was uneccasary, I over complicated it lol

turbid tide
#

I mean its pretty easy just js var meta = parseInt("%deluxemenus_meta_GATE.NUMBER_INTEGER_0%") function mathStuff() { return meta++ } mathStuff()

#

ah I see xD

#

well

#

this is all you needed ^^^

warm plover
#

awesome thanks

warm topaz
#

function

#

not fun ๐Ÿคก

turbid tide
#

I was wondering why its not colored lmao

warm topaz
#

lmao

hot oriole
#

I installed HolographicDisplays, HolographicExtension and Protocollib but in the Hologram is my Placeholder not showing.. How do I fix this?

turbid tide
#

do /papi dump please

#

and send the generated link here

hot oriole
#

My plugin is AdventureValley.

#

(I tested %luckperms_prefix% from Luckperms rn. That works..)

#

Nvm I just reinstalled the Plugins. Works now. Thx ๐Ÿ™‚

turbid tide
#

ah ok. Nice

heady urchin
#

Anyone got a better alternative to HolographicExtension

#

Too laggy

magic rock
#

holographic placeholders + protocollib

heady urchin
#

You can't put placeholderapi placeholders in?

turbid tide
#

wdym to laggy? I've never had problems with it

hot oriole
#

But how can I make it now so that it "auto updates"?
(I display money on the Hologram, and the money ammount changes.)

turbid tide
heady urchin
#

If theres more than than like 50 players near holograms with placeholders in, it causes a lot of issues

turbid tide
heady urchin
#

It's not that

#

I just need a better alternative

#

It's like 10tps lag, not just a small amount

turbid tide
#

well I guess you can try HolograhpicPlaceholders

hot oriole
heady urchin
#

link?

turbid tide
heady urchin
#

Yeah thats trash aswell

turbid tide
heady urchin
#

I'll get one made

turbid tide
#

for holograms

heady urchin
#

needs to be holographicdisplays lol

turbid tide
#

well those are the existing options

heady urchin
#

We depend on that and essentials for like everything xD

#

Yeah it's fine I just wanted to see if there was a public one thats decent before I get one of the devs to make it

hot oriole
tender vaporBOT
#
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.

turbid tide
#

yeah saw it

#

no worries

hot oriole
#

Ok

turbid tide
#

hmm that's strange. I've never had space appear because of that tag

hot oriole
#

Can I put the tag somewhere inside of the line too?

turbid tide
#

I don't think so. You could try it tho

#

But from what I remember it has to be at the beginning

hot oriole
#

Ok gimme a moment

#

Ok worked

#

/hd setline entrance 3 &eYou have{fast}&6%avp_money% Coins&e!

turbid tide
#

oh nvm then. Maybe it has to be before the placeholder

#

then

#

I don't remember exactly

hot oriole
#

It works so thx ๐Ÿ™‚

#

Btw can I use Placeholder API on signs without a extra plugin too?

hot oriole
#

Ok sad

vivid sparrow
turbid tide
#

yo gaby u got like 10 minutes to help me with dmenus epic heads support? bcz this shit confuses the fuck out of me

vivid sparrow
#

wdym?

turbid tide
#

trying to fix deluxemenus EpicHeads integration

#

?dm-heads

tender vaporBOT
#
FAQ Answer:

How to use custom heads in DeluxeMenus:
a) A player name material: head-extended_clip
b) The player's head material: head-%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
e) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/

turbid tide
#

the d option

#

its just broken and I can't figure out why

#

I assume its the API that's outdated

#

but its strange that it does exactly what head- does

void cypress
#

Is this where we get help?

vivid sparrow
#

I think it uses the api of the plugin before even it was bought by songoda

turbid tide
#

yeah it does

#

it uses a very old api and can't find the new one lmao

turbid tide
void cypress
#

Sweet

#

u got a mic?

vivid sparrow
turbid tide
#

yeah I guess is time to join their discord but @wet creek already asked for me and no response yet

turbid tide
#

I can multitask but can't talk lmao

#

also I muted you bcz I wanna hear music

void cypress
#

lmao

#

ok

#

cant share pictures in here?

tender vaporBOT
#
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.

void cypress
#

Ok so i'm using a name tag edit plugin called TAB

#

I'm using saber factions and i'm trying to display the players faction name under their name tag

#

it's displaying the factions but not the right faction per player

#

It

#

it's showing my faction under a player and his faction under my nametag

#

makes no sense

#

classic-vanilla-belowname:

#enabling the feature
enabled: true

#number or numeric placeholder, supports per-player placeholders
number: "%factionsuuid_player_kills%"

#text after number, must be same on all players
text: "&e%factionsuuid_faction_name%"

turbid tide
#

that's bcz of how TAB works I think. It uses relational stuff I think

void cypress
#

Also whenever I broadcast and use {PLAYER} it will give a completley different players name

turbid tide
#

so it shows the faction of the viewer

#

but you can try

turbid tide
#

wait nvm

#

that won't work

#

try asking in TAB support if there is a way to disable that

#

the relational stuff

void cypress
#

I would show screenshots kind of hard to explain

turbid tide
#

yeah I understand what's happening

#

the placeholder is parsed for the viewer

#

not the one under who's name it is

void cypress
#

It's so weird

#

My alts faction name is WensFac my factions name is Solar and the factions are reversed under our nametags

#

It shows my faction under my alts name tag

#

i'll go into the tab discord

#

I got one more question

#

Not only do I want the faction name to display under the players name tag I want the factions relationship to color the factions name

#

%rel_factionsuuid_relation_color%

#

How would I go about that?

#

2 place holders?

turbid tide
#

probably text: "%rel_factionsuuid_relation_color%%factionsuuid_faction_name%"

warm plover
void cypress
#

i tried that it just shows the faction name then the raw text for the color placeholder

void cypress
#

figured it out

#

tab discord helping me out

#

u were right

turbid tide
#

oh nice. glad to head

#

hear*

#

not to good with TAB

#

so yeah

short flicker
#

Parsing shared text for viewer is intentional to offer conditions with per-world / per-server text which requires the player to parse, but displays it the same on everyone (in that world), allowing per-world text

#

Unfortunately it allows misconfiguration like this which makes it much less obvious you can't do it

#

It was added when someone requested it exactly for this purpose, then he decided he doesn't want it.

austere hawk
#

hi

#

is there a placeholder which displays the combined amount of players of 2 or more servers?

fervent spire
#

%bungee_total% displays the full amount of players on all servers connected to the bungee

austere hawk
#

i know but

#

isnt there a way to display only for a certain amount of servers

#

for example

#

i wanna track lobby1 & lobby2 only

#

is there a placeholder or anyway to display them?

fervent spire
#

%bungee_<servername>% Shows the count for just one server.

austere hawk
#

i know that too

#

i wanna know if theres a way to display 2 servers together

fervent spire
#

Those are the only two placeholders for bungee that I know of, I don't think there are any others.

#

You could maybe use a javascript one, and use multiple %bungee_<servername>% for each server and add them together.

hexed current
#

hi %objective_score_<obj-name>_offline% for players offline?

austere hawk
#

uhm

#

oke

lilac oxide
#

%math_0:_{bungee_server1}+{bungee_server2}% Iirc

scarlet valve
#

Is there any playtime plaveholder?

#

@me if you know

lilac oxide
turbid tide
#

%statistic_time_played%

sterile cradle
#

Can someone help me with this?

turbid tide
#

@sterile cradle I answered you on spigot

sterile cradle
sterile cradle
turbid tide
#

you can here btw if you want

turbid tide
sterile cradle
#

It isn't..

turbid tide
#

e.setFormat(PlaceholderAPI.setPlaceholders(player, chatformaat)); this is line 20 right?

sterile cradle
#

Thats the problem : (

turbid tide
#

try parsing the placeholders and setting the string to a variable first and check if that is null or not

#
            final String chatformaat = Kingdom.instance.kGetConfig().Chat_Format;
            final String test = PlaceholderAPI.setPlaceholders(player, chatformaat)
            if (test == null) {
              // LOG MESSAGE
              // RETURN
            }
            e.setFormat(test);```
sterile cradle
#

I'll try that thanks!

#

Still gives me the same error ; (

#
final String chatformaat = Kingdom.instance.kGetConfig().Chat_Format;
            final String test = PlaceholderAPI.setPlaceholders(player, chatformaat);
            if (test == null) {
                System.out.println("Error, het is niet goed!");
                return;
            }
            e.setFormat(test);```
turbid tide
#

what line is the error on?

#

can you send a pastebin of the error

#

and a pastebin of the entire class

#

please

#

?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

sterile cradle
#

Oh sure moment

#

It says on line 25

turbid tide
#

one unrelated thing: onChat Classes should be UpperCaseCamel in java

#

so OnChat

turbid tide
#

the new one

scarlet valve
turbid tide
#

yep it is

scarlet valve
#

Thanks

turbid tide
sterile cradle
#

Yesssss

#

But as i said in my discussion/thread ```java
e.setFormat(Lobby.instance.getCConfig().Chat_Format.replace("%vault_prefix%", PlaceholderAPI.setPlaceholders(player, "%vault_prefix%")));

bright fjord
sterile cradle
bright fjord
#

thanks ๐Ÿ™‚

sterile cradle
#

Npp ๐Ÿ˜‰

turbid tide
#

so it says line 25 but line 25 is a }
that ends this
if (Kingdom.instance.kGetConfig().Use_Chat){
could it be that this option is null?

sterile cradle
#

Ehh

#

Its this

#

moment

#
Chat_Format = ChatColor.translateAlternateColorCodes('&', Kingdom.instance.c.getString("Chat_Format"));```

And this in the config:
Chat_Format: '&7%vault_prefix% &7%s&f: &7%s'
#

So it shouldn't be null right

turbid tide
#

yeah but Use_Chat ?

sterile cradle
#

#Chat options.
Use_Chat: true # ->>>> If you turn this to false, the whole chat system of this plugin will be disabled.

#

Use_Chat = Kingdom.instance.c.getBoolean("Use_Chat");

#

But that isn't it

#

Because when i don't use placeholders in the config

#

it works fine..

turbid tide
#

I'm having a brain fart rn. 1 second

sterile cradle
#

same xd..

#

I feel that theres just something wrong with this..

final String test = PlaceholderAPI.setPlaceholders(player, chatformaat);```
reef sparrow
errant iron
#

That's an error for your bedwars plugin, not placeholderAPI

#

And apparently it doesn't know what world it's reading from the config

reef sparrow
#

my bad, wrong server, sorry

rare lily
#

๐Ÿ‘

sacred dirge
#

how do i set online players for another server?

#

im running bungee but its showing only the people who are in the lobby

turbid tide
#

use this expansion ^^^

sacred dirge
#

downloaded it

#

ill give it a try

#

it said done, but its saying 0 online'

turbid tide
#

you have to download it on every server

#

that you want this to work on

sacred dirge
#

ohhhhhhhh

#

ok thank you

#

yeah same thing

#

nvm got it

smoky spoke
#

does anyone know alot about rocket placeholders plugin?

loud arrow
#

anyone know why I have to reinstall different extensions for papi every time I load the server backup?

desert trench
loud arrow
#

yeah, whenever the servers is switched on for whatever reason

desert trench
#

its stored in jar files in the extensions folder in plugins/PlaceholderAPI/extensions

#

So, if you move those over it'll be gucci hopefully.

pine spoke
#

Hello, yesterday I installed PlaceHolderAPI for my server, I am unsado DeluxeHub 3 for my lobby and I wanted to complement it with the Vault extension, I put the command / papi ecloud download Vault, and then / papi reload, but in the mc chat I got a " No expansions were registered! ", Please help I don't know what to do

turbid tide
pine spoke
fervent spire
#

You can ignore that message.

#

It won't impact anything.