#placeholder-api

1 messages · Page 92 of 1

austere hawk
#

Ty

junior musk
#

does it work now ?

austere hawk
#

It's working now, one issue

#

Deluxechat like

#

The chat color and bracket works

#

But the prefix doesnt?

junior musk
#

🤔

austere hawk
junior musk
#

can you do /lp user <player> info

#

and send a screen ?

#

wait wait wait

austere hawk
junior musk
#

it's the wrong part of the config 😂 😂 😂

#

you're in the examples in the config

#

there's the # before to say that it's a config comment

#

the real config is below

austere hawk
#

its still wrong tho 😂

junior musk
#

🤔

austere hawk
#

lemme install vault

#

idek

#

yeah still nothin

junior musk
#

oh yeah you need vault lol x)

#

what

junior musk
#

any errors in console on /deluxechat reload ?

austere hawk
#

Changed the suffix and it still didnt update

#

No.

#

Would supercore be interfering with this?

junior musk
#

is it another chat plugin ?

#

k I just saw the plugin's page and it doesn't seem to change the chat format

austere hawk
#

My only guess would be NTE

#

because now when I type /nte nothing appears in chat nor in console

#

like error and message wise

junior musk
#

could you send your plugin list ?

#

because now when I type /nte nothing appears in chat nor in console
K I know why NTE doesn't work x)

#

they haven't updated to LuckPerms v5

#

I think

#

because someone said the same thing in the comments

static dragon
#

Warning: Nashorn engine is planned to be removed from a future JDK release @final shadow rip javascript extension

tender vaporBOT
#

@static dragon

Hey!

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

static dragon
#

barey dum

brisk coral
#

We already know

#

Feels bad

sand leaf
#

Big oof

ember crown
#

Hi @turbid tide, are you here?

turbid tide
#

yeah

ember crown
#

I am in that job and it's showing still menu join to that job

turbid tide
#

currently I am in a game of Cs:Go and will help after the fame if no one else here figures it out

ember crown
#

Okay, thanks

turbid tide
#

@ember crown first of all: output: 'true'

ember crown
#

Okay, I will try it

#

No, still doesn't work

#

I will send you that 2 menus

turbid tide
#

@ember crown what does it return when you do:

#

/papi parse me %jobsr_user_isin_Dřevorubec%

ember crown
#

It writes "True"

turbid tide
#

change output: 'true'

#

to output: 'True'

ember crown
#

Okay

#

No, still doesn't work :c

brisk coral
#

Rename a job to something which doesn't use special characters and try with that

ember crown
#

Still doesn't work

#

Without special characters

#

Hmm, what's now? :/

mental bison
#

When I want to restart my server it keeps hanging on > [17:21:10] [Server thread/INFO]: [PlaceholderAPI] Disabling PlaceholderAPI v2.10.4 Only when I kill it will stop but that wont save the rest of the files. Checked the logs and there is no errors shown

white hinge
#

deluze menu wont work for %player_name%

#

can someone help

warm topaz
#
/papi reload```
white hinge
#

i already did that but am making a shop and it doesnt take money from the player they just get it for free

junior musk
#

and did you add a command to take the money from the player ?

white hinge
#

yes

junior musk
#

can you send your menu ?

white hinge
#

display_name: '&e&nPig&f | Spawner' lore: - ' ' - "&8 ▪ &7Buy Price:&r &e75,000 &a⛁" - ' ' - "&6&l* &eLeft click to buy" left_click_commands: - '[console] us givespawner %player_name% pig 1' - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP' - '[console] eco take %player_name% 74999' - '[refresh]' right_click_commands: - '[console] us givespawner %player_name% pig 1' - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP' - '[console] eco take %player_name% 74999' - '[refresh]'

junior musk
#

dpes ot says something in console when clicking the item ?

white hinge
#

lemme see

junior musk
#

and can you try to do /papi parse me %player_name% ?

white hinge
#

it doesnt say anything in console

#

the command says my name

junior musk
#

does the other commands work ?

white hinge
#

YES

#

sorry caps

junior musk
#

does it work if you do /eco take <player> 74999 by yourself ?

white hinge
#

yes

junior musk
#

that's weird

turbid tide
#

and it doesn't take the money for both clicks?

white hinge
#

yes

turbid tide
#

but gives the spawner?

white hinge
#

yes

#

for free

#

so like

junior musk
#

do you have a click requirement to check that the player has the money ?

white hinge
#

if you have the amount of money to buy it you can buy it but if it doesnt you cant but you get it for free

#

and it doent take your money

junior musk
#
right_click_requirement:
  requirements:
    money:
      type: money
      amount: 74999
  deny_commands:
   - "[message] &cyou don't have enough money !"
left_click_requirement:
  requirements:
    money:
      type: money
      amount: 74999
  deny_commands:
   - "[message] &cyou don't have enough money !"
#

try to add this to your item

white hinge
#

doesnt work

turbid tide
#
right_click_requirement:
  requirements:
    money:
      type: has money
      amount: 74999
  deny_commands:
   - "[message] &cyou don't have enough money !"
left_click_requirement:
  requirements:
    money:
      type: has money
      amount: 74999
  deny_commands:
   - "[message] &cyou don't have enough money !"```
#

try this

white hinge
#

left_click_commands: - '[console] us givespawner %player_name% pig 1' - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP' - '[console] eco take %player_name% 74999' - '[refresh]' requirements: money: type: has money amount: 74999 deny_commands: - "[message] &cyou don't have enough money !" right_click_commands: - '[console] us givespawner %player_name% pig 1' - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP' - '[console] eco take %player_name% 74999' - '[refresh]' requirements: money: type: has money amount: 74999 deny_commands: - "[message] &cyou don't have enough money !"

#

this is what i have

#

and its not working

turbid tide
#

well because you didn't paste what I gave you and you modified it ...

#

the requirements don't work if you add them in the click_commands sections ...

white hinge
#

oh ok

#

i pasted in

turbid tide
#

1 sec

white hinge
#

still not

turbid tide
#

1 sec

#

I will make it for you

#

this should work

white hinge
#

k i pasted it in and its still not

#

it doent take the money from the player

winged breach
#

guys does papi support if else logic

brisk coral
#

javascript does ye

winged breach
#

wait doesn't papi's math placeholders include if logic?

turbid tide
#

don't think so

#

but you can do your own placeholders using javascript

#

@white hinge can you give the entire menu?

#

=paste

tender vaporBOT
#
HelpChat Paste

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

brisk coral
#

It doesn't no

white hinge
#

wait

#

how do i send

turbid tide
#

go there

#

and paste the menu

#

than press ctrl+s

#

and give the newly generated link

white hinge
turbid tide
tender vaporBOT
#
Config Error!

BlitzGamer_88, I found an issue with your config:

