#placeholder-api

1 messages · Page 94 of 1

sharp harbor
#

which file

brisk coral
#

You're displaying the placeholder in your scoreboard, so show me the file which contains the scoreboard settings..

sharp harbor
#

okie

#

wait a sec

#

here

brisk coral
#

make a javascript placeholder

#

which returns the entire string

sharp harbor
#

hmm

#

idk how to script

#

can anyone help me

#

please

#

im bad at coding

brisk coral
#
function placeholder()
{
  return &e%griefprevention_remainingclaims%;
}
placeholder();
#

Are you familiar with making a javascript placeholder

sharp harbor
#

so em

#

what should i do with it

#

no

#

im bad at it

#

can you remade one for me please

#

ty

#

btw where to put it in

#

i mean the code you just typed

#

are you still here frosty?

brisk coral
sharp harbor
#

ok

#

do i need to download the javascript plugin?

brisk coral
#

/papi ecloud download javascript
/papi reload

sharp harbor
#

yes i did

#

and then what should i do

brisk coral
#

Follow the tutorial.

sharp harbor
#

okay

#

step by step?

#

so how to put the script in?

brisk coral
#

mhm

#

It says it in the tutorial

sharp harbor
#

ok

#

does it requires you have experiences of coding?

#

cause im bad

brisk coral
#

For your application you just need to change the return string

sharp harbor
#

so em

#

i need to do this on every placeholders?

#

function placeholder()
{
return &e%griefprevention_remainingclaims%;
}
placeholder();

#

this one

#

do i need to set the debug to true?

brisk coral
#

yes, and you don't need debug no

sharp harbor
#

whats the format

brisk coral
#

format?

sharp harbor
#

yes

#

how do i code them

#

i downloaded the githubdesktop

#

is it necessary?

brisk coral
#

no

sharp harbor
#

which site to code

brisk coral
#

You can use notepad, legit anything you want

#

You're only changing the string it returns, so you can just edit that

return <String>
sharp harbor
#

can you give me a sample?

#

please?

#

and where do i put the file

brisk coral
#
function placeholder()
{
  return &e%griefprevention_remainingclaims%;
}
placeholder();
#

Read the tutorial, it legit explains everything..

brisk coral
#

:Whatthe:

sharp harbor
#

Idk dude

#

im really bad at this

#

can you make me some samples

#

and then i can copy and paste xD

brisk coral
#

I already showed you what exactly you need

#

The example above, you only need to change the placeholder and the color

sharp harbor
#

like this?

#

lmao

hard moat
junior musk
#

update LuckPerms

hard moat
#

i did also i am using luckperms bungeecord

junior musk
#

do you have it on spigot ?

hard moat
#

yes i have 1.8.8

junior musk
#

what's your LuckPerms version ?

hard moat
#

5.0.108

junior musk
#

and the error appeared when you tried to do /papi ecloud download LuckPerms ?

hard moat
#

no it downloaded and then i ran /papi reload and it gave me the error

junior musk
#

🤔

hard moat
#

could it be that im using the luckperms bungeecord version

junior musk
#

nope

#

PAPI isn't a bungee plugin

hard moat
#

ok

junior musk
#

5.0.108 is your BungeeCord or Spigot version of LuckPerms ?

hard moat
#

is the bungeecord version

junior musk
#

and in spigot ?

#

/lp

hard moat
#

with luckperms bungee i just put it in the bungeecord server plugin not any other server

junior musk
#

yeah but that's not how permission are managed

#

Bukkit/Spigot and BungeeCord have 2 different permission systems

#

So you need LP on BungeeCord to handle the BungeeCord permissions

#

and LP on Spigot to handle the Bukkit/Spigot permisssions

hard moat
#

oh so would they connect

junior musk
#

if you link them together with a remote database such as MySQL then yes

hard moat
#

ok

junior musk
hard moat
#

ok thx

junior musk
hard moat
#

ok

sharp harbor
#

hi

#

Are you here frosty?

#

i found this.

#

Can anyone help me

uncut field
#

Hello to all.
I have a problem with JavaScript.
I get the message "[PlaceholderAPI] File: sb_groupName.js for javascript placeholder: sb_nameGroup is empty" when I try to create a placeholder.
Please help me.

sb_groupName.js:

var whaspermissionswplus = "%player_has_permission_scoreboard.sw+%";
var whaspermissionhug = "%player_has_permission_scoreboard.hug%";
var whaspermissionmost = "%player_has_permission_scoreboard.most%";
var whaspermissionmoderator = "%player_has_permission_scoreboard.moderator%";
var whaspermissionstaff = "%player_has_permission_scoreboard.staff%";

function wpermission() {

   if (whaspermissionsw === "yes") {
       return "&eSW";
   }

   if (whaspermissionswplus === "yes") {
       return "&9SW+";
   }
   
   if (whaspermissionhug === "yes") {
       return "&5HuG";
   }
   
   if (whaspermissionmost === "yes") {
       return "&6&lMoST";
   }
   
   if (whaspermissionmoderator === "yes") {
       return "&2&lМодератор";
   }
   
   if (whaspermissionstaff === "yes") {
       return "&c&lSTAFF";
   } else {
       return "&7нет";
   }
}

wpermission();```

javascript_placeholders.yml:
```thewar:
  file: example.js
  engine: nashorn
sb_group:
  file: scoreboard_groups.js
  engine: nashorn
sb_nameGroup:
  file: sb_groupName.js
  engine: nashorn```

Maybe this is due to some uninstalled packages in the system (apt-get ...)?
rancid turret
#

heyo i just updated placeholder-api and venture chat and I am seeing this in the console when I reload

[13:08:00 INFO]: [VentureChat] - Placeholders were not added to PlaceholderAPI!```
rancid turret
#

ok nevermind I just needed the 'Player' placeholders

split bane
#

Hello my placeholder %vault_eco_balance% dont works
[2:27] Andreeiii11: but %vault_rankprefix%
[2:28] Andreeiii11: i have installed at the ecloud
[2:28] Andreeiii11: i am using the placeholders at deluxechat

trim mist
forest tendon
#

whats the expansion for showing the player name when a message pop on screen when entering the server

#

