#placeholder-api

1 messages · Page 103 of 1

half cape
#

So I can change "Yes" to "Online" and "No" to "Offline"

tall hinge
#

can you make a javascript placeholder have 2 placeholders in 1 document?

turbid tide
#

so 2 javascripts in 1 file?

tall hinge
#

yea basically

turbid tide
#

I don't think so

tall hinge
#

kk guess ill just make 2 files lol

turbid tide
#

I mean what you could do is make it with argujments

#

and then do 2 cases

#

if the argument is 1 or 2

#

and just put your code for each placeholder in those 2 if blocks

tall hinge
#

how do you check for arguments with a placeholder?

trail yacht
#

What he means is if you have a place holder being equal to 2 words how do you select with one of the arguments you want

turbid tide
#

so you call the placeholder like this: %javascript_NAME_ARGUMENT% and then in the config you get the argument by doing var argument = args[0] or just use args[0] directly so for example if (args[0] == 1)

trail yacht
#

i was trying to do it alike this and then recall it with %javascript_server_test1
but it didn't work it doesn't even reconise that it's a place holder do you know what i've done wrong ?

if (args[0] == test1) {
    function name() {
        return servername = 'test1';
    }
} else if (args[0] == test2) {
    function name() {
        return servername = 'test2';
    }
} else if (args[0] == test2) {
    function name() {
        return servername = 'test3';
    }
}
name();
turbid tide
#

you forgot ""

#

so "test1"

#

"test2"

#

etc

trail yacht
#

oh yea i see

#

🤦‍♂️

turbid tide
#
if (args[0] == "test1") {
    function name() {
        return servername = 'test1';
    }
} else if (args[0] == "test2") {
    function name() {
        return servername = 'test2';
    }
} else if (args[0] == "test2") {
    function name() {
        return servername = 'test3';
    }
}
name();
trail yacht
#

it still doesn't seem to be working :/

turbid tide
#

can you paste the entire placeholder?

#

also

#

what should that return ?

trail yacht
#

it's litterly just creating a placeholder for our server name

#

the thing i send earlyer is the entire script there is nothing else to it

turbid tide
#

well return servername = 'test3' is wrong

#

you need to use return "servername = test3"

trail yacht
#

the function worked ?

turbid tide
#

btw

#

if that is all

trail yacht
#

we have this currently setup in multiple scripts with only 1 name per thing

turbid tide
#

that is wrong as well

arctic lake
#

Can anyone tell me the placeholder for 'prefix'

turbid tide
#

%vault_prefix%

arctic lake
#

its not working

turbid tide
#

make sure you have downloaded the expansion /papi ecloud download Vault /papi reload

arctic lake
#

Okay thank you