- Duplicated mapping key at line 592, column -565:
      'pig_zombie':
      ^```
turbid tide
#

@white hinge you can't have 2 items with the same name

white hinge
#

hm

turbid tide
#

'villager': you have 2 of those

#

and 2 for zombie_pigman

#

pig_zombie*

#

try that menu

winged breach
#

wait, so if i do %javascript_llll%, itll use whatever the placeholder translates to in javascript code?

turbid tide
#

i don't rly understand your question

#

you can write your own placeholder in javascript

#

that is what I am saying

#

so you have to write it

winged breach
#

so if i replace llll with an argument in javascript, will it use thata argument as if this is javascript code

#

or do i have to create the placeholder

#

and simply refer to it

vivid sparrow
#

You have to create the code

turbid tide
#

you have to create the placeholder and %javascript_placeholdername% will only call the placeholder

winged breach
#

ah ok thanks for clearing thata up

white hinge
#

when you try to buy the spawner it doesnt take the money

#

eco take %player_name% doesnt work

#

why

turbid tide
#

but if you do "eco take Taller 1"

#

in chat does it work?

white hinge
#

yes

#

it does

turbid tide
#

and it doesn't even try to execute the command in console when you click the item?

#

click the item and check the console and see if it at least tries

#

also do /papi parse me %player_name% and see what that returns

white hinge
#

it says my name

winged breach
#

so im making a placeholder in javascript, but i only know java so im doing it very roughly

how do i use values that are called with the placeholder? Can I just use args[0] or something?

bronze bison
winged breach
#

aight thanks idk how i couldnt find this

bronze bison
#

👍

warm trail
#

Is there anyway to put a placeholder inside of a placeholder... (EX. %rankprefixof%player%%)

bronze bison
#

Depends if that placeholder support placeholders inside it.

warm trail
#

If it did, how would I format it?

bronze bison
#

Usually its with %placeholder_example_{placeholder}%.

warm trail
#

Thank You!

brisk coral
#

@pseudo mist Open source the expansion so it can be looked at.

pseudo mist
#

What expansion? Advancements or RogueParkour?

brisk coral
#

RogueParkour

pseudo mist
#

with a .rar is it worth it?

#

or into github?

brisk coral
#

GH preferable

pseudo mist
sterile imp
#

anyhow

#

i need some help, i contacted the dev of deluxehubs about this problem, he said to join the papi discord

vivid sparrow
#

Lets watch our language @sterile imp

sterile imp
#

sorry dad

#

Could anyone potentionally help me? Thats my error log up here, i ran all of the /papi ecloud download commands, and i have the latest version of everything.

#

I'm clueless at this point.

brisk coral
#

Mind pasting it in here

#

=paste

tender vaporBOT
#
HelpChat Paste

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

brisk coral
#

(easier to read since dark theme)

sterile imp
#

dont know how to save it..

turbid tide
#

ctrl+s

sterile imp
#

did so.

unique flare
#

I keep getting "No cloud expansions are available at this time."

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.

unique flare
#

I mean, it was working yesterday

#

which is why im confused, did they just now block it, for both of us, on 2 separate server hosts?

sterile imp
#

Can anyone help a brother out?

sterile imp
#

...

winged breach
#

am i correct in saying that when using a javascript placeholder, the format would be %javascript_nameoffile_arg1,arg2,arg3%?

white hinge
#

so like am making a shop and when you buy stuff it doesnt take the money it just gives you it for free so you can just spam it and iit will not cost anything .
- '[console] eco take %player_name% 49999'

junior musk
#

can you send your menu ?

winged breach
#

try using just %player

junior musk
#

that doens't exist in DeluxeMenus

#

nlr PAPI

white hinge
junior musk
#

if the players do have enough money, is it taken ?

white hinge
#

no

#

it isnt takin

junior musk
#

even if he have enough ?

white hinge
#

yes

junior musk
#

for what item ?

white hinge
#

like spawners

junior musk
#

I mean, wich one did you try ?

white hinge
#

pig

#

villager

#

cow

#

sheep

#

chicken

#

skeleton

#

iron_golem

#

creeper

#

zombie

#

spider

#

blaze

#

enderman

#

magma cube

#

zombie pigman

#

ghast

#

thats it

junior musk
#

I can't find the problem, it all seems to be good

white hinge
#

it doesnt take the money out of the player

#

thats the only thing i need help

junior musk
#

what's your server verdion and your DM version ?

white hinge
#

for some reason eco take %player% isnt workin

#

my server vesion

#

is

#

1.8.8

#

and

junior musk
#

%player% isn't a valid placeholder, it's %player_name%

white hinge
#

1.10.5

#

dm

#

i mean %player_name%

junior musk
#

I'm out of ideas =/

#

I'l sorry, I can't find what's wrong here

white hinge
#

hm

turbid tide
#

Taller can you do an item that only takes the money?

#

and doesn't do anything else?

white hinge
#

yes

winged breach
#

How would you output commands through a javascript placeholder with papi through something like MyCommand?

This is the code, pretty simple, basically only lets the player purchase something if their debt will not exceed -50k:

var playerbal = 0;
var minbal = -49950;
var amount = 1;

function ifdebt() {
    
   if (args.length==3) {
        playerbal = args[0];
        minbal = args[1];
        amount = args[2];
   }
   playerbal -= (amount*50);
   if(playerbal>=minbal) {
        //output a series of commands
   }
}

ifdebt();
pseudo mist
#

@winged breach you want to make the when the user uses that command check the placeholder and then continue doing things?

#

If I have not misunderstood you

winged breach
#

yeah pretty much

#

i want an action to occur IF the if parameters are met

pseudo mist
#

Into mycommand have a $Script$%if%. If you know programming, use system boolean, you can made javascript placeholder return 1 or 0. 1 is true and 0 false. I made one example

checkmoney:
 command: /checkmoney
 type: RUN_CONSOLE
 executefor: SENDER
 runcmd:
 - "$delay$"
 - "$Script$%if%%javascript_checkmoney%==1"
 //commands if player have less -50k
 - "$Script$%else%"
 //commands if player more -50k
 permission-required: false
 delaytimer: 1

Javascript

var playerbal = 0;
var minbal = -49950;
var amount = 1;

function ifdebt() {
    
   if (args.length==3) {
        playerbal = args[0];
        minbal = args[1];
        amount = args[2];
   }
   playerbal -= (amount*50);
   if(playerbal>=minbal) {
      return 1;
   }else{
      return 0;
   }
}

ifdebt();
winged breach
#

Ah I didn't know you could do that, thanks for the help

winged breach
#

ok now i have another issue

#

one of the variables i need is %essentials_worth% which is the player's essentialsx balance, and i think it thinks i'm calling %javascript_if_% instead

#

so it looks like this:

$Script$%if%%javascript_if_%essentials_worth%,-49950,$arg1%==1
#

the three variables are %essentials_worth%, -49950, and $arg1 so i think the first % in essentials is ending the if thing early

vivid sparrow
#

use {}

sonic burrow
#

Will someone help me with voteparty? placeholders

#

Since its not working with featherboar

winged breach
#

@vivid sparrow would i have to do {%essentials_worth%}

#

?

vivid sparrow
#

instead of %%

winged breach
#

so {essentials_worth}?

vivid sparrow
#

yes

winged breach
#

aight ill try that thank you

#

damn well maybe it works but the code is still not working :(

vivid sparrow
#

though you have to parse the arguments as numbers

#

parseInt()

winged breach
#

im guessing its the same as java
parseInt(-49950)

pseudo mist
#

The args into placeholder pass how string. If you like use operators (-,+,*,/......) you need parse to integer (parseInt) into code when you call "args[0]...." if the var is number

winged breach
#

ah so i do parseint inside the javascript code, not the command

#

ok i dont understand why the fuck this doesnt work

#
var playerbal = 0;
var minbal = -49950;
var amount = 1;

function ifdebt() {
    
   if (args.length==3) {
        playerbal = parseInt(args[0]);
        minbal = parseInt(args[1]);
        amount = parseInt(args[2]);
   }
   playerbal -= (amount*50);
   if(playerbal>=minbal) {
        return 1;
   } else {
        return 0;
   }
}

ifdebt();
#

MyCommand:

- '$Script$%if%%javascript_if_{essentials_worth},-49950,$arg1%==1'
vivid sparrow
#

parse it in chat

winged breach
#

what do you mean?

vivid sparrow
#

/papi parse me %javascript_if_{essentials_worth},-49950,$arg1% replace $arg1 with a number though

winged breach
#

yes but $arg1 is a number the player enters

vivid sparrow
#

for the parse command I mean

winged breach
#

ah

glossy zealot
#

anyone know why this doesn't work?

var admin = "%otherplayer_hasperm_{%player_name%}_perm_displayname.Admin%";
function prefixcolor() {
    return admin;
}
prefixcolor();
#

it just returns saying an internal error occurred when i do /papi parse me %javascript_prefix%

winged breach
#

i believe it should be {player_name}

austere hawk
#

uh how do I make the vault ecloud work

#

the plugin vault

glossy zealot
#

I changed it to {player_name} and now it doesn't error out just it returns PNF, player not found

winged breach
#

This command isn't working, and I'm not sure why. It's supposed to give x amount of power only if the resulting debt is less than -50k.

landconfirm:
  command: /landconfirm
  type: RUN_CONSOLE
  runcmd: 
  - '$Script$%if%%math_{essentials_worth}-$arg1%>=-50000'
  - '/f powerboost faction add %factions_faction% $arg1'
  - '/broadcast $player has bought [$arg1] land power!'
  - '/economy take $player %math_$arg1*50%'
  - '$Script$%else%'
  - '/whisper $player You dont have enough money! You may not go beyond $50,000 in debt!'
  error-message: 'Purchases land power. Usage: /landconfirm <amount>'
  permission-required: false
  register: true
#

at this point ive tried javascript placeholders, if scripts, and idk what else to do

carmine glade
#

How do you parse a variable in javascript where the string is dynamically generated?

#

Like for Jobs Reloaded, there's a variable %jobsr_user_isin_1%, and 1 is set to a variable like "i". I tried "%jobsr_user_isin_" + i + "%" but that does not work

carmine glade
#

If anyone knows a way, please @ me so I don't forget to look

brisk coral
#

There's an example on the wiki iirc

boreal dagger
#

How come I keep getting No cloud expansions are available at this time, no matter if I reload the plugin?

#

I have to restart my server for it to work, and then it stops again after like one download

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.

boreal dagger
#

Wonderful, thank you so much

coarse sable
#

Anyone knows why args.length always returns 1 unless you don't pass any arguments with /papi parse? I'm trying to get something working in javascript with 2 args

bronze bison
#

%javascript_placeholder_arg0,arg1,arg2,etc% and args.length for this will return 4

alpine anvil
#

is there a placeholder to check if a player is on a bungee server? (ping when answering)

#

or do i have to make a custom javascript placeholder that checks a placeholder in a different server using serverselectorx nvm

coarse sable
#

Ah thx @bronze bison

tender vaporBOT
#

@coarse sable

Hey!

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

coarse sable
#

That hurts Barry

alpine anvil
#

is there a placeholder to check if a player is on a bungee server? (ping when answering)
anyone

vivid sparrow
#

%server_name%

alpine anvil
#

i want to know if a person is in a server which is under a bungee proxy

junior musk
#

isn't this for the server name in your papi config ?

vivid sparrow
#

Yes it is

alpine anvil
#

where could i find the variables that are set in javascript placeholders like BukkitPlayer and BukkitServer

vivid sparrow
#

But theres nothing about bungee

alpine anvil
#

yeah i got an idea how to do it

vivid sparrow
#

BukitPlayer, BukkitServer, PlaceholderAPI, args[], Expansion, placeholder

alpine anvil
#

thanks for reminding me of %server_name%

vivid sparrow
#

Thats all you got iirc

alpine anvil
#

thanks btw

vivid sparrow
#

No worries

dire scroll
#

not sure if this should go here or in the ezrankspro channel, but how can i edit this messages placeholder?

pine slate
#

Hi, how can I verify my expansion?

bronze bison
#

One of the eCloud mods has to verify it.
I'll verify it later if no one did.

bronze bison
#

Hello @pine slate,
Unfortunately, you expansion won't be verified due to the lag it might cause when executing SQL queries every time a placeholder gets parsed, and that's for most of the placeholders you have.
A solution for this, would be locally caching the data you often pull from the database.

pine slate
#

@bronze bison Ok thanks, already locally cached the data, but I was wrong in how to get the data, now I start to fix it and upload it again

bronze bison
#

Cool! I'll look into it again once you update it 👍

pine slate
#

@bronze bison Now its fixed

tender vaporBOT
#

@pine slate

Hey!

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

bronze bison
#

Verified Verified
Thanks for using PlaceholderAPI 😃

final shadow
cyan tide
#

does anyone know the correct place holder to represent the number of players on a world?

vivid sparrow
#

%server_online_WORLD%

cyan tide
#

so where it says 'WORLD' i would place my world name?

vivid sparrow
#

yes

cyan tide
#

okay thank you so much @vivid sparrow !

vivid sparrow
#

np

winged breach
#
var playerbal = 0;

function givebal() {
    playerbal = parseInt(args[0]);
    return playerbal;
}

givebal();
/papi parse me %javascript_bal_{economy_worth}%
#

this is returning NaN, any idea why? It should return my actual /bal i think

pseudo mist
#

aBooDyy executing SQL queries cause one expansion won't be verified?

tender vaporBOT
#

@pseudo mist

Hey!

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

turbid tide
#

@winged breach what does /papi parse me %economy_worth% return?

winged breach
#

just %economy_worth%

turbid tide
#

well what placeholder is that from what plugin*?

winged breach
#

i believe essentials

turbid tide
#

%essentials_worth%

#

that is from essentials

#

economy_worth is not a placeholder

winged breach
#

hm i guess i didnt think about that

#

If I used vault

#

's expansion, would that also use essentials' economy

turbid tide
#

it will use your main economy

winged breach
#

ok

#

let me try that

turbid tide
#

you can see it in /vault-ifno

#

/vault-info*

winged breach
#

oh yea it does

turbid tide
#

what is your main permissions plugin and also your economy plugin

#

oops

winged breach
#

im using essentials / vault and for permissions im using luckperms

#

ok /papi parse me %essentials_worth% is outputting a blank line

turbid tide
#

hmm same here

#

ohhh

#

that is because it doesn't return your balance

#

I see now

winged breach
#

oh wait does it return a value of an item?

turbid tide
#

in essentials folder you have a worh folder

#

worth*

#

for prices

#

and it returns the price of the item in your hand

winged breach
#

oh yeah it does do that

#

or well its supposed to

#

ok wel %vault_eco_balance% works right

turbid tide
#

🙂

winged breach
#

thanks for the help i didnt even consider anything wrong with economy_worth

bronze bison
#

Executing SQL queries every time the placeholder is parsed. Yes @pseudo mist

#

The reason of that is the amount of lag this would cause. Placeholders mostly get parsed every second while one player is online.
So how about multiple players and multiple placeholders getting parsed every second or so, and all of them are executing SQL queries.

pseudo mist
#

and is there any way to improve that? Without depending on the plugin on the plugin that should return the data?

#

when making a placeholder of an outdated plugin and not optimized for placeholderAPI that has a database connection option.
I am interested in it

bronze bison
#

Unverified expansion means if you want to use it, it will be on your own risk. And in order to make the users know that, they should download it manually.

The proper way of storing data in an online database, should be by caching the data locally, then pushing once. And pulling the data and caching them locally once.
That part should be done in the plugin, cause if the plugin itself doesn't do that, then it would also cause lag, same thing as the expansion.

If that outdated plugin you're talking about is open source, you can improve it yourself or hire someone to do so.

pseudo mist
#

it is not open source,hopefully

final shadow
#

You can cache the placeholder values in the expansion

#

Let me find an example

#

Here’s one

#

In there we only fetch values from the map

#

But it has a task that populates the map on an interval

#

Maybe not the best example but something like that is what I’d suggest

#

@pseudo mist

bronze bison
#

That's unfortunate, but mostly outdated plugins get replaced with a new public one, or the user gets his own one.
Anyway, as clip said, you can cache in the expansion if you want to stick with that plugin.

pseudo mist
#

At the moment I will continue with this add-on (respecting the original idea of the author). If in the future I can get in contact with the author, I would like to help him. But if I don't get it I will have to make my own plugin

#

thanks for the suggestions

bronze bison
#

Thank you for that. However, you can write your own plugin and credit the author for the idea. And (would be preferred) ask for his permission before doing that (some might disagree with this but that what I would personally do).

pseudo mist
#

Last activity=last year.... I'm not going to be in a hurry about it XD

final shadow
#

You could just make an expansion rather than modify the plugin

pseudo mist
#

keep saying he's still busy. For more than 1 year

final shadow
#

Just use the expansion as the bridge between your plugin and the placeholder. If the plugin api is doing bad things such as sync calls to database u can just do what I mentioned above. That way the plugin doesn’t need modified at all

pseudo mist
#

Yes that's what i will do. It is faster and easier for me at the moment

fading tundra
#

Heyo!

#

Can someone make me a placeholderapi expansion for PvPingMobcoins

#

the current one does not work

turbid tide
#

the owner of the plugin would have to do that

#

unless it is opensource then maybe

#

someone could

fading tundra
#

@turbid tide It has a API

pseudo mist
#

I am update the expansion RogueParkour, add cache system and configuration for interval check

humble tinsel
#

Hey I am trying to make a deluxemenu tokenenchant gui, however when I download the tokenenchant ecloud it breaks the GUI.

spark mirage
#

hey so I have ezrankspro and im trying to setup progressbar on scoreboard through scoreboard r yet the progress bar doesnt work at all anyone know a fix?

brisk coral
south mist
#

How can I get a list of online players?

#

Yes I saw that, but I want to list players in every world

#

And %listplayers_in_world_global% doesn't work

brisk coral
#

use listplayers with perm then

#

and give everyone a random perm to track

south mist
#

Ok

south mist
#

No it doesn't work: I put %listplayers_with_perm_etredanslaliste% and gave everyone on minecraft the perm etredanslaliste (=be in the list)

turbid tide
#

well that is weird.. it works for me

south mist
#

Hmmm

junior musk
#

etredanslaliste
😂 best perm ever
anyways, after searching in the list of placeholders on github and in the ecloud, I can't seem to find any other ways too do this

south mist
#

Ok...

#

Thank you anyway

#

It wouldn't be difficult to create a new placeholder that just list players with a custom separator, would be?

vivid sparrow
#

no

south mist
#

I just need to learn Java and the basics of a Minecraft server

brisk coral
#

wouldn't you be able to use javascript for that?

south mist
#

I don't know anything about JavaScript... The only language which I know is Python

golden trench
#

Okay so I havent bought Featherboard, im asking this on behalf of Terence888 the owner of PandaCraft who has bought it. Im a manager on his server.
With Featherboard, its working perfectly except the placeholder we are using does not turn $1000QD into $1QT, it instead just becomes 1000000000000 (until it reaches the edge of the scoreboard). Does anybody know a placeholder that wont stop at $999QD? (Repost because it was ignored)

junior musk
#

{money_formatted}

carmine glade
#

How do you parse a variable in javascript where the string is dynamically generated?
Like for Jobs Reloaded, there's a variable %jobsr_user_isin_1%, and 1 is set to a variable like "i". I tried "%jobsr_userisin_" + i + "%" but that does not work

bronze bison
#

use PlaceholderAPI.static.setBracketPlaceholders(BukkitPlayer, "{placeholder_placeholder_" + i + "}")

carmine glade
#

You can do that in Javascript?

daring canopy
#
[16:11:38 WARN]: org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
[16:11:38 WARN]: found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
[16:11:38 WARN]:  in 'string', line 1235, column 11:
[16:11:38 WARN]:           '1':
[16:11:38 WARN]:               ^
#
[16:11:38 WARN]:
[16:11:38 WARN]:        at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
[16:11:38 WARN]:        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162)
[16:11:38 WARN]:        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130)
[16:11:38 WARN]:        at com.extendedclip.deluxemenus.DeluxeMenusConfig.checkConfig(DeluxeMenusConfig.java:582)
[16:11:38 WARN]:        at com.extendedclip.deluxemenus.DeluxeMenusConfig.checkConfig(DeluxeMenusConfig.java:574)
[16:11:38 WARN]:        at com.extendedclip.deluxemenus.DeluxeMenusConfig.loadDefConfig(DeluxeMenusConfig.java:63)
[16:11:38 WARN]:        at com.extendedclip.deluxemenus.DeluxeMenus.onEnable(DeluxeMenus.java:71)
#
[16:11:38 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[16:11:38 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316)
[16:11:38 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[16:11:38 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395)
[16:11:38 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344)
[16:11:38 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:442)
[16:11:38 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:403)
[16:11:38 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:341)
[16:11:38 WARN]:        at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:289)
[16:11:38 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616)
[16:11:38 WARN]:        at java.lang.Thread.run(Thread.java:748)
[16:11:38 WARN]: Caused by: while scanning for the next token
[16:11:38 WARN]: found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
[16:11:38 WARN]:  in 'string', line 1235, column 11:
[16:11:38 WARN]:           '1':
[16:11:38 WARN]:               ^
#

any help ? 😦 😦

carmine glade
#

You can't use tabs in yml files, use spaces

bronze bison
#

^

#

You can do that in Javascript?
Yes, since latest update.

pseudo mist
bronze bison
#

Cool, will take a look in a bit.

tender vaporBOT
#

@bold mesa

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.

winged breach
#

I'm using the PAPI Expansion "ScoreboardObjectives", and my code is:

%objective_score_hi_{player_name}%

But it always returns 0. It works if {player_name} is replaced with an actual IGN, but I have the Player expansion downloaded.
This also doesn't work if I replace {player_name} with $player (mycommand) or $player_name$.

turbid tide
#

what if you replace it with %player_name% directly

winged breach
#

i can't replace the syntax with %% because the syntax ends %objective_score% before player name is even reached

final shadow
#

Have you tried {placeholder}

#

Idk how that expansion handles allowing placeholders

winged breach
#

the first thing i tried was using {player_name}, you can see it on the example i showed above

#

and yes that is supported (supposedly)

rapid trail
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.

final shadow
#

@rapid trail

rapid trail
#

Thanks

topaz temple
#

When I type "/papi ecloud download statistic" and then reload it doesnt appear to actually add anything

#

it appears that it has been installed but papi is not detecting it

#

let me try restarting the thing

#

it appeared to do nothing

#

And i also tried downloading it from your website, and putting it in manually, and its still not working

final shadow
#

Check the expansion folder and make sure you don’t have multiple statistic jar files

topaz temple
#

yea there is no duplicates

austere hawk
#

Got this error was told by TAB to ask you guys

mint fable
#

umm

#

it looks like they might've fixed it

#

yep, fixed on github

#

have you tried updating TAB @austere hawk ?

#

And did they really send you to us? It was an error in TAB... that they fixed already

austere hawk
#

They said it was a placeholder API issue

mint fable
#

😂

#

they didn't check the recent updates I guess

#

lol

#

I saw it fixed on github so 🤷‍♂️

austere hawk
#

What update I updated tab to the newest version

mint fable
#

it looks like 2.7.0 has A fix

austere hawk
#

That's the version I have it just started throwing that error when I updated

mint fable
#

the next update will have an additional error log it seems

#

Are you sure? the error you sent clearly says v2.6.5

#

I just downloaded 2.7.0 and see in the code that it catches that exception

austere hawk
#

Let me check one moment

mint fable
#

Very weird... they have a "fix" but not really

#

just looking at this code haha

tender vaporBOT
#
📋 Your paste, Nater
https://paste.helpch.at/rotopoxone

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

austere hawk
#

It says I'm using 2.70

mint fable
#

that says 2.6.5 still

#

what says?

austere hawk
#

The jar file on the

#

Plugins folder

brisk coral
#

Check if you have two

mint fable
#

also check that it's the correct server directory

austere hawk
#

Could it be because of the folder

#

Does the old folder have to be deleted

#

Because I have so much configuration I don't want to lose it

mint fable
#

shouldn't have to

trim mist
#

That paste was from earlier. I was just cleaning up chat.

austere hawk
#

Ah

#

Yeah I don't know why it's throwing that Warn or error because it doesn't make sense

mint fable
#

Can you send a new console error?

#

with the 2.7.0

austere hawk
#

Okay

#

I just looked and it says 2.65

#

Why won't update 2.7.0

#

Let me delete the jar and reinstall again one moment

brisk coral
#

Make sure the server is off

mint fable
#

ya... how are you "updating" it?

austere hawk
#

Restarting

mint fable
#

also, try to re-download it

austere hawk
#

Server stopped and it was re-downloaded putting in now

lament ermine
austere hawk
#

Okay i did what u said

#

and it still shows 2.6.5

mint fable
#

@lament ermine can you send over the GameArena class?

#

@austere hawk I am very confused

#

500% it's the correct server directory?

austere hawk
#

Plugins

#

Yes

trim mist
#

Cj have you tried downloading it and verifying the latest version isn't wrong?

mint fable
#

I haven't loaded up, but checking code it says 2.7.0 @trim mist

trim mist
#

Just download and look at the plugin.yml

mint fable
#

it looks like they write it manually

brisk coral
#

oof

mint fable
#

and the version is 2.7.0 in the plugin.yml

#

@austere hawk not the plugins folder, I'm specifically talking about the server itself

austere hawk
#

Like version?

mint fable
#

I personally have multiple testing servers all labeled very similarly

lament ermine
mint fable
#

do you have multiple servers @austere hawk ?

austere hawk
#

Yes

#

A whole network

mint fable
#

So are you putting the plugin in the correct one

#

Or are you putting it in another server?

austere hawk
#

in all 7 not bungeecord

mint fable
#

So you're stopping all 7 servers, removing the old .jar, and putting the updated plugin in?

austere hawk
#

1 by 1 yes

brisk coral
#

You mentioned you have two plugin directories, one old, one new, what are you naming the old one?

austere hawk
#

what? I only have 1 plugin directory meant to say 1

mint fable
#

for all 7 servers?

austere hawk
#

Yes 7 different plugin directories 1 per srever

mint fable
#

Okay

#

Have you updated all 7 yet?

austere hawk
#

no because of uptime wanted to see if it would update

mint fable
#

Okay, so I want to make sure that if you update server 1, you are also giving us the log from server 1, right?

#

That's what I mean by "putting the plugin in the correct server directory"

#

@lament ermine Don't you need to import GameArena in PAPI?

#

Most IDEs have auto importing, which one do you use?

lament ermine
#

I'm using Intellij IDEA 2019 but I updated last week so it might have some problem

#

let me check

mint fable
#

Ctrl+Alt+O seems like

lament ermine
#

Ctrl Alt O did remove 9 unused imports.
and I guess i have auto importing already

#

GaneArena and PAPI are in the same package, so IDEA doesn't want let me import them.

mint fable
#

no idea why it's not working

#

but you shouldn't register your events for your plugin inside the placeholderapi check...

lament ermine
#

Bukkit.getPluginManager().registerEvents(this, this); this one?

mint fable
#

ya

lament ermine
#

oh wait, that's another thing. whoops.

mint fable
#

Honestly not sure, it looks correct to me, but it's also a bit hard to follow

#

gamearena.gamearena.GameArena

#

mate

lament ermine
#

.<

mint fable
#

Also naming your class PAPI... it's all conventional, optional, but you will get a lot of comments and questions from most people

lament ermine
#

I'm doing solo so it's ok(?)

mint fable
#

Exactly, it doesn't really matter either way

lament ermine
#

😂 Thanks!

halcyon helm
#

Is there like a placeholder that can show a progress bar of another placeholder?

halcyon helm
#

progress_bar_superior_island_upgrade_members-limit_c:&a■_p:&e■_r:&7■_l:10_m:100_fullbar:&aCompleted!

#

I tried that one, but ain't showing anything

bronze bison
#

{} for placeholders

halcyon helm
#

ow ok thx bro

bronze bison
#

👍

lapis shoal
#

I'm getting a NoClassDefFoundException

warm topaz
#

=paste

tender vaporBOT
#
HelpChat Paste

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

lapis shoal
#

My plugin is importing the same version of PAPI that s on the server

warm topaz
#

paste the full error please

lapis shoal
#

Full start log

carmine veldt
#

Ensure that your plugin is depending, or soft depending on papi so it loads after papi. Also, move to #development

lapis shoal
junior musk
#

you have a ' inside ' '

#

you have to add another one (example: ' text '' test '

#

line 209

#

in your menu requirements_menu.yml

#

ah

#

weird

mental raven
#

Does anyone have a PAPI extension for Tebex? Most donations highest amount that kind of stuff? ?

forest tendon
#

im using a plugin called SimpleScoreboard, it supports PAPI, what is the % for kills on a scoreboard

#

where is the kill one?

brisk coral
#

%statistic_player_kills%

#

make sure you have the expansion

forest tendon
#

didn ot work

#

not*

#

on the scoreboard i want it to list the top5 most kills on the server

#

how do i do that? the %statistic_player_kills% did not work

turbid tide
#

zkvix you will need a plugin that does that

#

like LeaderHeads

junior musk
#

Did you download the expansion?

forest tendon
#

what is expansion Tanguyab?

turbid tide
#

or DeluxeCombat

forest tendon
#

does that supports my scoreboard?

junior musk
#

Ah if you want Top then yeah you need a plugin like leaderheads

forest tendon
#

ok ill get leaderheads

#

is it this one

junior musk
#

does that supports my scoreboard?
If it supports PlaceholderAPI and that you ensure to download its PAPI expansion, then yes it'll work

#

Nope

forest tendon
#

send me link to it?

junior musk
turbid tide
#

but it is premium

#

same with DeluxeCombat

forest tendon
#

yes my scoreboard supports papi

#

12 euros?

#

damn

turbid tide
#

try DeluxeCombat

forest tendon
#

okay, how do i get it to say the players kills?

turbid tide
#

it is cheaper

#

and has a lot more feature

#

s

#

like combat logs

forest tendon
#

ill keep that in mind

#

but

turbid tide
#

custom death messages

#

etc.

forest tendon
#

ok, but how do i get it to say the players kills

#

not top

#

just their kills

turbid tide
#

%statistic_player_kills%

forest tendon
#

did not work :(

#

i don`t think i have the expansion tho? who do i get that?