like %player_name% did not work, but i think i don`t have the expansion

brisk coral
#

/papi ecloud download player
/papi reload

forest tendon
#

thanks

#

still did not work

#

is it %player_name% or player %player_displayname%

brisk coral
#

Both should work

forest tendon
#

none of them worked

brisk coral
#

/papi parse me %playe_name%

#

What does that return

forest tendon
#

k

#

it said my name

trim mist
#

Then that means whatever you're trying to use probably doesn't support PAPI.

forest tendon
#

ooof

noble sonnet
#

Can PlaceholderAPI installed in Bungeecord?

#

Or do i have to install it into my every single server

trim mist
#

Single server.

noble sonnet
#

Is it possible to add such feature?

trim mist
#

We plan to in v3, months away.

noble sonnet
#

I'm a SpongeForge user and the PlaceholderAPI in spoge is kinda bad, that's why i needed it. Okay thx, can't wait for it!

trim mist
#

Yup, the new PlaceholderAPI v3 will be multi-platform and will support Sponge.

noble sonnet
#

Can i guess.. 3 months? or more?

trim mist
#

Unsure. COVID-19 put a dent in all out plans.

fossil vapor
#

Glare I have a current problem wonder if you could help

noble sonnet
#

Also it brings depression, goodluck to all

trim mist
#

Ask away Coasty.

turbid tide
#

Coasty go to #spigot-linking

trim mist
#

^^

fossil vapor
#

I've done it

#

My bad I've posted it in deluxechat channel

trim mist
#

Nice. Now just wait for someone to be around.

turbid tide
#

:))

fossil vapor
#

btw how do you get tier 2?

turbid tide
#

talking

fossil vapor
#

Ahh

turbid tide
#

a lot of talking

#

and also =daily

#

that is a bot command

merry sluice
#

can i suggest a few plugins to add to papi?

turbid tide
#

the developers of the plugins need to add placeholders not clip

#

so if you want more plugins to have placeholders go to those plugins developers

#

and ask them

merry sluice
#

ok

austere hawk
#
function TownyPrefix() {
    var town = '%townyadvanced_town%';
    var townTag = '%townyadvanced_town_tag%';
    var townMayor = '%towny_town_mayor%';
    var playerName = '%player_name%';
    var mayorPrefix = '&e✦&r ';
    var prefix = '';

    if (town.length > 0) {
       if (playerName === townMayor) {
           prefix = prefix + mayorPrefix;
       }
       if (townTag !== [] || townTag !== '[]') {
           prefix = prefix + townTag;
       }
       return prefix;
    }
}

Trying to figure out why Towny placeholder returns [] if a player creates a towny tag and then clears it. [] still appears even though it's checked here.... So confused....

vivid sparrow
#

I dont think !== [] is a valid check

austere hawk
#

it is, it works if a tag isn't set at all

#

townTag !== '[]' doesn't work though

#

typeof townTag shows... it's a string? idk

#

So return townTag == []; returns "true" for me as I don't have a tag, but returns false for anyone who does OR has a empty []

vivid sparrow
#

[] is an empty list

austere hawk
#

correct, it's an empty array.

vivid sparrow
#

yea, array xd

#

we usually use X.equals("")

#

you can also try X.trim().length == 0

austere hawk
#

you mean

       if (townTag !== [] || townTag.trim().length !== 0) {
           prefix = prefix + townTag;
       }
```?
vivid sparrow
#

townTag.trim().length > 0 || !townTag.equals('[]')

austere hawk
#

nope :C the [] is still there

#
       if (townTag.trim().length > 0 || !townTag.equals('[]')) {
           prefix = prefix + townTag;
       }
vivid sparrow
#

is it around the tag or?

austere hawk
#

The output of just [] AFTER the player has set a tag and cleared it.

fossil vapor
#

how do i get a new role after buying a plugin?

sharp harbor
#

hmmm

#

why the js file is not loading

sharp harbor
#

Need help

#

any staffs online?

mint fable
#

@sharp harbor have you run those commands? ^

sharp harbor
#

yes

#

wait

#

is there any differences on killrank and kills?

#

are they the same?

#

cj?

mint fable
#

I don't know the plugin

#

you can test placeholders with /papi parse me %placeholder%

sharp harbor
#

okay

prime harness
#

Does this work for Sponge or not? because ryan's placeholderapi hasn't been updated since 2017 and it's messing up with other place holders I want to add to my chat

proud hearth
#

I use LuckPerms from roles, ect and i use TAB for my custom tabe menu can I get the role the player has in LuckPerms and place that into my TAB menu?

cobalt cradle
#

yes

#

do you use vault?

proud hearth
#

indeed

#

well i have it

cobalt cradle
#

do /papi ecloud download Vault to download Vault expansion, then /papi reload

#

ohh wait

brisk coral
#

I mean you can just use luckperms..

cobalt cradle
#

he wants to have it in his tab as prefix for the players...

proud hearth
#

perfect! thx

cobalt cradle
#

I think the plugin needs to have this feature

proud hearth
#

lemme test somthing

cobalt cradle
#

so you using TAB ?

proud hearth
#

i think thats what its called

#

lemme check

#

yes TAB v2.7.1

cobalt cradle
#

then it's done in the config

proud hearth
#

lemme install Placeholder API also

cobalt cradle
#

you don't need it if you only want it for the tab

#

but it's a good thing to have

#

actually you need it

#

nvm im stupid

prime harness
#

Does this support Sponge or not?

proud hearth
#

Placeholder API did what i needed

cobalt cradle
#

oh

#

ok

proud hearth
#

can you link your own plugin into Placeholder API?

cobalt cradle
#

yes

#

by making an expansion

proud hearth
#

xD sounds stupid but how do you import placeholder api?

cobalt cradle
#

you using eclipse?

proud hearth
#

yup

#

do i add placeholder api as a libary like i added spigot?

cobalt cradle
#

exactly

proud hearth
#

:) day 2 finally gettin it xD

proud hearth
#

@cobalt cradle do i have to initialize the PlaceholderExpansion in the main file?

cobalt cradle
#

main file of what

proud hearth
#

the plugin

cobalt cradle
#

of your plugin?

#

no

proud hearth
#

so just having it is enough?

cobalt cradle
#

take a look at How to create an expansion that has a 3rd party dependency

#

it's just one class extending PlaceholderExpansion

proud hearth
#

i dont have any dependiencys

cobalt cradle
#

isn't your plugin a dependency

proud hearth
#

its just getting an alert and giving it to TAB

cobalt cradle
#

what alert

proud hearth
#

how do i send a snippit thats to big again?

cobalt cradle
#

=paste

tender vaporBOT
#
HelpChat Paste

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

proud hearth
cobalt cradle
#

and doesn't it work?

proud hearth
#

i haven't tested yet xD

cobalt cradle
#

It might work

#

test it

proud hearth
#

just checking i dont need anything in Main.java

cobalt cradle
#

you don't need a main.java

#

you just need your placeholderAPI_Expansion class

#

also please use UpperCamelCase for naming classes

proud hearth
#

sorry, will do

cobalt cradle
#

np lol, just so you know

proud hearth
#

just so i can put alerts in the tab menu

#

Oh, no @cobalt cradle

[10:24:48 INFO]: [TAB] Expansion trm is used but not installed. Installing!
[10:24:48 INFO]: No expansion found with the name: trm
cobalt cradle
#

did you do /papi reload

proud hearth
#

nope will do

cobalt cradle
#

also do /papi list

#

is your expansion there?

proud hearth
#

nope

#

but i found an error

cobalt cradle
#

great

#

what does it say

proud hearth
#

line 20

vivid sparrow
cobalt cradle
proud hearth
#

Hey! Im making my plugin work with placeholder-api but i couldn't get an internal system to work! can someone help me?

orchid marten
#

Hi! I have a Minecraft server (1.14.4, Spigot) and I can not download anything. Why? (Download with /papi ecloud download)

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.

orchid marten
#

Thanks!

turbid tide
#

So I just updated to the latest PAPI version

#

and get this error

#

on /papi reload

#

also some of the expansions dissapeared

#

ok now it worked

#