turbid tide
#
function name() {
if (args[0] == "test1") {
    function name() {
        return "servername = test1";
    }
} else if (args[0] == "test2") {
    function name() {
        return "servername = test2";
    }
} else if (args[0] == "test2") {
    function name() {
        return "servername = test3";
    }
}
name();``` @trail yacht
trail yacht
#

lemme try

#

there is a } missing and if i add it it says that name is never recalled

#

btw

#

"test1" is the place holder

#

so, this script works as we want it to but i would like to be able to have multiple outputs with it and thats what i am trying to do and got stuck on as you've noticed

function name() {
    return serverip = 'ViciousMC.serv.nu';
}
name();
turbid tide
#

oh wair

#

I just saw

#
function name() {
if (args[0] == "test1") {
        return "servername = test1";
} else if (args[0] == "test2") {
        return "servername = test2";
} else if (args[0] == "test2") {
        return "servername = test3";
}
}
name();
#

here you go

#

My pc crashed xD

#

so you had to wait a minute

#

@trail yacht

livid anchor
#

Can someone help with this please

#

So I have a bungeecord network and was trying to install papi onto it but I keep getting this error

org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:169) ~[patched_1.15.2.jar:git-Paper-245]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:148) ~[patched_1.15.2.jar:git-Paper-245]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:359) ~[patched_1.15.2.jar:git-Paper-245]
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:234) ~[patched_1.15.2.jar:git-Paper-245]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:895) ~[patched_1.15.2.jar:git-Paper-245]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_242]
at java.util.zip.ZipFile.<init>(ZipFile.java:225) ~[?:1.8.0_242]
at java.util.zip.ZipFile.<init>(ZipFile.java:155) ~[?:1.8.0_242]
at java.util.jar.JarFile.<init>(JarFile.java:166) ~[?:1.8.0_242]
at java.util.jar.JarFile.<init>(JarFile.java:130) ~[?:1.8.0_242]
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[patched_1.15.2.jar:git-Paper-245]
... 5 more```
turbid tide
#

papi doesn't work on bungee

#

if that is what you were trying to do

#

you have to install it on every server

#

but not on bungee

trail yacht
#

@turbid tide sadly it still doesn't seem to work am i recalling it correctly by using %javascript_server_test1% the file is called server

tender vaporBOT
#

@trail yacht,

Hey!

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

turbid tide
#

yeah

trail yacht
#

well then it still doesn't work :/

#

it just puts the placeholder in chat with out even saying it's a script error

turbid tide
#

any errors in console?

trail yacht
#

nothing at all

#

i don't think it even activates the script by the looks of it

trail yacht
#

do you have any clue what can be the issue?

mint fable
#

send these files

#
  • the js file
  • the js config file
  • startup log
#

@trail yacht

#

=paste

tender vaporBOT
#
HelpChat Paste

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

turbid tide
#

@trail yacht you know %server_name% exists right?

vast nova
#

FYI, the Javascript expansion has some issues with concurrency. You can fix it easily by making sure you use a ReentrantLock before inputting variables into the engine/ evaluating it.

I can make a PR when I have some free time.

trail yacht
#

@trail yacht you know %server_name% exists right?
@turbid tide yes but we are also saving our website link / buycraft link like this

#

send these files
@mint fable my friend just came up with something wich might be the issue if this still doesn't work then ill send them

#

it works now thanks for the help

mint fable
#

what was it?

tall hinge
#

he forgot to put it in javascript config xD

trail yacht
#

ends up all along i was dumb enough to not put in the config

#

🤦‍♂️

mint fable
#

nice

tall hinge
#

like he was like "its still not working wtf" and i was like "did you even put it in the config" "uhhh"

trail yacht
#

yep

#

basicly

mint fable
#

ggwp

buoyant nexus
#

how can i add an api to an item in the lore? example iron sword with lore "Welcome: [nickname]

turbid tide
#

so how to use placeholders in plugin names or lores?

#

you probably need a plugin that can do that

buoyant nexus
#

Yes, but which?

#

do you know anyone?

turbid tide
#

unfortunately no

buoyant nexus
#

I tried the essentials when giving a kit but I did not get results

turbid tide
#

what is your server version? I found this to 1.8-1.12

#

actually 1.7-1.12

#

also found this

#

for 1.15

#

and this

#

for 1.8-1.15

#

@buoyant nexus ^

#

idk if any support placeholders tho

buoyant nexus
#

tysm i try it

wet creek
#

Is there a KDA placeholder?

brisk coral
#

Math

brisk coral
#

The seperator for args is ,

#

So donator,tag1

trail yacht
#

I don't really understand what you mean tbh

compact wharf
#
var DecimalFormat = Java.type("java.text.DecimalFormat");
var format = new DecimalFormat("#,###.00");
var balance = %vault_eco_balance%;

function formatBalance() {
  return format.format(balance)
  
} if (balance == 0) {
  return "0.00";
}

formatBalance();

#

is that right?

brisk coral
#

%javascript_server_donator,tag1%

#

Jarco ^

trail yacht
#

ah i see Thanks!

brisk coral
#

@compact wharf Try it out and see

compact wharf
#

nope lmao it gave me script error

brisk coral
#

Put the placeholder in ""

compact wharf
#

wdym which placeholder?

trail yacht
#

Now how can i make it return "ViciousMC;" if there is no args[1] found ?

function name() {
if (args[0] == "name") {
        if (args[1] == "tag") {
                return "&e&lVicious&6&lMC";
        } else if (args[1] == "") {
                return "ViciousMC";
        } else {
                return "!!! INVALID ARGUMENT !!!";
        }

} else if (args[0] == "buycraft") {
        return "buy.ViciousMC.serv.nu";

} else if (args[0] == "ip") {
        return "ViciousMC.serv.nu";

} else if (args[0] == "donator") {
        if (args[1] == "tag1") {
        return "&f&LIron";
        } else {
                return "!!! INVALID ARGUMENT !!!"; 
        }
}
}
name();
brisk coral
#

@compact wharf You balance variable

compact wharf
#

it was working without it, same thing happens when i put it in ""

trail yacht
#

i do know to use

if (args && !args.length) {
}

with discord bots if you wanna have no 2nd argument but how does that work in that case above

brisk coral
#
function getTag()
{
  var argument = args.length >= 1 ? args[0].toLowerCase() : null;
  var tag = args.length === 2 ? args[1].toLowerCase() : null;

  switch (argument)
  {
     case "name":
        if (tag === "tag") return "&e&lVicious&6&lMC";
        else if (tag === "") return "ViciousMC";
        else return "!!! INVALID ARGUMENT !!!";
     case "buycraft":
        return "buy.ViciousMC.serv.nu";
     case "ip";
        return "ViciousMC.serv.nu";
     case "donator";
        return tag === "donator" ? "&f&lIron" : "!!! INVALID ARGUMENT !!!";
     default: 
        return "!!! INVALID ARGUMENT !!!";
  }
}
getTag();
trail yacht
#

script error :/

brisk coral
#

what's the error

trail yacht
#

you mean in console ?

brisk coral
#

yea

#

=paste

tender vaporBOT
#
HelpChat Paste

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

trail yacht
brisk coral
#

try the updated one

trail yacht
#

still a error

#

lemme get the error

#

it's also still giving me that error of getting ; but expecting : in visualstudio code

#

if i change the error above to be fixed it is able to return the "name,tag" but if you try to recall "name" it returns the "buycraft" value

brisk coral
#

"name,"

trail yacht
#

i've tried that already it still returns the "buycraft" value

brisk coral
#

show me the js you have

trail yacht
#

this is litterly the entire thing

#
function getTag()
{
  var argument = args.length >= 1 ? args[0].toLowerCase() : null;
  var tag = args.length === 2 ? args[1].toLowerCase() : null;

  switch (argument)
  {
     case "name":
        if (tag === "tag") return "&e&lVicious&6&lMC";
        else if (tag === "") return "ViciousMC";
        else "!!! INVALID ARGUMENT !!!";
     case "buycraft":
        return "buy.ViciousMC.serv.nu";
     case "ip":
        return "ViciousMC.serv.nu";
     case "donator":
        return tag === "donator" ? "&f&lIron" : "!!! INVALID ARGUMENT !!!";
     default: 
        return "!!! INVALID ARGUMENT 2 !!!";
  }
}
getTag();
brisk coral
#

check my edited one

#

the else needs a return

trail yacht
#

using %javascript_server_name,% i now get invalid argument :/

#

same for %javascript_server_name%

brisk coral
#
function getTag()
{
  var argument = args[0].toLowerCase();
  var tag = args[1].toLowerCase();

  switch (argument)
  {
     case "name":
        if (tag === "tag") return "&e&lVicious&6&lMC";
        return "ViciousMC";
     case "buycraft":
        return "buy.ViciousMC.serv.nu";
     case "ip";
        return "ViciousMC.serv.nu";
     case "donator";
        return tag === "tag1" ? "&f&lIron" : "!!! INVALID ARGUMENT !!!";
     default: 
        return "!!! INVALID ARGUMENT !!!";
  }
}
getTag();
trail yacht
#

when i paste that in visualstudio code it says getTag(); is unreachable code

brisk coral
#

does it show you where

trail yacht
#

in visualstudio code a program for coding

austere hawk
#

You can ignore it

brisk coral
#

...

trail yacht
#

you can't because i get a script error now 🤷‍♂️

brisk coral
#

show the error

austere hawk
#

No idea, let me take a look at vsc

brisk coral
#

I'd check myself but server still down eee

austere hawk
#

Do a localhost ._.

trail yacht
#

wdym localhost ?

#

the mc server ?

austere hawk
#

No i'm talking to frosty

trail yacht
austere hawk
#

Ok i think i get it

#

Basically it's frosty being blind again 😂

trail yacht
#

well the error i get are

austere hawk
trail yacht
#

yea i know

#

i've changed them

#

but the thing you said i could ignore still wont work

#

🤷‍♂️

austere hawk
#

Show code again

trail yacht
#

  var argument = args[0].toLowerCase();
  var tag = args[1].toLowerCase();

  switch (argument)
  {
     case "name":
        if (tag === "tag") return "&e&lVicious&6&lMC";
        return "ViciousMC";
     case "buycraft":
        return "buy.ViciousMC.serv.nu";
     case "ip":
        return "ViciousMC.serv.nu";
     case "donator":
        return tag === "tag1" ? "&f&lIron" : "!!! INVALID ARGUMENT !!!";
     default: 
        return "!!! INVALID ARGUMENT !!!";
  }
}
getTag();
#

this is what i changed it to

austere hawk
#

That is no sense either

#

Use Frosty's code given, with the replacement of ;

brisk coral
#

I mean yea, you removed the entire function method..

trail yacht
#

oof wrongly copied

#

lol

austere hawk
#

You did have no function on your vsc also...

trail yacht
#

yea i copied it into vsc wrongly

#

but now i changed it

#

it still doesn't work :/

brisk coral
#

remove the , now

trail yacht
#

I've tried that still an internal error :/

brisk coral
#
function getTag()
{
  var argument = args[0].toLowerCase();
  var tag = args.length === 2 ? args[1].toLowerCase() : "null";

  switch (argument)
  {
    case "name":
        if (tag === "tag") 
        {
            return "&e&lVicious&6&lMC";
        }
        return "ViciousMC";
    case "buycraft":
        return "buy.ViciousMC.serv.nu";
    case "ip":
        return "ViciousMC.serv.nu";
    case "donator":
        return tag === "tag1" ? "&f&lIron" : "!!! INVALID ARGUMENT !!!";
    default: 
        return "!!! INVALID ARGUMENT !!!";
  }
}
getTag();
trail yacht
#

It works 😊

#

thanks for helping me altough it took a while sorry for taking your time :/

fervent moon
#

is there an extension that shows ping of a player ?

junior musk
#

%player_ping% in the Player expansion

fervent moon
#

so

#

%player_ping%

#

?

brisk coral
#

Yes..

fervent moon
#

doesnt work

junior musk
#

what does it show ?

fervent moon
#

nothing

#

" &8» &9Ping : &7%player_ping%",

#

its to long

#

it says nananan > 24

#

if it was working

#

the caracters

junior musk
#

can you show a screen ?

#

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

fervent moon
#

hread.run(Thread.java:748) [?:1.8.0_252]
[10:08:41 WARN]: [FFARush] Task #1874 for FFARush v1.0 generated an exception
java.lang.IllegalArgumentException: Line 4 is longer than 30 chars
at fr.rhodless.ffarush.libs.sb.FastBoard.updateLines(FastBoard.java:261) ~[?:?]
at fr.rhodless.ffarush.Main.updateBoard(Main.java:87) ~[?:?]

junior musk
#

ah

#

then remove characters from your line

fervent moon
#

ahhh

#

fail

junior musk
#

I saw that :p

fervent moon
#

i have another problem

#

" &8» &9Coins : &7%vault_eco_balance%",