#

how*

turbid tide
#
/papi reload```
forest tendon
#

oh, i did that

turbid tide
#

and ?

forest tendon
#

nothing happend

turbid tide
#

Statistic and not Statistics

forest tendon
#

yes?

turbid tide
#

when you do /papi ecloud download Statistic make sure you type Statistic and not Statistics

#

also what does /papi parse me %statistic_player_kills%

brisk coral
#

/papi parse me %statistic_player_kills%

turbid tide
#

return ?]

brisk coral
#

What does that return?

forest tendon
#

i did

#

but on the scoreboard it just says %statistic_player_kills%

brisk coral
#

What does the parse command return

turbid tide
#

@forest tendon run this command in your chat:

#

/papi parse me %statistic_player_kills%

forest tendon
#

ok

turbid tide
#

and tell us what it returns

forest tendon
#

%statistic_player_kills%

#

thats what it said

brisk coral
#

What's your server ver

forest tendon
#

1.8.8

brisk coral
#

/papi ecloud download statistic 1.7.0

forest tendon
#

ok

brisk coral
#

delete the expansion from the folder first tho

forest tendon
#

ok

#

it worked Thanks

topaz temple
#

statistics placeholders is not working

turbid tide
#

Statistic*

#

and what is not wroking?

topaz temple
#

papi is not detecting the extension

turbid tide
#

so you have it installed but doesn't work?

topaz temple
#

yes

turbid tide
#

delete the expansion and install it manually

topaz temple
#

tried that too and it doesnt work

turbid tide
#

and you did /papi reload?

#

after installing the expansion?

topaz temple
#

yes

#

and i also tried restarting the server

turbid tide
#

your server version?

topaz temple
#

Paper 1.8.8

turbid tide
#

/papi ecloud download statistic 1.7.0

#

but delete the current expansion

#

from the folder

topaz temple
#

oke

turbid tide
#

and also /papi reload after that command

topaz temple
#

aight i workre

#

it worked

#

ty

lucid beacon
#

Need help

#

with ezrankspro

#

placeholder

turbid tide
#

#spigot-linking

lucid beacon
#

?

turbid tide
#

ezrankspro is a premium resource so if you want support for it you will need to link your account so the person who is going to help you can confirm you bought the resource

lucid beacon
#

okay cool

quasi stratus
#

how can i show a player's prefix in the join/quit message? like "[prefix] [player] joined the game"

turbid tide
#

as in rank?

#

%vault_prefix%

quasi stratus
#

uh that didnt seem to work. just added a little blank space in the message

turbid tide
#

what does /papi parse me %vault_prefix% return?

quasi stratus
#

nothing its blank

turbid tide
#

hmm

#

what plugin are you using for ranks?

quasi stratus
#

luck perms

turbid tide
#

try %luckperms_prefix% then

quasi stratus
#

also blank

turbid tide
#

and I am assuming that you have the expansions installed?

quasi stratus
#

for luck perms yeah

#

god i have a feeling im missing something stupidly obvious

turbid tide
#

well did you set a prefix in luckperms?

#

also do you have a rank?

quasi stratus
#

oh thats gotta be it

#

i didnt set the prefixes in lp

turbid tide
#

:))

#

well you can still show the rank

#

if you don't want to set up prefixes

#

%vault_rank%

#

and it will return the name of the rank

quasi stratus
#

im basically just trying to get deluxejoin to show the deluxechat prefix

turbid tide
#

I don't think deluxechat can return the prefix ... you have to use the rank prefix

quasi stratus
#

ah ok

#

thanks for the help i got it working!

austere hawk
#

How do I exclude plugins from using PlaceholderAPI (so they can use their own placeholders)?

brisk coral
#

WhAt

austere hawk
#

??

#

im not asking a weird question

#

im just asking

#

how i can exclude plugins

turbid tide
#

what placeholders?

austere hawk
#

basically

#

I use EasyPrefiz

#

x*

#

and when i installed papi

#

This started happening

sonic burrow
#

Someone want to help me with voteparty?

limber ice
austere hawk
#

So...

#

How could I fix it?

tranquil sapphire
#

How possible would it be to make placeholders for Litebans?

junior musk
brisk coral
#

@tranquil sapphire , @junior musk Mind telling me which ones?, I requested some ages ago to the author but he said it was not worth his time

junior musk
#

is player banned/muted,
how many times was banned/muted/kicked/warned
(if player is ban/mute) ban/mute reason

#

I can't think of anything else

brisk coral
#

sec lemme find my message to him

#

Frosty:
Hello, I was wondering if it would be posible to add some placeholders:
History:
%litebans_bans% - Returns the number of bans the player has
%litebans_server_bans%
%litebans_mutes% - Returns the number of mutes the player has
%litebans_server_mutes%
%litebans_kicks% - Returns the number of kicks the player has
%litebans_server_kicks%
%litebans_warnings% - Returns the number of warnings the player has
%litebans_server_warnings%
%litebans_player_history_#% - Returns the players punishment date (# - number of the history's date)
%litebans_player_reason_#% - Returns the players punishment reason (# - number of the history's reason)
%litebans_player_executor_#% - Returns the players punishment executor (# - number of the history's executor)

It would also be nice if an api could be added.

If you would need any further explanation, feel free to DM me on discord Frosty#0013
(I rarely check spigot so a response would also be very welcomed on discord)

Cheers Frosty

#

Ruan (dev of litebans)
Currently PlaceholderAPI is not supported.

Adding support is complicated because all of the required data is usually stored in a MySQL database which means that getting any kind of variable requires a database query, which means it could cause lag if the placeholders are used on the main server thread (if the query takes 1 second, the entire server will freeze for one second until the query has finished).

So the data has to be cached to avoid lag, but that's also complicated because if there's a large number of placeholders then the act of caching in itself can cause additional unnecessary database load because the server could be fetching data that's ultimately unused. And if there are 20 servers, then the unnecessary database load is multiplied by 20. 100 servers = 100x database load. There would have to be a much higher caching interval for unused variables, but all of them would still have to be fetched on startup unless "0" is returned on variables that have been used for the first time which isn't ideal.

Basically it's a whole lot of effort for a handful of variables. Enough that I don't consider this a priority feature to implement.

raven tinsel
#

I'm glad to see you have placeholder api support

#

I have a question

iron sierraBOT
#

Theres no time to wait! Ask your question @raven tinsel!

raven tinsel
#

This is for CheckItem modifier: lorecontains:<text> How i can check the second line of a item's lore?

brisk coral
#

@mint fable :p

mint fable
#

it checks all lines @raven tinsel

#

can't specifically just check line 2

raven tinsel
#

So maybe i have to say in another way. I am making a command that checks the item in hand. If the item had no lore, it costs 20k for the command, if found a lore "gem" it costs 30k and if found two lore "gem" it says you can't get more than two gems

#

Any idea? i have problem for the last target (two gems)

mint fable
#

use the amt modifier

raven tinsel
#

This item is a Diamond_Sword, so it can't be stacked

mint fable
brisk coral
#

Don't think that's what he means cj, assuming you're defining gem "amount" through the lore

mint fable
#

I think amt should still work for non-stacking items @raven tinsel

brisk coral
#

ie:

no gem : 20k
1 gem : 30k
2 gem : not available
mint fable
#

Then check if the lore has exactly what you're looking for

#

2x gem ?

raven tinsel
#

yes exactly

mint fable
#

How many gems can a player have? any amount?

raven tinsel
#

the command is: add lore: "Gem" and I if the player's item had two "gems" the console say: you can't add more than two gems

mint fable
#

Is the amount of gems defined in lore or is 1 diamond sword 1 gem?

brisk coral
#

he's defining the amount in the lore

mint fable
#

please frosty

#

@raven tinsel can you send a screenshot maybe?

raven tinsel
#

Sure

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.

raven tinsel
#

It seems I can't send any pictures here

#

I can't paste it

#

I will write all the commands

#

''test''

brisk coral
#

use imgur

raven tinsel
#

Ok

mint fable
#

I meant of the gems

raven tinsel
#

Ok

mint fable
#

and if it has a gem?

raven tinsel
#

it costs more, if has two gems, it should say: you can't have more than two

brisk coral
#

Show how it would look if you have two gems

mint fable
#

I need to see how the item looks @raven tinsel

#

how it looks with 0 gems, 1 gem, 2 gems, etc.

raven tinsel
#

No it doesn't look like 0 gems, 1 gems,etc , it looks like this: Free Gem Slot, there's a command that add this lore, I want to stop player from using this command if the item has two Free Gem Slot

mint fable
#

I definitely think javascript will need to be used here

brisk coral
#

||I'll take that sorry now smh cj||

mint fable
#

So the commands adds an EMPTY gem slot?

raven tinsel
#

Yes

mint fable
#

okay you're gonna have to use javascript for that

raven tinsel
#

I thought this will work: lorecontains:Free|Free

#

but it didn't

mint fable
#

| is not a new line

#

you can try \n

#

that might actually work

raven tinsel
#

Okay i'm gonna test that

#

it didn't

#

It was good if we had a placeholder that checks the <line-number> of a lore

#

Can I request this for a update?

mint fable
#

Well think about it

#

once you fill that free gem slot, you'll only have 1 free slot

#

which will let players add more than 2 gems?

#

I think the best way for this is to customize a javascript placeholder that checks the lines individually

raven tinsel
#

I don't know that well..

#

But anyway thanks for the help

mint fable
#

Because if < Free Gem Slot > gets filled with something like Fire Gem (no idea what gems you have) it will let you add more empty slots

#

there's some examples, and google can help too

raven tinsel
#

Yes Yes i understood that, and I want to write also if lorecontains:+ (gems add something like: +2 Damage, +5 Armor,etc) it will understand, I can write all the ways: lorecontains:+\nFree or lore:contains+\n+ .....

#

Its pretty easy if i can check the second line

wide sapphire
#

Hey,

head;%player_name% does’nt work ?

brisk coral
#

head-%player_name%

#

also make sure you have the expansion (; if you're on 1.12, - if you're on latest)

austere hawk
#

How do i create the leaderboard in holograms?

#

That's such a plain question

turbid tide
#

you will nead a plugin that has top placeholders

#

like LeaderHeads

bronze bison
#

Why did clip remove the ; smh

lost token
#

So I'm using essentials chat as my chat plugin, and I'm using the Towny plugin as well. When I go into the config and put the placeholder "townyadvanced_towny" into the chat, it is fine, but once i add the two % symbols, it breaks.

#

Any way to fix?

brisk coral
#

use {} and install chat injector

lost token
#

Could not load 'plugins/ChatInjector.jar' in folder 'plugins'

#

What Im getting in console

#

@brisk coral

brisk coral
#

There's probably a reason why

brisk coral
#

@lost token Show the startup log

lost token
#

If I can find it.

#

Already started/stopped the server multiple times.

brisk coral
#

Did it only occur one time?

lost token
#

no after that i gave up and took everything out because the server is releasing now to 70+ people

#

I was just seeing if i could do one last thing before release

#

but i'll fix it later

buoyant hedge
#

Would it be possible to make a placeholder that counts time?

#

Not a count down.

#

Like a "count up".

#

I don't know how to say it.

mint fable
#

a counter

#

hmm

#

that's a link to storing data

#

you can check that for how to see the current time and use it

vivid sparrow
#

bruh cj

#

they want the opposite of a countdown not a cooldown @mint fable

mint fable
#

I know that

#

I put that there so they can use it as a reference for using the current date and time

vivid sparrow
#

ye but you dont have to store anything

#

just put the starting timestamp on a variable

mint fable
#

Ya, but you have to store it

#

and then you have to get the current date and time to see the difference

vivid sparrow
#

just put the starting timestamp on a variable

mint fable
#

what?

#

What is this the age of @buoyant hedge ?

#

a person or the server?

#

Because I was setting it up for a person's age kind of thing @vivid sparrow

vivid sparrow
#

server age for sure

buoyant hedge
#

@mint fable A server lmao.

tender vaporBOT
#

@buoyant hedge

Hey!

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

buoyant hedge
#

But, it has to be stored some where right? Or else every time the server reloads it will start back at 0?

mint fable
#

No, he's saying set the time you want as a constant variable

#

so var serverStart = 3/23/2020

#

that kind of thing

vivid sparrow
#

unix

buoyant hedge
#

Oh as a starting point?

mint fable
#

yep

buoyant hedge
#

But then, I'd have to make another var to store the current time no?

mint fable
#

Well you don't need a variable for it, but yes

buoyant hedge
#

Since the clock will be internal, every restart I will lose time no?

mint fable
#

you just get the current date and time, calculate the difference and then run the number through a formatter to give you w d h m s

buoyant hedge
#

Yeah.

mint fable
#

Oh you want the running time of the server?

buoyant hedge
#

No.

mint fable
#

why would you lose time?

buoyant hedge
#

I was worried that if I just made a counter I would lose time. Calculating the difference between current and first value is 1000x better.

mint fable
#

ohhh

#

Ya, I was thinking person age, which would be a counter

buoyant hedge
#

I thought you meant use the start var and add a counter to it.

mint fable
#

Or maybe.... a countdown.... to death?

#

Dun dun duuuunnnnn

vivid sparrow
#

creepy_cj.gif

buoyant hedge
#

It's really just to let players keep track of the season's progression.

#

Wow smh.

#

It was there all along.

mint fable
#

😮

#

aBooDyy made it all

buoyant hedge
#

Yeah lmao.

#

We're over here trying to reinvent the wheel.

#

Actually no.

#

That's a static value.

#

It just calculates the difference between 2 dates, I need a difference between 1 set date and the current date.

vivid sparrow
#

that's what it does

#
    var startDate = new Date(2020, 2, 23);
    var endDate = new Date();```