interesting

trim mist
#

That says nothing about papi

turbid tide
#

INFO org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.10.5

#

but it worked when I tried again

#

you have to read it from the bottom

#

because that is how my console works ...

austere hawk
#

Guys I have a problem

#

I'm trying to use papi with infoboard but it does not work, while it other server still made by me it works fine

slate sentinel
#

For MC v1.12.2 or older:

/papi ecloud download Statistic 1.7.0

austere hawk
#

any doubt knows
a placeholder variable for epiccraftingplus
The one that if a user creates 1 item the others cannot and that item disappears from the config the item or that no one else creates it?

turbid tide
#

anyone in here could help me make a javascript placeholder that returns yes or no if a player has a permission or not?

#

using the player methods?

junior musk
#

anyone in here could help me make a javascript placeholder that returns yes or no if a player has a permission or not?
you know there's already a placeholder for that in the Player expansion right ?

#

something like %player_has_permission_your.perm%

turbid tide
#

oh sh*t forgot about that one

#

thanks a lot

junior musk
#

👍

verbal relic
#

Does PAPI not support LuckPerms v5 Yet?

slate sentinel
#

why there is no version 1.7.0 for statistics anymore?

trim mist
#

There is but you have to go grab it from the website.

#

We temporarily disabled the older versions from in-game to fix a major bug.

slate sentinel
#

ok thanks

verbal relic
#

?

austere hawk
#

%server_online% without people in supevanish

#

can i get help for that?

junior musk
#

I think SP provides a placeholder for that

austere hawk
#

It does?

wet basinBOT
#

@junior musk Unknown expansion.

junior musk
#

idk

wet basinBOT
#

@austere hawk Unknown expansion.

#

@austere hawk Unknown expansion.

austere hawk
#

%supervanish_playercount%?

primal vault
#

Hi, anyone know what is this?

29.03 22:38:20 [Server] ERROR Could not pass event ServerLoadEvent to PlaceholderAPI v2.10.5

trim mist
#

Should be more

quick urchin
#

deluxemenus doesnt seem to hook to placeholder api

brisk coral
#

You need to download the correct expansion for the placeholder you're using

gray panther
#

I think this may be an issue with papi?

I'm using leaderheads scoreboard for my spawn, and have BentoBox installed for skyblock. The leaderboard is showing my top 5 islands, but the issue is, that anyone that is teaming on an island its showing their team mates name as one of the top 5.

brisk coral
#

It uses the owner of the island

gray panther
#

Yeah and its also using their team mates

brisk coral
#

?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.

brisk coral
#

can you show me, haven't used it ever so not sure what you mean exactly

gray panther
#

Like Cad owns and island and has a team mate named Kon, however Cad is #1 and it shows Kon as # 2

brisk coral
#

hmm, is there any other placeholders which would display what you're after, or is that the only one

gray panther
#

For bento? I don't think so, Its really weird honestly. I never had this issue with aSkyblock and this is essentially the same reading

#

I dont know if this is an issue with LeaderHeads or Papi

brisk coral
#

It's an issue with the placeholder itself

gray panther
#

I figured it was, since Bento is pretty new.

coral schooner
#

When I do /papi ecloud download Player
It says: No cloud expansions are available at this time.

#

What does that mean?

brisk coral
#

?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.

junior musk
#

oh ok , I was searching for it

coral schooner
#

Oh thanks

fair jungle
#

Someone understand javascript-expansion?

Works:
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parseother{Alex}{playeronline}%");
Result: Is online

Not works:
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parseother{" + args[0]+ "}_{player_online}%");
Result: Not online

I need to know in javascript-expansion how to use variables inside of placeholders

radiant sequoia
#

Hello, does anyone know where I can change the server name for %server_name%?

brisk coral
#

Papi config

radiant sequoia
#

Found it, thanks very much

#

Papi config
@brisk coral This seems to only support numbers and chars. Is it possible for me to set it to another language/support color?

brisk coral
#

Set the color outside of the placeholder (should work in the actual text as well), also not sure what you mean by another language, you can write what ever you want there

radiant sequoia
#

Nvm about the second point, I thought its only English

#

And I want to have a different color for every server

Set the color outside of the placeholder (should work in the actual text as well), also not sure what you mean by another language, you can write what ever you want there
@brisk coral

brisk coral
#

Set it outside the placeholder then, where you're displaying it. ie.
&3%server_name%

radiant sequoia
#

Yeah, what I mean is the tab plugin only set a single color for all the servers. what I want is for example, red for hub, green for survival, etc

#

Nm, found a way to create custom placeholders with Bungeetablistplus, ty for the support

normal quail
#
helm:
  expression: '%mvdw_armor_helmetremainingdurability% / 363 * 100'
  type: string
#

Im new to this javascript thing

#

And I get a script error in this

#

Why?

#

Im trying to figure out the percentage of remaining durability on a helmet

#

Does math not work in it?

vivid sparrow
#

I have no idea what that is supposed to be

normal quail
#

Its a helmet durability placeholder

#

In percentage

vivid sparrow
#

what plugin is that

#

where do you use it to be more precise

normal quail
#

In a featherboard thing

#

The placeholder is the durability of a helmet (363 is the max)

#

So its dividing it by 363 and multiplying by 100 to convert it to a percentage

#

So say the player has 300 durability left

vivid sparrow
#

doesn't mvdw have it own placeholders?

normal quail
#

The equation should be (300/363) * 100

#

yes

vivid sparrow
#

try {armor_helmetremainingdurability}

normal quail
#

But I want it in percentages

#

Yeah its a big number

#

I want it to just be percentages

#

I did that

#

And all it does is say Script error

vivid sparrow
#

hold on

#

is that inside a javascript file?

normal quail
#

yessss

brisk coral
#

Stonks

vivid sparrow
#

alright

#

that's not a valid format

normal quail
#

I thought I got it from the wiki

brisk coral
#

Mind sending the link to that

vivid sparrow
#
function getDurability() {
    return "%mvdw_armor_helmetremainingdurability%" / 363 * 100;
}