#
[10:08:41 WARN]: [FFARush] Task #1874 for FFARush v1.0 generated an exception
java.lang.IllegalArgumentException: Line 4 is longer than 30 chars```
junior musk
#

it's the same error x)

#

line too long

fervent moon
#

but

#

i have the same in my lobby

#

and there is no problems

brisk coral
#

What version is your lobby?

#

And what version the server you're testing this on

fervent moon
#

1.8 Lobby 1.8 this one

#

1.8.8

brisk coral
#

check if there's a config option

fervent moon
#

what ?

junior musk
#

maybe it's just that you have more coins on the server you are on, which means there are more characters that get parsed and it reaches the character limit ?

fervent moon
#

Lobby line : ```java
" &8» &9Coins :&7 %vault_eco_balance%",

Mini Game line : ```java
" &8» &9Coins : &7%vault_eco_balance%",```
#

no

#

my coin system

#

is in my db

#

so

#

same coins

#

on all servers

junior musk
#

cab you send your full scoreboard config ?

#

ok you sent me in dm... but do you know what is "line 4"? x)

fervent moon
#

yes

#

it "coins"

#

because

#

when i remove it

#

it works

junior musk
#

🤔

#

oh wait

#

do /papi parse me %vault_eco_balance%

fervent moon
#

oh

#

it doesnt

#

send me my money

#

but %vault_eco_balance%

#

OH I KNOW

junior musk
#

/papi ecloud download Vault
/papi reload

fervent moon
#

i forget to put my eco plugin --'

junior musk
#

bruh

fervent moon
#

i already have vault installed

junior musk
#

and the PAPI expansion ?

fervent moon
#

oh it works now

junior musk
#

cool

trail yacht
#
function getTag()
{
  var argument = args[0].toLowerCase();
  var tag = args.length === 2 ? args[1].toLowerCase() : "null";

  switch (argument)
  {
    case "name":
        if (tag === "tag") 
        {
            return "&e&lVicious&6&lMC";
        }
        return "ViciousMC";
    case "buycraft":
        return "buy.ViciousMC.serv.nu";
    case "ip":
        return "ViciousMC.serv.nu";
    case "donator":
        return tag === "tag1" ? "&f&lIron" : "!!! INVALID ARGUMENT !!!";
    default: 
        return "!!! INVALID ARGUMENT !!!";
  }
}
getTag();

How can i add a 3rd agument to this ?

#

i've tried this but it goes to the Invalid argument when i try %javascript_custom_server,name,tag%

  var arg0 = args[0].toLowerCase();
  var arg1 = args.length === 2 ? args[1].toLowerCase() : "null";
  var arg2 = args.length === 3 ? args[2].toLowerCase() : "null";

  switch (arg0)
  {
  case "server":
        if (arg1 === "name") 
        {
            if (arg2 === "tag") {
                return "&e&lVicious&6&lMC";
            }
            return "ViciousMC";
        } else if (arg1 === "buycraft") {
            return "buy.ViciousMC.serv.nu";
        } else if (arg1 === "ip") {
            return "ViciousMC.serv.nu";
        }
        return "!!! INVALID ARGUMENT !!!";
austere hawk
#

Hey, whats the placeholder to show world time? like 7:00 pm

junior musk
#

%player_world_time_24% I think

#

or 12 instead of 12

austere hawk
#

thank you ^^

warm topaz
#

its prob built into the plugin

steep thorn
#

@austere hawk that last screenshot is useless, please provide more information of what you're trying exactly

steep thorn
#

Then just use the Bentobox placeholders?

kindred palm
#

Hello. I'm having problems with the playtime place holder. I've tried running the command multiple times, and still no luck. Any help would be appreciated

sharp jay
#

@kindred palm Any errors?

fiery sapphire
#

How can i add all of the Placeholders into my chatformat?

#

like all of them?

kindred palm
#

@sharp jay, I haven’t noticed any errors... let me look at my console tho and double check

sharp jay
#

kk

#

@fiery sapphire what chat plugin

fiery sapphire
#

custom

#

i am making my own chatformat plugin and want to add all placeholders to it

#

so u can add which u want

#

if i can say it like that

#

like %vault_prefix%

#

%player_name%

#

etc

sharp jay
#

@fiery sapphire have you added support for placeholderapi?

fiery sapphire
#

yeah

sharp jay
#

Make sure you have it all

fiery sapphire
#

done with that

#

How do i add so when people add a placeholder to the chatformat

#

it comes there

#

instead of being the %

drifting nimbus
#

@final shadow

Just wanted you to know, %pinger_isonline_....% works fine, but %pinger_online_.....% with the same ip etc, doesnt work..

tender vaporBOT
#

@drifting nimbus,

Hey!

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

sharp jay
#

@fiery sapphire install the expansion

#

@drifting nimbus dont @ people

drifting nimbus
#

Its a bug/issue

fiery sapphire
#

expansion?

drifting nimbus
#

On PAPIs side

sharp jay
#

Doesnt matter thats why we report it

#

@fiery sapphire yes

fiery sapphire
#

which?

#

the Vault?

sharp jay
#

ex: /papi ecloud download vault

fiery sapphire
#

I did

#

and its not working?

sharp jay
#

then you clearly havent supported papi into your plugin

fiery sapphire
#
    public void onJoin(PlayerJoinEvent event) {
        String joinText = "%player_name% &ajoined the server! He/she is rank &f%vault_rank%";

        // We parse the placeholders using "setPlaceholders"
        joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);

        event.setJoinMessage(withPlaceholdersSet);
    }```
This tho?
trim mist
#

You still have to have both expansions on the server.

sharp jay
#

^

fiery sapphire
#

expansions?

#

both?

kindred palm
#

@sharp jay with the scoreboard plugin (which is why I’m using the API) it shows a “java.io.IOException: Server returned HTTP response code: 403 for URL: https://spigotmc.org/api/general.php” but no error returned from the PlaceholderAPI

sharp jay
#

@kindred palm make sure its the right expansion 🙂

kindred palm
#

Is that a plug-in I need to install, or is it a command I run in the server

sharp jay
#

to be able to use the placeholders you need to install the right expansions to placeholderapi

#

example: /papi ecloud download player

#

@fiery sapphire vault & player expansion

kindred palm
#

Okay. So yes I installed the /papi ecloud download playtime

fiery sapphire
#

why would i need both?

kindred palm
#

And that’s the only one not working

#

The rest are

fiery sapphire
#

I did %vault_prefix% %player%

trim mist
#

Well, you need the expansions to parse placeholders on it.

fiery sapphire
#

%player% is custom

sharp jay
#

@kindred palm type /papi reload

kindred palm
#

Ok. Do I need to restart the server?

sharp jay
#

shouldnt need to but try

fiery sapphire
#

wait

#

i dont think i have placeholders installed in this plugin xD

#

Hhahaha

#

its not 😂

kindred palm
#

Still not working

#

All of the other placeholders work tho

sharp jay
#

@kindred palm then most likely that plugin has outdated placeholders contact the dev

fiery sapphire
#
    public void onJoin(PlayerJoinEvent event) {
        String joinText = "%player_name% &ajoined the server! He/she is rank &f%vault_rank%";

        // We parse the placeholders using "setPlaceholders"
        joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);

        event.setJoinMessage(withPlaceholdersSet);
    }```
#

Do i need to add PlaceholderAPI.setPlaceholders?

kindred palm
#

@sharp jay are the people here not the developer?

sharp jay
brisk coral
#

Yes, that's how you parse the placeholders @fiery sapphire

fiery sapphire
#

uhm

#

so uh

sharp jay
#

@kindred palm the expansions are made by the plugin developers 🙂 Clip is the developer of placeholderapi and various other plugins

kindred palm
#

Okay

fiery sapphire
#

ugh

#

how do i use the setPlaceholder?

brisk coral
#

PlaceholderAPI.setPlaceholder(Player, String);

fiery sapphire
#

Player String?

#

What is the Player and String

brisk coral
#

A player instance which the placeholder will be parsed for, and a string which contains the placeholders to be parsed

fiery sapphire
#

So i need to add all of the placeholders i want?

brisk coral
#