mint fable
#

ez pz

vivid sparrow
#

read the comments

#

endDate is the current time

buoyant hedge
#

Yeah, sorry.

#

I'm guessing the current date is the computer's date right?

vivid sparrow
#

yes

buoyant hedge
austere hawk
#

Hello so i own a multiworld server and when doing the %server_online_smp% it shows the smp world but smp_nether and smp_end gets left out

#

so is there any way you can do like %server_online_smp,smp_end,smp_nether%

unique flare
#

Are you trying to do every player in every world or just those 3 worlds, and dont count players in other worlds?

#

@austere hawk since that was 2 hours ago

#

If that's the entire server, just do %server_online% (I believe this means online players)
If you JUST want those 3 worlds, I recommend the Math expansion, then it's just %math_{server_online_smp}+{server_online_nether}+{server_online_the_end}%

mint fable
#

lookin good @buoyant hedge

buoyant hedge
#

Thanks man

austere hawk
#

@unique flare that kinda worked but now there are all of these numbers showing up 0.000

#

[precision:0] worked

#

🙂

#

ty so much

lucid beacon
#

where do I find the latest placeholder api list

vivid sparrow
tight wing
#

[10:53:30 WARN]: org.apache.commons.lang.UnhandledException: Plugin PlaceholderAPI v2.8.1 generated an exception while executing task 13
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:899)
at java.util.TimSort.mergeAt(TimSort.java:516)
at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
at java.util.TimSort.sort(TimSort.java:254)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1462)
at java.util.Collections.sort(Collections.java:175)
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager$1.run(ExpansionCloudManager.java:319)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more