getDurability();```
normal quail
#

huh

#

ok

#

So then what would that format be used for?

#

I must have read it wrong

vivid sparrow
#

I dont remember having the format you have sent anywhere in the wiki

#

not even on spigot

normal quail
brisk coral
#

Clip and his tendency to not update things kek

normal quail
#

And how do I round it?

vivid sparrow
#

@final shadow

normal quail
#

I did my best google work and came up with

vivid sparrow
#

.toFixed()

normal quail
#
function getDurability() {
    return math.Round("%mvdw_armor_helmetremainingdurability%" / 363 * 100);
}

getDurability();
#

oh ok

vivid sparrow
#

(formula here).toFixed()

normal quail
#

ok

vivid sparrow
#

And it's probably Math.round()

normal quail
#

thank you

#

return "%mvdw_armor_helmetremainingdurability%" / 363 * 100.toFixed();

#

Right?

vivid sparrow
#

(formula here).toFixed()
@vivid sparrow

normal quail
#

I did that?

#

Sorry I didnt expect to have to learn a bit of javascript when I got into this

vivid sparrow
#

I mean, add the brackets around the formula

#

¯_(ツ)_/¯

normal quail
#

lol

#

okay trying that now

#

EPIC

#

thank you

vivid sparrow
#

np

bronze bison
#

@fair jungle what you've sent in #off-topic wont work.
You have to use use {} for the main placeholder (parseother's) so you'll have to use the papi's set brackets method for this. and for the other placeholders you need to use something other than {} but that won't work cuz parseother expansion doesn't support something other than {}.
So you either find another way of doing this, or just open an issue to support something other than {} in parseother placeholders.

fair jungle
#

@bronze bison I have tested too but nothing, so, to make compatible parseother-expansion inside of javascript-expansion with variables I am trying to contact with @mint fable to modify the Regex and allow another secondary "brackets" or another possible solution 🙏 ❤️

tender vaporBOT
#

@fair jungle

Hey!

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

bronze bison
#

👍

tender vaporBOT
#

@fair jungle

Hey!

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

#

@fair jungle

Hey!

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

bronze bison
#

The expansion is open source by the way, you can do that yourself.

fair jungle
#

Where? I haven't found it on github, I think parseother-expansion is not public

bronze bison
#

Oh right, was thinking about another one.

narrow thorn
#

Is there something wrong with DeluxeTags placeholder?

#

Everytime I do /papi ecloud download DeluxeTags and /papi reload it breaks the placeholders

turbid tide
#

where does it break it?

#

you should do that only once

narrow thorn
#

It just everytime I do /tags

#

None of the placeholders show

turbid tide
#

in DeluxeTags/config.yml

#

change every %% to {}

#

so for example %deluxetags_tag% change it to {deluxetags_tag}

#

but in other plugins use %deluxetags_tag%

#

except for essentials chat where you have to use {deluxetags_tag} as well

narrow thorn
#

I did that

#

But I have an error now

#

Is there a website to check for TAB?

#

Like where you click the tab button and there is like 5 spaces

turbid tide
#

also it will check for missing '' and other stuff

narrow thorn
#

It says it is valid but it doesn't work

#

I think I found it

gilded coral
#

Hey, what i need to paste for placeholder with featherboard and voteparty ? i want to see all votes

trim mist
gilded coral
#

Discord banned me from my account.. is that a problem?

#

that is my new account

trim mist
#

Uh yeah probably.

gilded coral
#

..

#

@trim mist

trim mist
#

I can't do much if you're banned. You can still look at the wiki and it will tell you how to use the placeholders.

gilded coral
#

okey. Thanks 🙂

ionic maple
#

hello, i have custom resourcepack for my customitem plugin. is there anyway i can put this custom resourcepack on my deluxemenu?

mint fable
#

@fair jungle did you figure it all out?

ionic maple
mint fable
#

And you should be able to use stuff in JavaScript if you assign it to a variable first

ionic maple
#

here, look. i cant use normal sword because it will just show normal sword.

vivid sparrow
#

@ionic maple you need to ask the CustomItems author how are the textures applied. By name, lore, nbt etc.

austere hawk
#

anyone know why luckperms placeholders dont return a value even thought luckperms is installed to the server? I am using a dedicated server, and I think it has something to do with the firewall. Can someone tell me how to fix?

trim mist
#

I don't believe placeholders have anything to do with a firewall.

#

What does it return?

austere hawk
#

well every other placeholder returns the correct value, but not any of the luckperms ones

#

it just puts the placeholder text on the scoreboard

vivid sparrow
#

/papi reload

austere hawk
#

nope

vivid sparrow
#

/papi list installed

austere hawk
#

wait i sec

#

it wont install it

#

i download it, but it doesnt install it

vivid sparrow
#

Any errors?

trim mist
#

=paste

tender vaporBOT
#
HelpChat Paste

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

trim mist
#

Can you put your server startup log there?

austere hawk
#

[12:18:41 INFO]: SilverSleet645 issued server command: /papi ecloud download Luckperms
[12:18:41 INFO]: [PlaceholderAPI] Attempting download of expansion: LuckPerms by user: SilverSleet645 from url: http://api.extendedclip.com/media/Expansion-LuckPerms_IaULsEO.jar
[12:18:41 INFO]: [PlaceholderAPI] Download of expansion: LuckPerms complete!

trim mist
#

A full server startup log would be most beneficial in seeing what the issue might be.

austere hawk
#

ok one min ill restart the server

trim mist
#

Update your LuckPerms plugin and ensure you're on the latest expansion version.

austere hawk
sharp harbor
#

hi

#

whats this

#

could it help me to bypass the limit of scoreboards?

#

any support online?

proud hearth
#

hey how can you get data prom placeholder api in your own plugin?

viscid sail
#

Hey, does anyone know the IP of the PAPI's server. Due to recent attacks I had to block entire countries from my iptables so now I'm not able to connect to it. And I've to allow it from my iptables rules

balmy marten
#

192.99.55.90

#

@viscid sail ^

austere hawk
vivid sparrow
#

@bronze bison

viscid sail
#

Thanks @balmy marten 🙂

bronze bison
#

Hello @austere hawk,
I assume you're in local host right?
Anyway, seems like I've forgotten caching the default timezone for the player in 2 cases, which is why its spamming that every time the placeholder gets parsed.
I'll try to fix it as soon as possible. Thanks for reporting.

austere hawk
#

I am not using a a localhost.
But thank you that you're gonna fix it.

tender vaporBOT
#

@sacred cosmos

Hey!

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

sacred cosmos
#

mb

blissful heath
#

localtimezone have a bug, i get spammed in the console.

junior musk
#

check the messages above

vocal field
#

can PlaceholderAPI placeholders be used in essentialsX kits?

bronze bison
austere hawk
vivid sparrow
#

That has nothing to do with papi though

austere hawk
#

Oh..

mild heart
#

Anyone know how to make the animations addon to papi wave effect go thru only certain colors?

#

because when i do %animations_<wave>?option1=&a,option2=&b_Test% i just see a rainbow rotating thru test

#

Anyone know a answer?

junior musk
#

idk if it's possible

mild heart
#

it is i just dont know how

#

if anyoneee knows i really need support

#

&8&l["%animations_wave?colors="&c,&a,&d"_YourTextHere%"&8&l]&f' is what i have so far and it just glitches out and makes "y"o"u"r"t"e"x"t"H"e"r"e anyone know how to fix this?

#

'"%animations_wave?wave colors="&e,&a,&c"Test/wave>' breaks anyone know if theres a fix

#
'%animations_Wave?colors=&e,&a,&c,&d<Wave Effect>/wave>_Test%'  i now just have a yellow test.... 
``` Anyone know how to make the test become a wave.
junior musk
#

Who's in charge of the Animations expansion ?

#

because it has a little "problem" x)

#

to add multiples colors, you must separe them with , BUT to separe multiples options, you also need , .... so this can't work x) %animations_Wave?colors=&a,&e_test%

#

because &e will be taken as another option, and not another value for the colros option

forest tendon
#

What is the expansion for money?

junior musk
#

vault

#

and use the placeholder %vault_eco_balance%

forest tendon
#

Thanks :D

#

so what do i type to download it

#

like /papi ecloud download ?