No, you just put the message there, and if it contains any placeholders they will be parsed

fiery sapphire
#

oh okay

#

thanks

#

btw

#
            /*
             * We register the EventListeneres here, when PlaceholderAPI is installed.
             * Since all events are in the main class (this class), we simply use "this"
             */
            Bukkit.getPluginManager().registerEvents(this, this);
        } else {
            throw new RuntimeException("Could not find PlaceholderAPI!! Plugin can not work without it!");
        }```
#

Do i need this?

brisk coral
#

Read what it says..

fiery sapphire
#

oh sh***

#

Saw it now

#

xD

#

sorry!

#

I don't use String's

sage dawn
#

Hello,

I am trying to display the following string on a Scoreboard:
"&c10% XP Boost: %luckperms_inherited_expiry_time_mcmmo.perks.xp.10percentboost.all%"

It would appear by adding the % sign after the 10 breaks the API call
Is there a trick to add the % value and not interrupting any PAPI calls to plugins?

I've tried things like this, but it doesn't do the trick
"&c10'%' XP Boost: %luckperms_inherited_expiry_time_mcmmo.perks.xp.10percentboost.all%

turbid tide
#

have you tried just putting the %

sage dawn
#

yes

#

the call doesnt work when you do

turbid tide
#

just use this placeholder %kitpvp_stats_kills%

#

or any of these :%kitpvp_stats_kills% - The kills of a player %kitpvp_stats_deaths% - The deaths of a player %kitpvp_stats_kdr% - The kill : death ratio of a player %kitpvp_stats_level% - The level of a player %kitpvp_stats_experience% - The experience of a player %kitpvp_player_killstreak% - The player's current kill streak %kitpvp_player_kit% - The player's current kit

still finch
#

Thank you sooooooo much you helped me 😊

turbid tide
#

well they were all on the kitpvp page

glossy jasper
#

Hello, I'm looking do to a rather simple thing in theory but it's kind of complicated in real life:
Putting a FactionUUID variable in a scoreboard: the faction's name the player is standing in
Simple right ? Well not that much:

First solution: I first tried to use the inner scoreboard of FactionsUUID, but the placeholder I'm looking for is not in the list (https://factions.support/placeholders/)

Second solution: Using the Featherboard scoreboard with MVdwPlaceholderAPI, but there is not this kind of placeholder here either ! (https://www.spigotmc.org/wiki/mvdw-placeholders/#factions1-6) Well in fact it does have the {factionsuuid_locationfaction_name} placeholder, it's working fine but it's all blank, losing all the purpose of displaying the faction name in the scoreboard.

Third solution: Using PAPI: On this page (https://factions.support/placeholderapi/) FactionsUUID says that we can use the following placeholder %rel_factionsuuid_relation_color% with PAPI. Great, that's exactly what I want ! Now I just need to use it in Featherboard with the {placeholderapi__*} placeholder, so it would look like this in my Featherboard config:
- '{placeholderapi_rel_factionsuuid_relation}'

Any other PAPI placeholder works except the 2 relational placeholders
Any help would be greatly appreciated

brisk coral
#

@glossy jasper don't quote me on that, but I don't think maxims papi works with relational placeholders, hence the result

#

Perhaps you could trick it by using javascript and parsing it for the player yourself

shut pagoda
#

Hello

#

Is there a module for the Real Time plugin?

wet basinBOT
#

@brisk coral Unknown expansion.

brisk coral
#

Probably internal

golden trench
#

Does anybody know a better placeholder for money. The one we use currently caps at $999Q, at $1000Q it just turns into it becomes unformatted " 1000000000000000000 "

shut pagoda
#

%vault_eco_balance_commas% @golden trench

golden trench
#

Thankyouuu

#

❤️

shut pagoda
#

Welcom)

golden trench
#

Uh I dont think you understood what I meant aha

#

I just used it and its now listed it as 1,000,000,000,000,000,000. I meant I was after a placeholder that would set it to $1QT

brisk coral
#

javascript

golden trench
#

?

#

What do you mean javascript

brisk coral
#

javascript placeholder

#

Make one which continues the number, also any particular reason you're using such a high eco?

golden trench
#

Purely to entheses its an OP prisons server, we like it this way makes it feel much more OP. Also I have no idea how to make a javascript placeholder

shut pagoda
#

Guys, help pls with <SimpleDateFormat>

#

In %server_ time__<SimpleDateFormat>%

#

If i need to show only mins and secs

#

What do i need to type there?)

brisk coral
#

the simple date format

#

mm:ss iirc

obsidian trail
#

hello guys why i get errors when i use luckperms placeholders wiht deluxe menu

brisk coral
#

?luckperms

tender vaporBOT
#
FAQ Answer:

This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.

If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.

obsidian trail
#

i got the latest version

sturdy sluice
#

is there a language.yml file i can edit the papi messages in? or is it hardcoded in?

tender vaporBOT
#

@austere hawk,

Hey!

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

turbid tide
#

no need for a ping ... it says on the spigot page that latest supports everything from 1.7 to 1.15.2

brisk coral
#

Would help if you showed the error you're getting if it doesn't work

turbid tide
#

yeah

#

also what doesn't work? the plugin or the expansion?

#

that is not placeholderapi

#

that is prison

verbal beacon
#

?help

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

Source

wind grove
#

but its not working

#

yes i downloaded plyaer /papi ecloud download Player

mint fable
#

Did you reload?

#

/papi reload

wind grove
#

yes papi reload

#

and restart

mint fable
#

Also do you have the dancing meme on your server?

wind grove
#

haha no?

mint fable
#

i swear i see it right there

wind grove
#

oh wait

mint fable
wind grove
#

yes the coffing guys

mint fable
#

lmao

#

No idea, I recommend Holographic Displays and Holographic Extension for holograms

#

I know those work ^

wind grove
#

this and the exxtension?

mint fable
#

if you want to make sure it's not PAPI, type /papi parse me %player_displanyame%

#

no, you just linked me the plugin you have

wind grove
#

oh the extension thing worked!

mint fable
#

👍

wind grove
#

thank you

brisk coral
#

@mint fable Why tho..

mint fable
#

why what tho

mint fable
#

?

#

look at conversation before @ing me

#

can't believe

#

so rhude

lucid lance
#

yo

mint fable
#

This is in your plugin?

#

Have you debugged it?

#

Try returning a string at the top, see what happens

lucid lance
#

kk ! ty

cosmic ibex
#

Anybody know how to make "cooldown" for certain items? (example a Diamond sword named Valhalla, grants heal 3 during 5seconds with 90s cooldown. being able to put in a scoreboard or somewhere. Like "Valhalla: 1:30s" and etc
Just as you can do with "Enderpearl" and "Gapple"

tall hinge
#

how do i use placeholders inside other placeholders like i want to use %tokenenchant_fortune_cost_{javascript_cost,fortune}% but i cant get it to work

junior musk
#

how do i use placeholders inside other placeholders like i want to use %tokenenchant_fortune_cost_{javascript_cost,fortune}% but i cant get it to work
@tall hinge the placeholder must allow to use other placeholders inside itself

#

if it doesn't allow it, you can't

desert trench
#

@thin vault, Vous avez donc redémarré le serveur et cela ne fonctionne toujours pas?

thin vault
#

Oui j'ai redémarré le serveur et rien ne fonctionne

desert trench
#

Quelque chose dans la console pour donner un avertissement ou une erreur?

thin vault
#

Je ne sais pas je vais aller vérifier je vous tiens au courant

desert trench
#

D'accord, pas de problème. S'il y a des erreurs, il suffit de les publier sur ce site

#

=paste

tender vaporBOT
#
HelpChat Paste

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

desert trench
#

Merci @tender vapor

thin vault
#

Je viens de démarrer mon serveur et je n'ai vu aucune erreur venant de placeholder

desert trench
#

Y a-t-il eu des erreurs?

thin vault
#

Oui mais avec un autre plugin (multiverse) permettant d'avoir plusieurs monde sur un seul serveur

#

Sinon je pourrais vous inviter sur mon serveur vous rendre opérateur

desert trench
#

Mais aucune erreur de placeholderapi? Si c'est le cas, c'est vraiment étrange, je ne sais pas si quelqu'un avec le rôle de support pourrait être en mesure d'aider

thin vault
#

Je me suis peut être mal débrouillé

#

Je vais aller sur mon serveur mais plus tard car chez moi il est deux heures du matin et je vous tiendrez au courant si le problème persiste

desert trench
#

@brisk coral Connaissez-vous bien placeholderapi? Pourriez-vous aider du tout?

tender vaporBOT
#

@desert trench,

Hey!

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

desert trench
#

D'accord, il est 1h du matin pour moi. Haha.

thin vault
#

Haha

#

Je vous met de coter et je vous tiens au courant dès que je peux

brisk coral
#

@desert trench, @thin vault Read the rules, or don't talk in this channel. Also don't ping for no reason.

desert trench
#

I didn't ping you for no reason, why you ping me for no reason? I was sleeping

brisk coral
#

To me it looks like for no reason.

#

And "I was sleeping" while chatting in other channels doesn't really make sense, does it now

austere hawk
#

Is there a placeholder from autosell for like QT, etc. (bigger than Quadrillion) cause I need it for my Prison server.

tall ledge
#

I got this

#

[PlaceholderAPI] KoTH is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [SubSide] and urge them to update it ASAP.

trim mist
#

Whelp

#

It says what to do

tall ledge
#

I thought this was the place where to say it :P

brisk coral
golden trench
#

Yeah I still dont know what to do about that QT issue, maybe somebody knows a way to make a placeholder extension that will add it for us?

fervent moon
#

Pinger expansion gets the server.properties MOTD of a server or the motd that can be edited by a plugin ?

fervent moon
#

???

junior musk
#

I already asked one day and Funnycube told me that it wasn't possible and that the motd plugin has to create its own placeholder for it, but Frosty said that there may be a method to get the actual motd

carmine kestrel
#

i'm having trouble getting my plugin to hook into PlaceholderAPI, could I go over what I'm doing with one of you to see where I'm going wrong?

carmine kestrel
#

my hook appears in /papi list, but the identifier itself is not working in /papi parse <username> <string with identifier in it>

winged wyvern
#

can you tell me how to show online in a certain world with the help of a placeholder?

#

please

tranquil summit
#

Is there placeholder for player's version ?

junior musk
#

there is if you use ViaVersion I think

#

or for ProtocolSupport

#

nope, not for ProtocolSupport

tranquil summit
#

ty

cunning elk
#

Can someone help, all placeholders broke out of nowhere, no changes were made

#

Server would start with none of the placeholders working, and when reloading i get this message

brisk coral
#

Caused by: java.lang.NoClassDefFoundError: net/sacredlabyrinth/phaed/simpleclans/SimpleClans

mortal ermine
#

Hi when I try to enter this: /papi ecloud download Player it just says this: No expansions available at this time

warm topaz
#

download it manually

mortal ermine
#

ah thanks

warm topaz
#

download and pop it in the /plugins/placeholderapi/expansions folder

versed sparrow
#

Is there is any placeholder, that can show 1 text if player have permission and show another if he doesn't?

warm topaz
#

%player_has_permission_<permission>%

#

thatll return yes/no depending on what uve set as the Boolean setting in papi config. if u wish it to say something different then u can use javascript

versed sparrow
#

So there is no? I found something called RelCon. But i should have 200iq to figure how it's working

carmine kestrel
#

i'm having a rough time getting my placeholder to show in the chat. the hook shows up in /papi list, but whenever I try to use /papi parse <my_username> %<identifier>%, it just shows %identifier%, not the output that it's meant to show

#

i'm sure i'm doing something very simple wrong, but after digging through the on the github wiki for PAPI, i still haven't been able to pinpoint where exactly i'm going wrong

#

do any of you know what the issue could be?

untold kernel
#

hey

#

for some reason, with placeholder api installed, no placeholders are working

warm topaz
#

what placeholders are u trying to use?

#

my assumption is that u need to download the expansions for the corresponding placeholders

untold kernel
#

how

warm topaz
#

what placeholders are u trying to use?

untold kernel
#

none work

#

but

#

vault

#

atm

#

ive tried like 10 scoreboard plugins

#

and all the default placeholders

#

dont work

brisk coral
#

KiteBoard

trim mist
#

Do you have the vault expansion?

brisk coral
#

And make sure you have the expansion

warm topaz
#
/papi reload```
untold kernel
#