warm topaz
#

update the plugin

austere hawk
#

Hi, i have another problem with script

#

So when i type /papi parse me %javascript_eastereventvote% &8/ &6%mycommand_playerdata_eastereventvote%

#

it returns this

#

My script is

#

function always() {
    if (p === 1) {
        return "&4&lBARDZO ŹLE";
    } else if (p === 2) {
        return "&c&lŹLE";
    } else if (p === 3) {
        return "&a&lOK";
    } else if (p === 4) {
        return "&2&lDOBRE";
    } else if (p === 5) {
        return "&d&lEPICKIE";
    } else if (p === 6) {
        return "&6&lLEGENDARNE"
    } else {
        return "&4&l!!! &c&lBrak Głosu &4&l!!!"
    }
}
always();```
#

so shouldn't it print out "ŹLE"? <--- Main Question

#

btw i know i need to replace to unicode i will do it later

#

also please if you could link me a unicode checker?? or something l,ike that cuz idk know the unicode code and i can't find that type of page/tool

#

PLEASE PING ME WHEN YOU ANSWER @austere hawk

shell rock
#

Hey there lovely people, I was wondering if you can remove a cloud expansion from papi, I keep getting this error since I added Factions expansion but I dont have the plugin for it nor need it anymore

[ERROR] .... [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion

[ERROR] .... [PlaceholderAPI] com.massivecraft.factions.RelationParticipator
trim mist
#

Why not just delete the expansion from the expansion folder?

austere hawk
#

could you also anwer me?

#

please

trim mist
#

Sorry, I don't work with JS stuff, someone else might be around!

austere hawk
#

k

bronze bison
austere hawk
#

so i need to do numbers in "", is that right?

bronze bison
#

Yes.

#

1 is an integer.
"1" is a string.

austere hawk
#

Great everything works now thank you!

bronze bison
#

Cool!

lapis shoal
#

Having an error here

tranquil sapphire
#

sec lemme find my message to him
@brisk coral Sorry but did he add the placeholders or what?

tender vaporBOT
#

@tranquil sapphire

Hey!

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

brisk coral
#

@tranquil sapphire He didn't no, he said it wasn't worth his time to go trough the effort

tranquil sapphire
#

Bruh

vivid sparrow
#

@austere hawk either parse that value as a number parseInt() or use .equals("NUMBER")

#

ah, kinda late to the party

#

welp

north rock
#

So I installed Pinger onto placeholderAPI and now im getting a huge error in console of the server im getting stats from, viaversion and protocolsupport are mentioned in the error, any help would be much appreciated

turbid tide
#

@north rock please paste the error using paste.helpch.at and give the link so others can see what the problem is and give a solution.

north rock
#

@turbid tide type that into console?

turbid tide
#

no

#

you get the error from the console

#

and go to that link and paste it there

#

and than save it (using ctrl+s) and give the newly generated link

north rock
#

Oki

#

I will in a bit, eating lunch lol

uncut pilot
#

with a javascript how would you make it so if the return of a placeholder is Test_level_<#> how would i put that into a javascript so i dont have to make like 10 Js's

mint fable
#

there's many ways @uncut pilot what is the # you want to return?

uncut pilot
#

1-10

mint fable
#

easy for loop

#

ah shoot i'm respawned 1 sec

uncut pilot
#

ok

#

because i need it to return the placeholder's correct return

mint fable
uncut pilot
#

I need it so if it = Top_Month_10 it'll return it as Empty where if its not empty it displays the correct return

mint fable
#

ohhhh

#

ya easy

#

use args[0]

uncut pilot
#

How would it go within a JS? i've never written a js with arguments

turbid tide
#

%javascript_javascriptname_arg1,arg2,{arg3placeholder}% and args[0] will return arg1, args[1] will return arg2 etc. and as you can see you can use placeholders but instead of %% you use {}

north rock
mint fable
#

^^ Sorry I'm in a game 😂

north rock
#

nvm talked to a viaversion guy, viaversion and protocalsupport dont work together on spigot anymore lmao

turbid tide
#

BUG REPORT: After I do /papi reload the /jsexpansion reload breaks and it says that I have 0 javascript placeholders and I also think that it breaks the javascript placeholders and I have to do /papi reload. I am not 100% sure it breaks the javascript placeholders tho.

jagged venture
#

hello again guys :P

sooo...... I'm configing Scoreboard-revision

with AutoSell.

#

I can't add the autosell_perm_multiplier

#

it just doesnt show up properly

#

nvm! got it working LooL

subtle surge
#
java.lang.NullPointerException: null
        at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$fetch$4(ExpansionCloudManager.java:172) ~[?:?]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot-1.12.2.jar:git-Spigot-2cf50f0-2b93d83]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot-1.12.2.jar:git-Spigot-2cf50f0-2b93d83]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_231]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]``` anyone know what is causing this? it worked fine, i installed server then i tried player and it started doing this
tender vaporBOT
#

@subtle surge

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.

subtle surge
#

wow that bot is good

trim mist
#

😄

subtle surge
#

oh wait glare while you are online, can you not reload multi economy without restarting the server?

trim mist
#

I'll be honest I haven't looked at that project in probably 6 months.

#

I've been too busy with other stuff.

#

So, the answer is.... I don't remember.

subtle surge
#

nw

#

its my new favourite plugin because i can do everything, not just multi economy but im using it for a custom prestige system too

#

🤩

trim mist
#

Really? O.o

#

I wrote it in like 3 days because I was testing something