#

Whats the expansion?

junior musk
#

vault

forest tendon
#

so just /papi ecloud download vault?

junior musk
#

yeah

#

after reload papi

forest tendon
#

Thanks :D

tender ledge
#

I posted in here ages ago about a problem and asked for help, noone was able to help

#

Just letting you know the issue is fixed so I no longer need clip

#

Much love anyways ❤️

mint fable
#

@pseudo mist do you have your expansion on github? it makes things a bit easier

pseudo mist
mint fable
#

why temporary?

#

is rogueparkour your plugin?

pseudo mist
#

Yes

mint fable
#

I recommend putting the expansion inside your plugin then.

pseudo mist
#

Comming song.... 4 years later..

#

No it's my plugin

mint fable
#

It's your plugin, so you can add the expansion inside. It makes it easier for people to use.

pseudo mist
#

The leaderheads not working, and i made one placeholder for can use

#

It's your plugin, so you can add the expansion inside. It makes it easier for people to use.
Not it's my plugin...

mint fable
#

ohh

pseudo mist
#

I would love for there to be a source code and follow the project ... But it's not like that

mint fable
#

it looks mostly good to me, but I think you should add a plugin to it

#

you have getPlugin() returning null

#

I would assume you want to return "RogueParkour"

pseudo mist
#

Is that like dependencies?

mint fable
#

yep

#

wait

#

it's been changed

#
    /**
     * if the expansion requires another plugin as a dependency, the 
     * proper name of the dependency should go here.
     * <br>Set this to {@code null} if your placeholders do not require 
     * another plugin to be installed on the server for them to work.
     * <br>
     * <br>This is extremely important to set your plugin here, since if 
     * you don't do it, your expansion will throw errors.
     *
     * @return The name of our dependency.
     */
    @Override
    public String getRequiredPlugin(){
        return "SomePlugin";
    }```
pseudo mist
#

?

mint fable
#

Use that and make sure to @Override it

pseudo mist
mint fable
#

lmao i missed that

#

you can remove the getPlugin method

#

there's a few things I think, setting methods to private being one of them

pseudo mist
#

the getOfflinePlayer method?

mint fable
#

well, I think method

#

order

#

and is getOfflinePlayer only used in your expansion?

#

I assume so

pseudo mist
#

yes

mint fable
#

private

#

then it looks good to me... but I can't verify so....

pseudo mist
#

I upload changes and change version (again :D)

mint fable
#

hmmm who shall I ping

#

@vivid sparrow 👍

pseudo mist
#

is there any way to link an expansion to github in ecloud?

mint fable
#

when uploading, yes... not sure about editing

#

yes you can

#

go to the my expansions page

pseudo mist
#

Okay, i add github page

mint fable
#

nice

pseudo mist
#

Your profile... Only number expansion lmao. no which

#

Into all expansion yes, okay okay XD

mild heart
#

anyone know the code to make a wave change from the colors red orange and yellow i cant get mine to work

#

From teh animation plugin

primal vault
#

may i know what does it mean when it says "No cloud expansion available at this time"?

vivid sparrow
#

@mint fable ?

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.

vivid sparrow
#

@primal vault

mint fable
#

@pseudo mist was wanting to get their expansion verified

primal vault
#

wait gaby

#

my first server allowed me to do /papi ecloud download

#

but second server couldnt, under same host

#

any idea?

vivid sparrow
#

idk, I dont manage that @mint fable

mint fable
#

I thought you had perms?

#

that's why I tagged you 😂

#

@balmy marten

vivid sparrow
#

I do have perms but I dont moderate them

mint fable
#

ah

balmy marten
#

Link me to the expansion @mint fable

mint fable
balmy marten
#

Seems you're trying to load two expansions from the one jar?
RogueParkour.class v1.6
RogueParkour_placeholder.class v1.3

mild heart
#

'%animations_Wave?colors=&e,&a,&c,&d<Wave Effect>/wave>_Test%' i now just have a yellow test....
Anyone know how to make the test become a wave. its just a yellow TEST

#

@heady falcon can you animate a wave with different colors i tried with Quotations around The &e-&d and tried getting rid of <wave effect> and /wave ive spent around 1 hour and a half trying to figure this out and i just feel dumb trying to make a wave have different colors can you show me a example of a wave with different colors and give the code for it please.

heady falcon
#

Use + instead of ,

#

%animations_Wave?colors=&e+&a+&c+&d_Wave Effect%

pseudo mist
#

Seems you're trying to load two expansions from the one jar?
RogueParkour.class v1.6
RogueParkour_placeholder.class v1.3
@balmy marten I change into 1.4 the name class. PiggyPiglet told me it was redundant and i change it

tender vaporBOT
#

@pseudo mist

Hey!

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

bright locust
#

🙂

wet basinBOT
#

@limber ice Unknown expansion.

vivid sparrow
#

@balmy marten can we upload our own expansions to papi org on github?

balmy marten
#

Yeah if it lets you

vivid sparrow
#

🆗

balmy marten
#

otherwise i might have to create the repo

vivid sparrow
#

create Armor-Expansion please

#

in case I dont have access (cant test rn)

balmy marten
#

Done

#

and gave access for trusted to maintain

vivid sparrow
#

danke

#

I will push it when I get time 🙃

limber ice
#

can I use papi placeholders in Essentials custon.txt?

vivid sparrow
#

not without chatinjector

limber ice
#

Barry Minion are you a bot?

warm topaz
vivid sparrow
#

smh ironic

turbid tide
#

which of them? :))

junior musk
#

lol

limber ice
#

25565 since he edited his message

#

is there a time format expansion?

tulip coyote
#

Hello, can anyone help me?

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

Source

tulip coyote
#

I can't get "Statistic" placeholders to work.
Manually install the extension 1.7.0 because I couldn't with the command /papi ecloud download Statistic 1.7.0 and it still doesn't work for me ...
Statistics always remain at 0 and are not updated.
Any solution?
(I CANNOT SPEAK ENGLISH, I USE GOOGLE TRANSLATE)

iron panther
#

Hello, I have downloaded the following expansions https://prnt.sc/rqxjrr and after each download i did /papi reload which then gave me this error https://prnt.sc/rqxkdn I have no idea why this is happening, i downloaded them through the ingame commands. When i then do /papi list it just lists the following expansions https://prnt.sc/rqxl77. anyhelp would be greatly appreciated.

junior musk
#

can you send the error that should be in your console ?

iron panther
junior musk
#

it seems that you have an error with the Quests expansion, try removing it and reload PAPI

iron panther
#

that works thank you. However the quests isnt working, and for my scoreboard i really need quests. Do you have an alternate solution for this new problem?

junior musk
#

check if you are using the latest version of the plugin Quests

iron panther
#

its all the latest with the 1.15 version for it

junior musk
#

if it is the latest, try redownloading the expansion

#

and if it fails, then ask the dev

iron panther
#

I will do all that. Thank you for your time

frank sinew
#

When I do /papi reload, my savageftop placeholders all turn off and it requires a restart to fix

#

These broke doing /papi reload

#

And /plugman reload placeholderapi breaks ALL the placeholders

#

Is there a way to fix this

junior musk
#

And /plugman reload placeholderapi breaks ALL the placeholders
plugman, even if it's sometimes useful, breaks plugins most of the time

#

These broke doing /papi reload
probably that the placeholders are hardcoded in the plugin and the author forgot to register them again on /papi reload

#

try to contact him to fix it

frank sinew
#

Thanks for the help! 😄

zealous shell
#

Hi Guys there isnt a channel for Deluxe Menu. Is it this channel I should request support?

junior musk
#

this one is for PAPI

zealous shell
#

Understood cheers x

pale prawn
#

yo all dont suppose anyone knows is there a plugin that is supported by papi that allows u to display top donators is there?

trim mist
#

Idk if BuyCraft supports papi or has placeholders in general.

pale prawn
#

i dont think so cant find any info on it

#

as im using leaderheads

#

and capable of displaying the top kills but cant find a plugin to display top donations

compact wharf
#

i need some guidance on what i should do about placeholders for ranks/ezrankspro on FB. i get an error when i use ezranks placeholder if i go beyond the ranks i have in my config of ezrankspro

sacred cosmos
#

Glare, why can I not upload an expansion to the ecloud?

#

@trim mist

tender vaporBOT
#

@sacred cosmos

Hey!

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

turbid tide
#

{placeholderapi_ezrankspro_rank} I think this is how you use placeholders from placeholderapi to featherboard

compact wharf
#

yeah thats not the problem, the problem is when i go out of the ranks that are in the config i get an error. So for example first rank is Traveler and last rank is King, if i go to Owner rank it gives me errors

forest tendon
#

Is there a placeholder to show what server your in (bungeecord)

pale prawn
#

yeah chesk the wiki bud

forest tendon
#

oki

#

when i do it the servername says A minecraft server, when the server is called hub

junior musk
#

there isn't

forest tendon
#

?

pale prawn
#

change it in the server promoties of cheat server

junior musk
#

there's %server_name% but it shows the one in your PAPI's config

pale prawn
#

properties

forest tendon
#

thats what i did %server_name%

junior musk
#

change it in the server promoties of cheat server
nope, this placeholder uses the name set in papi's config

#

thats what i did %server_name%
then change the name in PAPI's config

forest tendon
#

ok

#

fixed it

#

Thanks

rigid glacier
#

Can someone help me? I have an error with PAPI. When i do papi ecloud download Vault. and then papi reload, it says an internal error occurred while attempting to perform this command. https://pastebin.com/QRHYsr1p

junior musk
#

you seem to have an error with the LuckPerms expansion that breaks PAPI

turbid tide
#

do you have Vault installed?

junior musk
#

what's your LP version ?

trim mist
#

java.lang.NoClassDefFoundError: net/luckperms/api/LuckPerms

sand leaf
#

LP

trim mist
#

Update LuckPerms + Expansion.

rigid glacier
#

Fixed it

junior musk
#

yeah that's faster x)

rigid glacier
#

luckperms was in the papi folder

#

And i dont have luckperms anymore

#

Thanks for the quick response

#

Can any of you also help me with DeluxeTags?

junior musk
turbid tide
#

🙂

junior musk
#

🙃

rigid glacier
#

Ill go ther

compact wharf
#

i need some help on what i should do about placeholders for ranks/ezrankspro on FB. i get an error when i use ezranks placeholder if i go beyond the ranks i have in my config of ezrankspro. So for example first rank is Traveler and last rank is King, if i go to Owner rank it gives me errors

brisk coral
#

=paste

tender vaporBOT
#
HelpChat Paste

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

compact wharf
pale prawn
#

is it possible on world edit to select a radius of something like 500 blocks with out using the wand?

brisk coral
#

@compact wharf use the correct expansion version, alongside the correct plugin version. Cuz rn it's trying to access a method which doesn't exist

compact wharf
#

The correct plugin version for featherboard?

brisk coral
#

That doesn't matter, update your expansion for ezrankspro is my best bet

compact wharf
#

ill give it a shot

compact wharf
#

i updated expansion for ezranks and same thing

hazy bison
#

Hello, currently I'm trying to display the top ten factions with the most members and the most power using leaderheads, but rather than the faction name, a player name returns when i use %leaderheads_name_factionsuuidfactionsize_alltime_1% (I'm using factionsuuid). This makes sense due to the nature of leaderheads, but I was wondering if theres any way to have leaderheads return the faction name instead? Any help would be greatly appreciated.

compact wharf
#

how would i add extra placeholder for $.00 on featherboard? the only one that seems to add the 2 extra place holds is {vault_eco_balance} but it has like 4-6 depending on the balance of the player

#

i only want 2

pseudo mist
#

Seems you're trying to load two expansions from the one jar?
RogueParkour.class v1.6
RogueParkour_placeholder.class v1.3
funnycube only change the name class, because it was redundant.
(On the day of the message I went to sleep)

lone minnow
#

I need help ❤️

#

My papi isn't reading my EzRanksPro plugin.

deep hollow
#

Hey, I'm trying making a javascript to multiply a number * 2 and round it, but it's giving me 500.0 instead of 500, someone could help, please? Thanks :)

function hp() { return Math.trunc('%superior_island_radius%' * 2 - 1); } hp();

turbid tide
#

I think you have to use the Math.floor() function

#
function hp() {
    
    var test = Math.trunc('%superior_island_radius%' * 2 - 1);
    return Math.floor(test);
}
hp();```
#