thanks ill try

carmine kestrel
#

do you know what the issue might be if a plugin is listed in /papi list but its identifiers aren't working?

primal vault
tender vaporBOT
#

@primal vault,

Possible Solution Found:

Looks like your server can't connect to our API,
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.

warm topaz
#

do as the bot says^

austere hawk
#

Hello, i already downloaded the expansions but the placeholders dont seem to work

austere hawk
#

Anyone else get this error when importing

austere hawk
#

hi

#

i have a issue

#

with pinger

#

%pinger_online_46.105.172.144:25565%

#

detect offline but my server is onlin e

desert trench
#

What you mean @austere hawk

#

Your server is offline yet papi still thinks it's online?

austere hawk
#

my server is online

#

but papi detect it offline

desert trench
#

Hm

austere hawk
#

strange

austere hawk
#

any idea

#

??

shy gulch
#

hello. im trying use placeholders in a hologram for bedwars1058

#

and it seems its not working?

austere hawk
#

Hey how do i get time and date in real life with placeholders?

austere hawk
#

uhmm

brisk coral
#

-papi localtime

austere hawk
#

thank you

versed sparrow
#

How to check placeholder from JS with arguments? If i check %player_has_permission_test% it returns true, but when i run %player_has_permission_" + args[0] + "% with arg test, it's returns false

#

The most strange, that if i give player op, it's returns true

#

With return "player_has_permission_" + args[0] + "%"; without first %, it's returns player_has_permission_test%, so it's looks correct

junior musk
#

it doesn't work because the placeholder doesn't get parsed

#

so it doesn't return true but itself

versed sparrow
#

How can i do that?

junior musk
#

Idk

#

but if you find I'd like to know too :p

versed sparrow
#

it doesn't work because the placeholder doesn't get parsed
@junior musk hhhhm. but as i say, if i give player OP, it's retutns true

#

so it's parsed

junior musk
#

👀

#

can you try to remove Everything after the first return ?

versed sparrow
#

`>papi parse Darwinian %javascript_permtext_test%
[16:46:06] [Server thread/INFO]: false

op darwinian
[16:46:13] [Server thread/INFO]: Made Darwinian a server operator
papi parse Darwinian %javascript_permtext_test%
[16:46:15] [Server thread/INFO]: true`

junior musk
#

then I have no idea

#

and why didn't it get parsed for me 😭

versed sparrow
#

I think it's getting parsed before arg resolving somehow. But how to fix that

junior musk
#

idk

#

oh actually

#

try to use player.hasPermission(arg[0]) instead

brisk coral
#

You have to parse the placeholder yourself, and I think string concatenation is kinda cucked in js (or atleast it is for me)

versed sparrow
#

try to use player.hasPermission(arg[0]) instead
@junior musk that is a good idea. and it's working

#

and i think it's faster, than parsing string

versed sparrow
#

One more thing. I'm using cooldown script from js page. It's working, but sending [Server thread/INFO]: Incorrect usage! /papi help on every use. It is normal?

junior musk
#

what command did you use ?

versed sparrow
#

papi parse %player_name% %javascript_cooldown_1_start%

junior musk
#

what's your PAPI version ?

versed sparrow
#

2.10.6

junior musk
#

🤷‍♂️

versed sparrow
#

Looks like it's DM bug. Any placeholder, that's getting parsed from menu with [console], sending that message

#

ooops, no. only cooldown

#

So it's cooldown bug 🙂