@deep hollow

#

i think that should work

deep hollow
#

Script error :S

turbid tide
#
var test = Math.trunc('%superior_island_radius%' * 2 - 1);
function hp() {
    
    return Math.floor(test);
}
hp();```
#

?? 🙂

deep hollow
#

Nope :S

#

yours gave script error

#

but changing "Math.trunc to Math.round"

#
function hp() {
    
    return Math.floor(test);
}
hp();```
#

gives me 199.0

turbid tide
#

so Math.floor doesn't work?

brisk coral
#

What are you trying to do?

deep hollow
#

Removing that .0 decimal

brisk coral
#

.toFixed(0)

turbid tide
#

oh

#

well I tried

#

:))))

deep hollow
#

Yeah now it's working

#

thanks both! 😄

lone minnow
#

I need help ❤️
My papi isn't reading my EzRanksPro plugin.

turbid tide
#

#spigot-linking

high stump
#

Anyone else experiencing a broken server_name placeholder?

#

Specifically when used on a Bungee network

turbid tide
#

what do you mean?

#

what does /papi parse me %server_name% return ?

high stump
#

On every one of my servers, PAPI parses the placeholder as one of the servers [Survival]
No matter what server the user is actually on

turbid tide
#

and you are using bungee?

high stump
#

Yes

turbid tide
#

never seen something like that

high stump
#

It worked fine until the latest PAPI update

#

And it's not exactly an easy task for me to downgrade

trim mist
#

Nothing pertaining to that changed.

#

It would've been something in the expansion.

high stump
#

The expansion is on the latest version and hasn't changed in 6 months

#

Is there an alternative way of grabbing a users server with a placeholder?

wispy birch
#

hmm, papi isnt able to load my statistics, redownloaded and papi reloaded just to be sure, none of the %statistic_x% are workin

#

nvm wrong command

#

was doing /fb parse instead of /papi parse, rookie mistake

narrow thorn
#

For DeluxeMenus is there a way to make the whole gui fill up with like glass panes?

sand leaf
#

slots:

  • 8
  • 4
    #etc
mental night
#

Anyone know how to use a interval on a hologram

buoyant hedge
#

I can go post it in the VoteParty channel if need be.

mental night
#

yeh spigot was down at the time so i couldnt find it ty doe <3

atomic oak
sand leaf
#

I think there exists a command for it?

atomic oak
#

@sand leaf Would you know it?

sand leaf
#

/papi ecloud info <expansion name>

atomic oak
#

it's not on the ecloud though, just hooks in already with placeholderAPI

sand leaf
#

Hm

atomic oak
sand leaf
#

Eggs Found Placeholder ( %eastereggs_eggsfound% )
Total Eggs Placeholder ( %eastereggs_totaleggs% )

#

I found that

atomic oak
#

Trying to do a hologram for the top eggs. %player% wont work, so had to use %player_name%

sand leaf
#

yes

#

I think %player% is only a placeholder for the plugin itself

#

%eastereggs_player% would work?

atomic oak
#

Nope did try that

#

He reckons on the plugin page he has explained the placeholders but really has not... read the reviews

sand leaf
#

I can download it and decompile it

atomic oak
#

Be amazing if you can, yet to learn all of that

#

just no time at the moment

sand leaf
#

It's ok it takes just a min or smtng

atomic oak
#

take your time

sand leaf
#
        if (player == null) {
            return "";
        } else if (identifier.equalsIgnoreCase("eggsfound")) {
            return String.valueOf(EggHandler.getEggsFound(player));
        } else {
            return identifier.equalsIgnoreCase("totaleggs") ? String.valueOf(EggHandler.getTotalEggs()) : null;
        }
#

Only 2 placeholders

atomic oak
#

Thankyou

plush loom
#

is papi down or something

balmy marten
#

erh hope not

#

Why what's up?

tender vaporBOT
#
Online!

PlaceholderAPI eCloud is online and responding.

plush loom
#

Couldn't download from the ecloud

#

Working now tho

balmy marten
#

weird

arctic loom
#

It only happens when I download latest Vault expansion

vivid sparrow
#

Aww npe

arctic loom
#

There's already an issue open on GitHub, but it seems that nobody cares to check

vivid sparrow
#

At line 44 it's just a for loop

#

With null checks

#

Hm

arctic loom
#

Also, /papi ecloud download <expansion> <version> won't work

balmy marten
#

Yeah we had to disable downloading older versions ingame

#

It will get added back though, once enough people have moved over to the latest papi

pseudo mist
#

funnycube could you tell me what I have to do to have the expansion verified?

buoyant hedge
#

Everything breaks in PAPI all my placeholder no longer work.

trim mist
#

Delete the expansion in the expansions folder.

#

It's built-in now.

buoyant hedge
#

I'll try.

#

No, I mean my mcmmo, balance and faction placeholders all break when VoteParty is in my plugin folder.

#

Like everything else.

trim mist
#

Again, delete the expansion in the expansions folder.

buoyant hedge
#

Again:

I'll try.

vivid sparrow
arctic loom
#

Nope

#

Still the error

vivid sparrow
#

hmm

arctic loom
#

The issue seems to be the for loop itself

vivid sparrow
#

I dont think Bukkit.getOfflinePlayers() is different on 1.15 than 1.12.2

arctic loom
#

Like something within for(OfflinePlayer player : Bukkit.getOfflinePlayers()) causes a NPE

vivid sparrow
#

added some debug

arctic loom
#

uhm.... There is no debug?

vivid sparrow
#

I see

arctic loom
#

I just disable the baltop for now as it seems to be the only annoying issue

vivid sparrow
#
        for (OfflinePlayer player : Bukkit.getOfflinePlayers()) {
            if (player == null || player.getName() == null) {
                continue;
            }

            top.put(player.getName(), eco.getBalance(player));
        }```
I don't see what the problem can be
#

@carmine veldt thoughts ?

arctic loom
#

Probably a player Spigot doesn't know of somehow....

vivid sparrow
#

somehow line 44 (the for loop) throw a NPE

bronze bison
#

didnt clip fix that issue?

vivid sparrow
#

for (OfflinePlayer player : Bukkit.getOfflinePlayers()) {

bronze bison
#

clip03/11/2020
@arctic loom paper said update your outdated server and its probably an issue with the environment your server is running idk
cant replicate locally

arctic loom
#

didnt clip fix that issue?
@bronze bison Considering my issue about it on the repo is still open: No he didn't

vivid sparrow
#

perhaps upgrade to 1.15.2

#

or whatever the latest version is

arctic loom
#

I personally do use the lates paper version...

vivid sparrow
#

right

arctic loom
#

But I mean clip gave a usual dev response:
Doesn't happen on my PC

vivid sparrow
#

what else are you expecting

#

Imma download 1.15 in a sec

bronze bison
vivid sparrow
#

@arctic loom [19:14:16 INFO]: Bukkit.getOfflinePlayers() = [CraftPlayer{name=GabyTM}]

#

no errors

arctic loom
#

Nice.

#

I just give a shit now, because I disabled this and can't be bothered going through everything to find a possible cause.
It's most likely a corrupted file of a player?

#

And it points to the line of the start of the for loop

vivid sparrow
#

though if the file is corrupted shouldnt the player be null and ignored?

twin sinew
brisk coral
#

download the correct expansion version

twin sinew
#

which one?

trim mist
#

Update your LuckPerms and then run /papi ecloud download LuckPerms again.

warm swan
#

Hey, i'm heaving a issue with advancedachievements|placeholder|mcmmo... It's not working, probably it's my fault but I don't know how to solve this issue

#

mcmmo_party_leader:
1:
Goal: Seja líder de uma party.
Message: Agora você é um líder de party.
Name: Partyleader
Reward:
Money:50000

#

Advancedachievements don't let me put %mcmmo_party_leader% and if i remove % it doesn't work either

dark venture
#

Did you install the expansion for the plugins?

warm swan
#

Did you install the expansion for the plugins?
@dark venture i had to install it manually cuz the command /papi ecloud isn't working

green panther
#

I have a question

iron sierraBOT
#

Theres no time to wait! Ask your question @green panther!

green panther
#

is PlaceHolderAPI working with perWorldChat?

#

?

reef sinew
#

With the CrazyCrates plugin, I'm trying to make it so when someone wins a item, it does a command to give a player 100 in game coins, the command I usually use is /sw stat (player) elo add (amount).

What placeholder would I replace the (player) with, so it actually gives the player the coins?

warm topaz
#

%player% iirc

#

there should be something on the wiki

austere hawk
#

I feel really stupid, so while using this code:

var p2 = "%player_name%";

function always() {
    if (args.length == 1) {
       slot = args[0];
        if (p2 != "ziemniok9" && p1 == slot) {
            return "true";
        } else {
            return "false";
        }
    } else {
        return "false";
    }
}
always();```
placegolder ``%javascript_eastereventslot3,1%`` returns just ``%javascript_eastereventslot3,1%``
#