junior musk
#

or maybe all javascript placeholders ?

versed sparrow
#

No, only cooldown

#

Don't know how it's can be

sharp saddle
#

Hi so me and a few mates are having a minecaft tournament every week. Today we just did our first run of it and the main feature people want is teams where 2 people are in a team and there points get added together. Currently we're using Essentials economy to handle adding and changing points and the vault eco bridge that stores it on our sql database for cross server points. In the lobby we're using leader heads to display the points with citizens. What would be the best way to add two players points together simmilar to something like minecraft monday did. I asked the dev of the leaderheads plugin and he said the best way to do this would be through a custom java script placeholder. I've never messed with custom placeholders before but I have dabbled in a small amount of JS before but it's not my main language. But how would I code something like this with the placeholder api? I have seen the math placeholder but I can't think of a way to implement that.

junior musk
#

when you say "add two players points together", you mean the result of the 2 ?

sharp saddle
#

Yes

junior musk
#

if yes, then you could use the Math expansion

#

%math_{placeholderForPlayer1}+{placeholderForPlayer2}%

sharp saddle
#

How do I get an individual players balance? I can only see how to get their top score

junior musk
#

ParseOther expansion

#

%parseother_{playernameOrPlaceholder}_{vault_eco_balance}%

golden cairn
#

is there a placeholder to show how many blocks in an area? i want to show how many chests are in certain worldguard zones

bronze pike
#

Hello, not a massive problem but just curious - does anyone have a way to add up multiple variables?

#

Assuming the maths expansion has something to do with it, but I have no idea how to format it

#

Okay just figured it out :o

#

But, how do I remove the decimal places?

junior musk
#

[precision:0]

bronze pike
#

[precision:0]
@junior musk You godsend. Thank you so much.

#

For reference, if anyone (for some reason) needs this: %math_{bungee_server1}+{bungee_server2}[precision:0]%

sharp saddle
#

Is there a way where I can use the place holder api in command blocks?

#

like soreing it in a scoreboard afterwards?

austere hawk
#

Having a weird issue and I don't specifically think its coming from PlaceholderAPI itself but hope to get a little bit of understanding out of it.

I'm currently running HolographicDisplay and HolographicExtensions (Both latest and up to date)

Out of every single placeholders I've tried, everything works great but accept one. The countdown placeholder doesn't seem to want to work sometimes and I'm unsure whether its an issue with PAPI or the plugin thats supporting PAPI.

#

Oh yikes

junior musk
#

Is there a way where I can use the place holder api in command blocks?
@sharp saddle I don't think that's possible no

#

Having a weird issue and I don't specifically think its coming from PlaceholderAPI itself but hope to get a little bit of understanding out of it.

I'm currently running HolographicDisplay and HolographicExtensions (Both latest and up to date)

Out of every single placeholders I've tried, everything works great but accept one. The countdown placeholder doesn't seem to want to work sometimes and I'm unsure whether its an issue with PAPI or the plugin thats supporting PAPI.
@austere hawk do you have ProtocolLib too ?

austere hawk
#

Absolutely. Have it installed and latest for 1.15.2

junior musk
#

🤔

#

do they work when doing /papi parse me %placeholder%?

austere hawk
#

Oh I haven't try that out yet, let me go test that now.

#

Gonna just give this a try

#

Oh cool that worked.

junior musk
#

and it doesn't work on Holograms ?

turbid tide
#

wait what placeholder is that?

austere hawk
#

So it does parse through. I should've guessed that earlier on, using it on DiscordSRV, it shows up just fine. But through HolographicDisplay/HolographicExtension, it doesn't parse and just remains as %server_countdown_dd.MM.yyyy_28.09.2020%

junior musk
#

countdown

#

and other placeholders works ?

turbid tide
#

yeah I already reported that

#

same with server time

#

and local time

junior musk
#

ah

turbid tide
#

I mean i didn't know about the cowntdown one

#

but can you test other palceholders?

#

like %player_name%

#

to see if those work?

austere hawk
#

Yep

#

Okay that took longer than expected xD

#

But yeah, as said up top. Every other placeholder works absolutely just fine

#

But the countdown is janky at best.

#

And I can't tell whether if its the plugin thats parsing the placeholder or if its an issue with PAPI.

#

Cause on DiscordSRV, it runs just fine. It loads up the placeholder perfectly and displays the countdown correctly.

turbid tide
#

yeah

#

the problem is HE

#

I already reported

#

this problem

#

on github

#

and all we can do is wait for a fix

austere hawk
#

Ah I see. But there is another question that I would like to ask and this might be a bit confusing to understand as this plugin hasn't been released to the public yet by the developer whos making it but

#

I'm no developer so I won't have much understanding towards how it works but an error or diagnosis would be great.

#

The top placeholder that is displaying the countdown correct is %server_countdown_dd.MM.yyyy_28.09.2021%

#

It loads up 2021 perfectly fine.

#

But, the bottom one.

#

%server_countdown_dd.MM.yyyy_28.09.2020%

#

It just rounds it down to zero.

#

And I'm pretty sure I'm not tripping out but I'm still living in 2020 so was wondering is there any sort of explanation towards why it happens?

sharp saddle
#

I'm getting an unknown unary operator with this placeholder
%math_{%parseother_{player1}_{vault_eco_balance}%}+{%parseother_{player2}_{vault_eco_balance}%}%
But I don't see the error...
https://imgur.com/a/fX6cmDK

junior musk
#

remove the inside the math expression

#

you only need the one around the whole placeholder

#

%math_{parseother_{player1}_{vault_eco_balance}}+{parseother_{player2}_{vault_eco_balance}}%

#

try this

#

wait wut

#

you used player1 and player2 as player names to get the money, but since they aren't real player bames it won't work x)

sharp saddle
junior musk
#

🤔

#

I think I may know why

#

but then idk how it would be possible

#

I think it's because of the {}

#

wait

#

can you show /papi list ?

#

is ParseOther in it ?

turbid tide
#

the problem is the math expansion

#

you have {} inside {} and it breaks

junior musk
#

yeah I thought if that first

turbid tide
#

%math_{{parseother_{player1}_{vault_eco_balance}}+{parseother_{player2}_{vault_eco_balance}}%

junior musk
#

but I was wondering that maybe it was because ParseOther doesn't work too idk

turbid tide
#

this would have been the correct

#

way to do it

#

but I don't think that works

junior musk
#

wait wut ?

#

how does that works more than the other x)

turbid tide
#

than what others?

#

you gave him the correct one

#

but it won't work

junior musk
#

🤔

#

I know !

#

js is always the answer !

#

😂

#

you could make a js script that does parseother placeholder 1 + parseother placeholder 2 without having to use the math expansion

#

so it doesn't interferd with the {}

sharp saddle
#

Same error, I tried what @turbid tide said but same error but now it says unknown unary operator '{{' at position 1

turbid tide
#

yeah as I said that is a problem with the math expansion

junior musk
#

you would need js then

#

I can't do it right now, I'm in my bed with my phone, if nobody does it until tommorow I'll do it for you if you want

turbid tide
#
function math() {
  return "%{parseother_{player1}_{vault_eco_balance}%" + "%parseother_{player2}_{vault_eco_balance}%"
};

math();```
junior musk
#

#

/papi ecloud download Javascript
/papi reload
go into your PlaceholderAPI folder in your plugins folder
open javascript_placeholders.yml
add this at the bottom:

math:
  file: math.js

go in the javascripts folder and create a file called math.js and add everything that BlitzZ said in it

sharp saddle
#

Cheers!

#

How do I use that in game?

#

Just math_<stuff here>

junior musk
#

%javascript_math%

#

but one thing

#

you aren't using player names in your parseother placeholders

#

you are just using player1 and player2

#

so you might want to change them

sharp saddle
#

What would be a way to allow me to put the playernames in the placeholder insted of the js file?

junior musk
#

idk if that's possible

#

but you can use a placeholder as player name in the parseother placeholder (in the js file)

austere hawk
#

hi
i have a issue
with pinger
%pinger_online_46.105.172.144:25565%
detect offline but my server is onlin e

#

all adress ip say offline

turbid tide
#

I think you have to wait a bit

#

like 30 seconds or something

#

until it updates

#
  pinger:
    offline: '&cOffline'
    check_interval: 30
    online: '&aOnline'
``` you can change the interval in `plugins/PlaceholdersAPI/config.yml`
austere hawk
#