whats wrong in it...?

#

*i added it into javascript_placeholders

#

Please ping me on answer @austere hawk

blissful mesa
#

hey for some reason

#

papi is not detecting all my extensions

#

and reload is supper broken

vivid sparrow
#

@austere hawk where is the "slot" variable defined?

#

just use args[0]

turbid tide
#

placegolder %javascript_eastereventslot3,1% returns just %javascript_eastereventslot3,1%

#

you need the javascript expansion

#
/papi reload```
lucid pond
#

Hi for some reason papi doesn't hook into the placeholder expansions

dawn cobalt
#

Exist a place holder and allways give you nothing, like "", just a space, or have a form to chance a clean space to None.

vivid sparrow
#

javascript

austere hawk
#

@austere hawk where is the "slot" variable defined?
just use args[0]
I changed it, but it still didn't fixed the problem

you need the javascript expansion
I already do have it. I even use some other javascript placeholders

Also another note:
Placeholder %javascript_eastereventslot3,1% returns %javascript_eastereventslot3,1%
Placeholder %javascript_eastereventslot3% returns false

I still need help 😛

turbid tide
#

oh @austere hawk it is %javascript_eastereventslot3_1%

#

before fist argument you put _

#

and only in between arguments you put ,

austere hawk
#

OMG, ty so much, it actually did worked out.

turbid tide
#

🙂

reef sinew
brisk coral
#

%player_name% ?

reef sinew
#

Didn't seem to work..

brisk coral
#

What plugin is that from?

reef sinew
#

CrazyCrates... I am trying to give the player ELO (form of currency) from the SkyWarsReloaded plugin.

turbid tide
#

did you set the blacklisted permissions?

brisk coral
#

%Player%

#

I believe that's the placeholder, atleast I know that's with most of badbones' plugins

turbid tide
#

yeah it is %Player%

reef sinew
#

okay.

#

Yea, I can't seem to get it to give the player the currency.

turbid tide
#

are you sure the command you are using is the correct one?

#

try doing /sw stat NickPlayzGamezz elo add 50

#

in chat

#

and see if it works like that

reef sinew
#

/sw stat _NickPlayzMC elo add 100 works in-game.

turbid tide
#

can you paste the entire item?

#

=paste

tender vaporBOT
#
HelpChat Paste

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

reef sinew
turbid tide
#

@reef sinew it doesn't work because you didn't set a BlackListed-Permissions: []

reef sinew
#

Okay, how would I set the permission?

#

Like, what permission node would I use for it?

turbid tide
#

you can use any you want

#

here is an example

#
      BlackListed-Permissions:
        - 'fiftycoins.permission'
reef sinew
#

Oh, okay, then give the group that perm. (or not)

turbid tide
#
      Alternative-Prize:
        #Toggle if the prize will use alternative prizes for the blacklisted permission.
        Toggle: false
        Messages: []
        Commands: sw stat %player% elo add 50 
        Items: []``` sets a prize for the item if you win it twice
#

or more

#

no Nick

#

I see now

#

you didn't set the prize corectly

#

you use Alternative Prize and Blacklist-Permission for other thinks

reef sinew
#

Ohhhh.

#

Okay.

turbid tide
#

you add your prize here:

#
      Commands:
        - 'broadcast &6&l%Player% &7has just won &e50 Coins.'```
#

so like this:

#
      Commands:
        - 'broadcast &6&l%Player% &7has just won &e50 Coins.'
        - 'sw stat %player% elo add 50'
#

you can remove BlackListed-Permissions: and Alternative-Prize:

reef sinew
#

Yea, gotcha, I just put the command in the wrong command slot.

#

Thanks.

turbid tide
#

no problem

whole thicket
#

Good morning, sir,

I have a problem, when I put %pinger_online_testplugins.com:25565% and replace with my server's ip it doesn't work in the menu

Can you help me?

Thank you

turbid tide
#

what does it return?

#

@whole thicket ?

#

try doing /papi ecloud download Pinger and /papi reload

whole thicket
#

Yes, I did, but it still doesn't work.

turbid tide
#

what does /papi parse me %pinger_online_testplugins.com:25565% return?

#

but change testplugin with your server's ip

whole thicket
#

%pinger_online_monip

turbid tide
#

so the exact same thing

#

that you parse?

whole thicket
#

incorrect usage

turbid tide
#

try reinstalling the Pinger expansion

#

go to plugins/PlaceholderAPI/expansions

whole thicket
#

ok

turbid tide
#

and delete Expansion-Pinger.jar

#

and then do /papi reload

#

and then do /papi ecloud download Pinger and /papi reload

whole thicket
#

it doesn't work

#

you have no idea ?

turbid tide
#

not rly

inland mesa
#

is it possible to add an extension where the data is returned asynchronously?

#

otherwise i have to do a lot of caching to preserve server quality

gleaming charm
#

Code it yourself 🤷‍♂️

split rock
#

Im having an issue where PAPI says there are no cloud expansions available at this time

#

anyone know what im doing wrng?

junior musk
split rock
junior musk
#

?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.

junior musk
#

and you PAPI version is very outdated

#

latest is 2.10.5 while you have 2.8.2

split rock
#

okay thanks

split rock
#

why is this happening?

steel escarp
#

placeholders from statistics don't work for me

cyan tide
#

does anyone know how to use the factions uuid placeholders?

#

they dotn seem to be working 😦

warm furnace
#

hello, can somebody tell me how to fix this error?

#
[01:47:25 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.expansion.redisbungee.RedisBungeeExpansion
[01:47:25 ERROR]: [PlaceholderAPI] Channel must contain : separator (attempted to use RedisBungee)
#

It's RedisBungeeExpansion for PlaceholderAPI

trim mist
#

@sudden slate Give him working jar

sudden slate
#

lol

trim mist
#

@warm furnace Try that ^

inland mesa
#

@gleaming charm how am i supposed to change the way that PAPI requests placeholders? wtf?

trim mist
#

Expansion authors can implement cache if they feel like it

inland mesa
#

does papi not have a way to request placeholders in an async thread?

trim mist
#

Not that I'm aware of, no.

inland mesa
#

alright

sage bronze
#

howdy

#

how do u do the healthbar animation?

austere hawk
turbid tide
#

and your username is planktombag ?

austere hawk
#

JokerzHD

turbid tide
#

you have to do /papi parse planktombag %statistic_player_kills%

#

to see his statistics

#

or did you killed planktombag?

austere hawk
#

yes

#

im killed planktomabg

#

and i have no kills

#

im installed placeholderapi 2.10.5

#

on 1.8.8 spigot server

turbid tide
#

try doing this /papi parse planktombag %statistic_player_kills% and see if it works for planktombag kills

austere hawk
#

which version of your server is on

turbid tide
#

so i don't know what the issue is or how to fix it but you should create an issue on github

warm furnace
#

@warm furnace Try that ^
@trim mist It doesn't work too

tender vaporBOT
#

@warm furnace

Hey!

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

warm furnace
#

If I execute command /papi parse me %redisbungee_total%