yes i know that

#

my config is already that

#

@turbid tide

tender vaporBOT
#

@austere hawk,

Hey!

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

turbid tide
#

and it still doesn't work

#

?

austere hawk
#

nno

#

:/

#

Idk why

#

Paper 1.12.2

austere hawk
#

Hellloo

hollow fox
#

How to get ezrankspro to work with papi?

trim mist
hollow fox
#

So I cant just get the question answered?

#

What is the papi download for EzRanksPro?

#

Cause EzRanksPro doesn't work

trim mist
hollow fox
#

I didnt buy it. I am a dev on a server and the Owner bought it.

#

Im just asking for a command.

tender vaporBOT
#
FAQ Answer:

Not the owner of the server?
If you're not the owner of the server and you're the one requesting the support you'll need to first get the owner who purchased the plugin to join and run through the verification system listed in #spigot-linking, once linked they just need to give us the thumbs up that you're with them.

hollow fox
#

Ive never seen a support team being this lazy.

trim mist
#

If you're not happy with the rules, you're more than welcome to leave.

hollow fox
#

So I have a paying customer, as I am looking to do my job. I cannot get a simple command. I will just ask around. The Owner is asleep and the server is due my 12pm EST, so I guess I will just find someone not here that will help.

#

I will be sure to never have any of the server Owners I work for buy this

mint fable
#

Sorry you can't follow simple rules mate.

hollow fox
#

Its not a rule

mint fable
#

There are people out there that pirate stuff all the time and we don't want to provide support for them, so we ask for verification.

hollow fox
#
  • Be respectful to everyone.
  • Have patience when asking for help.
  • Stay on topic where required.
  • Be mindful of swearing, only use it moderately.
  • Follow staff directions.
  • Stick to English only.
  • Follow the Discord Guidelines found here: https://discordapp.com/guidelines
#

Where does it say the rules?

#

This channel is called "Placerholder-API"

mint fable
#

my apologies

trim mist
#

Yes and it relates to one of our premium plugins.

mint fable
#

introduction

#

sorry you missed that when joining the server

hollow fox
#

Thats not the rules

#

You said its a rule

#

I follow the rules

mint fable
#

Nope, but listen to staff is.

hollow fox
trim mist
#

I'm not going to sit here and argue with you.

hollow fox
#

Im here for 24/7 support

#

Please help me

tender vaporBOT
#
FAQ Answer:

Not the owner of the server?
If you're not the owner of the server and you're the one requesting the support you'll need to first get the owner who purchased the plugin to join and run through the verification system listed in #spigot-linking, once linked they just need to give us the thumbs up that you're with them.

mint fable
#

So follow the rules and get the owner to verify, or do exactly as you said and try to receive support elsewhere.

hollow fox
#

The owner is sleeping.

#

How can I get him to verify

mint fable
#

Perfect, we're here 24/7 as you said.

hollow fox
#

The server is opening tomorrow.

trim mist
hollow fox
#

Yep okay. I will be sure to delay the whole server opening over 1 command.

#

Nice!

#

Btw update the rules

#

Its not in there

#

Thats where people go to find out what they can and cannot do.

trim mist
#

Well you are partaking in an argument that staff do not find beneficial, so, we'll just end it there.

hollow fox
#

I need help

iron sierraBOT
#

Theres not time to wait! Ask your question @hollow fox!

hollow fox
#

I have a question

iron sierraBOT
#

Theres no time to wait! Ask your question @hollow fox!

hollow fox
#

Where can I buy EzPrestige

mint fable
#

Ezprestige is free

#

=pl ezprestige

tender vaporBOT
#

v1.2.2 by clip
Let players /prestige the EZ way

Downloads:

12,705

Likes:

19

Reviews:

51

hollow fox
#

Ouch MCMarket is selling it for $6.50 oops

mint fable
#

Oh?

hollow fox
#

Yea but I wont send the link.

mint fable
#

i see nothing on mc-market for it

hollow fox
#

That is agaist the rules.

mint fable
#

If you want, you can send it to barry

hollow fox
#

Its not called EzPrestige

#

No, sorry. Thats a pirated plugin that means. I don't partake in that.

trim mist
#

Good work, you're learning to follow rules! 😄

#

See, was that so hard?

#

Also not really sure how that's pirated, LOL.

#

Literally a different plugin.

mint fable
#

any prestige plugin is ezprestige and clip owns all

trim mist
#

Fax

hollow fox
#

Thats not true...

mint fable
#

😮

hollow fox
#

Why are you guys so rude?

#

I used to recommend EzRanksPro.. but not anymore lmao

desert trench
#

We're not rude

mint fable
#

you called us lazy

desert trench
#

They're having a joke

mint fable
#

and oh boy am I riled up when somebody calls me lazy

#

it's the worst

trim mist
#

Name calling isn't really a joke.

hollow fox
#

Lying about the rules isnt a joke

desert trench
#

Wrong time?

mint fable
#

my name isn't even lazy!

desert trench
#

backs out

mint fable
#

You just missed the introduction, that's all.

hollow fox
#

You said its a rule

#

LMAO wait i know exactly what I am gonna do. BRB 🙂

mint fable
#

verify? 😮 happy days

hollow fox
#

Nope

#

Something else 🙂

desert trench
#

All caught up thanks cj

mint fable
#

Also, not listening to staff is against the rules for your information.
So when Glare asked you to link the spigot account, and you didn't want to co-operate, that's included.

hollow fox
#

Are there Terms of Service when purchasing this?

#

Im gonna buy it so the Owner can get his server on time

mint fable
#

So you can keep going on and on about it, but my recommendation is be patient and wait for the owner to be awake. Also realize that not everybody's schedules revolves around you.

hollow fox
#

Are there Terms of Service when purchasing this?
@hollow fox

#

Im gonna buy it so the Owner can get his server on time
@hollow fox

#

Hello?

#

Help me please

#

I thought there was 24/7 support.

#

I apologize.

#

Please answer my question.

trim mist
#

/papi ecloud download EZRanksPro

#

/papi reload

hollow fox
#

"This expansion cloud is not enabled"

trim mist
tender vaporBOT
#
Placeholderapi
Useful Links & Information:

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

trim mist
#

Download it manually

mint fable
#

make sure to /papi reload

desert trench
#

Im gonna buy it so the Owner can get his server on time
@hollow fox why leave it to the last minute

trim mist
#

Odin, stay out of this.

hollow fox
#

I didnt

desert trench
#

Sorry

hollow fox
#

Its called this is the last part of the server

desert trench
#

My bad @trim mist

hollow fox
#

Literally thats all I have to do

balmy marten
#

What's up @hollow fox

#

What seems to be the issue

hollow fox
#

Your /papi ecloud download EzRanksPro doesnt work.

balmy marten
#

What's it say?

hollow fox
#

"This expansion cloud is not enabled"

balmy marten
#

Is it enabled in the config?

#

cloud_enabled: true

hollow fox
#

papi or ezranks?

#

config

balmy marten
#

Papi

hollow fox
#

cloud yes. I have others downloaded too

balmy marten
#

Interesting, you mind if I grab a copy of your startup log?

hollow fox
#

Yea sure let me restart it quick

balmy marten
#

Alright just throw the first ~500 lines or so into a paste

#

=paste

tender vaporBOT
#
HelpChat Paste

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

hollow fox
#

I had downloaded the expansion file from the website

#

I will test it now

tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/buduwuduho

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

balmy marten
#

Seems there a bit missing from that log

hollow fox
#

Like?

#

Cause when I download the expansion it just causes an internal error

#

for the papi plugin

balmy marten
#

All the enable messages are missing

mint fable
#

and the Done! message is also not there

balmy marten
#

Correct

hollow fox
#

This is the error when I do papi reload

balmy marten
#

Error should be a few lines long

#

Some consoles like to hide errors, so you might need to grab it from the log file

mint fable
#

If you send over the full startup log we should be able to locate the issue ^

hollow fox
tender vaporBOT
#

@hollow fox,

Possible Solution Found:

This error occurs when there is a mismatch in versions between the expansion and luckperms itself,
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion
Once installed restart your server.

#
📋 Paste Converted!
https://paste.helpch.at/uvokijixof

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

balmy marten
#

Update the luckperms expansion and luckperms to their latest versions

#

That should fix those errors

hollow fox
#

LuckPerms is at the latest version, I will update the expansion now. Hopefully it does

balmy marten
#

Whilst you're updating things suggest updating PlaceholderAPI aswell

#

seems ur on a build form 2018

#

before a few critical things were fixed

hollow fox
#

Okay, thank you! It fixed it! What are the placeholders for a scoreboard? The ones of the EzRanksPro website don't work

#

Spigot*

#

Thank you!

#

!placeholders

#

=placeholders

balmy marten
hollow fox
#

So, what is the perm node to allow a player to rankup? Cause I did ezranks.rank.[Letter] for every single one and it just boosted them all the way up.

#

If I dont do that then they dont rankup

#

They just stay at A

balmy marten
hollow fox
#

Can you just say yes or no if I am doing something wrong?

balmy marten
#

no lol, that defeats the purpose of the verification

#

It's only there so we don't waste time on helping those who didn't purchase the plugin

#

Wouldn't need it if people didn't leak the plugin

hollow fox
#

bruh. i guess i will go buy it cause the owner is sleeping

balmy marten
#

Just wait till they wake up?

hollow fox
#

The server releases tomorrow. I wont have the time to do it when they wake up.

#

So I just spent $11

#

over a simple question

balmy marten
#

Blame the leakers and those who use the leaks over the system, not me

hollow fox
#

There

#

Can you help me now please?

balmy marten
#

Just link your spigot and you'll get the role

hollow fox
#

I did

#

I put a question in the group

balmy marten
#

ah, 1 sec

austere hawk
#

how to use placeholderAPI config placeholders ?

mint fable
#

What do you mean?

knotty pulsar
#

Is there currently an issue with LuckPerms PAPI?

#

when i install it, and reload it says theres an error

brisk coral
#

=paste

tender vaporBOT
#
HelpChat Paste

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

knotty pulsar
#
> [07:06:32] [Server thread/INFO]: JackCrispy issued server command: /papi ecloud download LuckPerms
> [07:06:32] [Server thread/INFO]: [PlaceholderAPI] Attempting download of expansion: LuckPerms by user: JackCrispy from url: http://api.extendedclip.com/media/Expansion-LuckPerms_IaULsEO.jar
> [07:06:32] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
> [07:06:32] [Craft Scheduler Thread - 67/INFO]: [PlaceholderAPI] Download of expansion: LuckPerms complete!
> [07:06:32] [Craft Scheduler Thread - 68/INFO]: [PlaceholderAPI] 174 placeholder expansions are available on the cloud.
> [07:06:36] [Server thread/INFO]: JackCrispy issued server command: /papi reload
> [07:06:36] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.10.6```
brisk coral
#

That can't be the whole error

knotty pulsar
#

theres loads more

#

lemme paste

brisk coral
#

Try deleting all the expansions, and redownloading them

knotty pulsar
#

Yea

#

I deleted them from the folder

#

weird ey

#

@final shadow ?

tender vaporBOT
#

@knotty pulsar,

Hey!

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

rapid tinsel
#

Hey there c:! Is there a way to sum up placeholders in DeluxeMenu? (something like %bungee_survival15% + %bungee_survival16%)

knotty pulsar
#

Frosty, do you know ab my issue?

brisk coral
#

Try reinstalling papi (with a fresh download)

mint fable
#

if you want a list of all your bungee survival servers you can try this @rapid tinsel

tender vaporBOT
mint fable
#

just change it up a bit

#

that was made for servers named sw1 sw2 all the way to 30, plus skywars1 up to 3

rapid tinsel
#

Thank you very much

knotty pulsar
#

Frosty i set - '%{plotsquared_currentplot_owner}' in TitleManager. It says it supports PAPI

#

But it doesnt show

junior musk
#

%plotsquared_currentplot_owner%

#

that's how PAPI placeholders are used

#

on a plugin that supports them

knotty pulsar
#

But in TitleManager it says use

junior musk
#

then you maybe didn't download the expansion

knotty pulsar
#

I did

sharp jay
#

you type /papi reload

knotty pulsar
#

I did

#

but it seems %plotsquared_currentplot_owner%
works

#

thanks

sharp jay
#

title manager uses {

#

i though?

knotty pulsar
#

they use %{}

sharp jay
#

ah alright

knotty pulsar
#

Thanks 😄

#

One more

#

how can i show if the value is null , custom text

#

because going on a road

turbid tide
#

javascript

knotty pulsar
#

will just show nothing

#

Use ||

#

but how can you use js in it

turbid tide
#

you have to go to plugins/PlaceholderAPI/javascripts_placeholders.yml and add: road: file: road.js Then you save and do /papi reload and go to plugins/PlaceholderAPI/javascripts and refresh the folder. You will see a new file appear called road.js. Open that file and add in there: function road(){ if ("%plotsquared_currentplot_owner%" != "") return "%plotsquared_currentplot_owner%"; return "&cRoad"; } road(); Then save and do /papi reload again and then you can use the placeholder %javascript_road% instead of %plotsquared_currentplot_owner%. Btw it will return "&cRoad". when you are not on a plot. You can just change that to anything you want.

#

@knotty pulsar ^

knotty pulsar
#

Oh okay, tysm

#

@turbid tide Do i make a /javascripts_placeholders.yml

turbid tide
#

you don't have one?

#

in the folder called PlaceholderAPI ?

knotty pulsar
#

Nope

turbid tide
#

oh

#

I think

#

you need to do /papi ecloud download Javascript /papi reload

#

then refresh

#

the fold

#

and it should appear.

knotty pulsar
#

uh

#

=search

#

Javascript isnt a thing

junior musk
#

hi
i have a issue
with pinger
%pinger_online_46.105.172.144:25565%
detect offline but my server is onlin e
@austere hawk I had the same problem 2 days ago and I fixed it by realising that the expansion needs to have PlaceholderAPI with the Pinger expansion on the other server that you ping

knotty pulsar
#

@turbid tide there is no javascript extension

junior musk
#

what does it tell you ?

knotty pulsar
#

No cloud expansions are avab at this time

junior musk
#

can you check /papi ecloud status ?

knotty pulsar
#

Said the sme thing

junior musk
#

try /papi enablecloud

knotty pulsar
#

The cloud is already enabled!

junior musk
#

can you check console ?

knotty pulsar
#

Nothing in console

junior musk
#

🤔

#

your server may have a firewall that blocks access to the ecloud

knotty pulsar
#

but i downloaded two extensions

junior musk
#

when ?

knotty pulsar
#

5mins ago

junior musk
#

ah

#

then idk x)

#

try /papi reload and then download again

turbid tide
#

You can manually download it

junior musk
#

and put it in your /plugins/PlaceholderAPI/Expansions/ folder

turbid tide
#

and then do /papi reload

#

also make sure there isn't one in there already

#

like the same one you downloaded

knotty pulsar
#

ok thanks guys

#

Works perfectly

turbid tide
#

👍 of course it does 🙂 It is made by me ... and things that I make always works perfectly 😦

junior musk
#

It is made by me ...
what is made by you ? the JS Expansion ? I thought it was clip 👀

turbid tide
#

nah

#

the placeholder