#placeholder-api

1 messages Β· Page 82 of 1

sour laurel
#

there's no trs_rewards_available placeholder

brisk coral
#

Contact the plugin author

warm oriole
#

It's likely either removed or in a older version if any is available, and if it isn't in the expansion you'd need to contact the author to get it added and put onto the cloud so you can download it from the cloud and get it working.

bronze bison
#

Is that placeholder working @sour laurel? Can you please try it for me using the papi's parse command?
If it's working let me know and I'll add it to the wiki.

#

It could be just missing from our wiki.

sour laurel
#

one second

trim mist
#

Do you have a link to the plugin page?

bronze bison
#

Other trs placeholders are working?

sour laurel
#

yes @bronze bison

bronze bison
#

Ok then, its either not a placeholder or a broken one, contact the plugin's author to add/fix it if you want it.

sour laurel
#

understood

bronze bison
#

Well it seems that it exists in GH source code

#

Maybe not in a live update yet, contact the author anyway.

trim mist
#

I would say contact the author of the plugin.

neon tartan
#

Yeah wtf is that code

bronze bison
mint fable
#

Sadly he’s not here to question about it

#

I was going to ask the same thing @bronze bison

austere hawk
#

Anyone able to help me? I've done /papi ecloud download deluxetags, then done /papi reload but still displaying as %deluxetags_tag% in chat.

balmy marten
#

Which chat plugin?

austere hawk
#

Deluxechat

balmy marten
austere hawk
#

I've linked my spigot account πŸ™‚

balmy marten
bronze bison
#

Yeah cj, don't like that we can't contact the eCloud devs if they aren't here

#

Anyway, if wont get verified until (s)he fixes it

coral schooner
#

Will this plugin support 1.15.x or does it already?

#

I'm asking this because i'm going over all my plugins that i have and to see if they support is so i can update my server to it in the future

balmy marten
lethal breach
#

Guys, PAPI cant find my JS file, help please!

vivid sparrow
#

yes

lethal breach
#

what is wrong?

turbid tide
#

hi i just updated my luckperms expansion with the command /papi ecloud download LuckPerms

#

and then did /papi reload

#

and now none of my placeholders work

#

i tried restarting the server

#

actually not all of them just most of them

#

is this because i am only using the latest release version and not the latest dev build?

brisk coral
#

Luck kinda goofed up, since the latest expansion only supports the v5 version of lp,
I recommend downgrading the expansion

turbid tide
#

ok thanks

#

where could i find the expansions?

#

i mean where could i download them from?

brisk coral
turbid tide
#

oh found that i can do it with /papi eclodu download LuckPerms 4.1

#

thanks anyway πŸ™‚

#

everything works fine now

brisk coral
#

πŸ‘Œ

turbid tide
#

i do have another question tho πŸ™‚

#

i am using TempFly plguin

#

and every time I do /papi reload the placeholders for that plugin stop working until restarting the server

#

is this a problem with the plugin expansions ?

brisk coral
#

Try reinstalling the expansion

turbid tide
#

will do so

#

it just works from the plugin i guess

pliant fox
#

Hello i need help with PAPI i want make a playtime plugin so I have add the api and I have make that


if(cmd.getName().equalsIgnoreCase("playtime")){

            String pt = "%playtime_player% temps.";

            pt = PlaceholderAPI.setPlaceholders(p, pt);

            p.sendMessage(pt);

        }

And I have make the command: /papi ecloud download PlayTime, but in the chat that just say: %playtime_player% temps.

How can help me. Thanks for advance.

warm oriole
#

What?

pliant fox
#

Sotty I'm french πŸ˜‚

warm oriole
#

Can you speak more clearly please.

#

If you are trying to code a PlayTime plugin that won't work like that.

pliant fox
#

Ok but why πŸ˜„

warm oriole
#

Cause it wouldn't unless it's already a expansion?/

#

as you need a expansion to do the placeholders?

pliant fox
#

Just .... extends PlaceHolderAPI { ?

warm oriole
#

No?

#

what are you doing mate.

brisk coral
#

Yikes

pliant fox
#

I try XD

vivid sparrow
pliant fox
#

I have do that

#

Sorry @vivid sparrow

#

How can I make it suddenly?

final shadow
#

@turbid tide contact the dev of the plugin and tell them to check the wiki. They are missing the persist method in their expansion class and it’s being unloaded on reload

turbid tide
#

will do so

desert girder
#

When downloading LuckPerms with /papi ecloud download LuckPerms I get the internal error message. (Once reloaded) I've attempted to restart the server other than use /papi reload etc. However it's not working this only seems to be an issue when using LuckPerms... (Using Latest version of both LuckPerms & Papi)

mint fable
#

What luckperms are you on? 5 or v4.4.1?

#

"latest" it not necessarily a version number πŸ˜‰

desert girder
#

v5.0.23

mint fable
#

Try using v5.0 of the expansion

#

/papi ecloud download luckperms 5.0

#

Also, just a heads up for the next time you get an internal error message, it helps us out a lot if you check your console/log and find the error for us πŸ™‚

opal dagger
#

im running papi on my survival and skyblock servers. when i use /papi ecloud status on survival everything seems fine but on skyblock it says No cloud expansions are available at this time. even though it was working last night. a server restart did not fix the problem and both servers are hosted on the same physical server. both are running papi 2.10.4

#

what might i be doing wrong?

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.

trim mist
#

Also sometimes you just need to restart, some hosts are funky on it.

jolly haven
#

So i installed essentials x 2.17 (idk if this is relevant to papi), restarted the server and now I can't install ANY placeholder, saying i got internal error

#

Please ping me when coming up with a solution

wispy dew
#

Anyone that would like to help me plz

#

i need help really bad

warm oriole
#

With?

#

=ask to ask

#

=dontasktoask

#

=asktoask

warm topaz
#

?asktoask

tender vaporBOT
#
FAQ Answer:
warm topaz
#

smh

nocturne sky
#

How do I set Relational placeholders and normal placeholders in the same string? I'm trying to use PAPI.setPlaceholders(player, PAPI.setRelationalPlaceholders(player, another, text)) but sometimes it crashes, using RelCon

austere hawk
#

So, idk if it's me, but latest placeholderapi does not update placeholders correctly. I have a network, and it happens on multiple servers. Mainly by placeholders that has todo with numbers. Example playercount, redisbungee, tokens, coins, (my own core that includes levels) also does not update the placeholder. it only updates by rejoin. I currently downgraded back to 2.9.2 since that one works great for me.

median kite
#

Hello everyone I need some help

#

I was wondering if there is a prestige placeholder displaying what prestige the users are

bronze bison
#

@nocturne sky can you explain "crashes" please?

#

@austere hawk some expansions, like bungee and pinger have an update interval that you can change in papi's config.
And the placeholder update is up to the plugin u're using the placeholder in, like in scoreboard, you can set the update interval for the placeholders.

median kite
#

%ezrankspro_player% %ezrankspro_displayname% %ezrankspro_world% %ezrankspro_rank% %ezrankspro_rankup% %ezrankspro_cost% %ezrankspro_cost_formatted% %ezrankspro_balance% %ezrankspro_balance_formatted% %ezrankspro_difference% %ezrankspro_difference_formatted% %ezrankspro_progress% %ezrankspro_progressexact% %ezrankspro_progressbar% %ezrankspro_rankprefix% %ezrankspro_rankupprefix% %ezrankspro_lastrank% %ezrankspro_lastrankprefix%

#

No prestige placeholder @bronze bison

warm topaz
#

prestiges are in ezprestige. not ezrankspro

median kite
#

πŸ€¦β€β™‚οΈ

#

Ofc

#

common sense

#

thank you

bronze bison
#

πŸ‘

austere hawk
#

@bronze bison i am not talking about just pingers.

#

It happens by a lot placeholders that requires updating

bronze bison
#

I gave an answer about othe placeholders too.

jolly haven
#

c'mon guy please, help me

vivid sparrow
#

perhaps show the error BRUH

jolly haven
#

i'll dm you

#

not to clog the chat here

#

@vivid sparrow

vivid sparrow
#

=paste

tender vaporBOT
#
HelpChat Paste

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

jolly haven
vivid sparrow
#

Luckperms ..

#

Remove the luckperms expansion, and what luckperms version are you using?

jolly haven
#

None

vivid sparrow
#

ok, remove it at all and reload papi.

jolly haven
#

oh god ffs

#

is it possible to be because of 1.15.1 mc version?

vivid sparrow
#

I mean, remove the luckperms expansion.

jolly haven
#

i don't have any .jar files or ANY luckperms folders in the sv file

#

Nor it's expansion downloaded

vivid sparrow
#

Well, then I dont know how it would say something about the luckperms api if it isnt installed, nor the expansion is.

jolly haven
#

i'll just have to config all of it again

bronze bison
#

No you don't, double check if the LuckPerms expansion is in plugins/PlaceholderAPI/expansions folder

#

If it is, then delete it and reload papi

jolly haven
#

@bronze bison did that and fixed it

bronze bison
#

πŸ‘

limber ice
#

the luckperm expansion is only for v5

nocturne sky
#

@bronze bison it was because p2 was null at some point, it was giving NullPointerException
I rewrote it to check if p2 is null and return null instead. I don't know why it was sending null to the method

bronze bison
#

So by that, I understand from you that you have solved it?

nocturne sky
#

yes

bronze bison
#

Ok cool πŸ‘

paper sable
#

Anybody know why I get an internal error every time I download from the ecloud?

balmy marten
#

Most likely an unhappy expansion

paper sable
#

Actually it does it when I try to reload the plugin

#

Here's my whole console log

balmy marten
#

Yeah what version of luck perms do you have @paper sable

paper sable
#

I changed to pex because luck perms kept deleting perms randomly. It was being so odd

balmy marten
#

Ah, so just delete the luckperms expansion

paper sable
#

I already did that

balmy marten
#

from placeholderapi/expansion

paper sable
#

Also, DeluxeTags won't keep my new tags. Those also delete randomly

#

My servers acting wack

balmy marten
#

hastebin is being really weird for me

paper sable
#

Sure thing

balmy marten
#

ty

paper sable
#

Yw

balmy marten
#

so so the last error around like 548 is it trying to load the luck perms expansion

#

19.12 19:55:27 [Server] INFO java.lang.NoClassDefFoundError: me/lucko/luckperms/api/LuckPermsApi

paper sable
#

Oh shoot it is still there

#

I could've sworn I deleted it. I deleted a few others must've missed it

balmy marten
#

Yeah just clean up anything ur not using

paper sable
#

Any ideas as to why my player ranks aren't appearing in chat? I'm using pex and deluxechat

#

Wait pex isn't working now wtf

balmy marten
#

Which placeholder are you using in deluxechat

paper sable
#

Let me check

#

I've tried various ones

balmy marten
#
19.12 19:54:47 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml```
paper sable
#

O_o

balmy marten
#

Did someone try to edit the plugin.yml?

paper sable
#

No, I added EzRankPro but deleted it

#

That's all

balmy marten
#

that wont stop the plugin.yml of pex

paper sable
#

Oh jk it's still there

balmy marten
#

lol

paper sable
#

Idk it did that once I added EzRankPro

balmy marten
#

It should be impossible for ezranks to break another plugin's plugin.yml

#

lol

paper sable
#

Yeah idk let me restart and see

balmy marten
#

Suggest trying to clean up a bunch of the errors

#

seems you have quite a few

paper sable
#

I'll do that.

balmy marten
#

It's most likely cause you have new versions of plugins on a 1.8 server

#

could explain the invalid plugin.yml error

#

and epicspawners/spichoppers are also complaining that you have a 1.13+ version of the plugin installed

paper sable
#

It says on the plugin website it's compatible with 1.8 but the dev is literally saying she's too lazy to help me rn

#

Also I downloaded a fresh version of Pex, the same version and everything and it's still not working.. O_o

balmy marten
#

Where are you downloading pex from?

#

Cause it looks like PermissionsEx v1.23.3 was the last 1.8 supported build

paper sable
#

Bukkit

#

I was using 1.23.3

warm oriole
#

You should delete the jar and reinstall it

#

As there’s no way another plugin can interfere with another plugins plugin yml

wispy dew
#

anyone that would like to help me?

tender vaporBOT
#
FAQ Answer:
wispy dew
#

my killstats plugin doesnt display on the scoreboard

#

can have a look at my code

austere hawk
dreamy hull
#

hey

#

I am having issues with PAPI and LuckPerms Expansion

#

I am using latest PAPI and LP

#

and I got error when I reload the plugin

turbid tide
#

try downgrading the LP expansion

#

do /papi ecloud download 4.1

#

sorry /papi ecloud download LuckPerms 4.1

#

and /papi reload

dreamy hull
#

I will try

#

oh Ty

#

it works

#

btw

#

We have some custom placeholders via javascript expansion

#

and those placeholders doesnt work tho

turbid tide
#

are you sure you used the placeholder right?

dreamy hull
#

it worked at old server

turbid tide
#

did you change your server version?

dreamy hull
#

``var name = "%superior_island_name%";

function getName() {
if (name === " " || name === "" || name === "None") {
return "&cβœ–οΈ";
}
return name;
}
getName();``

#

no

#

but I updated all plugins

turbid tide
#

idk rly know what the problem could be i am not rly used with javascript

dreamy hull
#

ok

#

wdym

bronze bison
#

Dont use the symbol itself @dreamy hull, use it's unicode return "&c\u2716";

#

But if u didn't find that symbol there, just google <The symbol> unicode

dreamy hull
#

ok

#

but it worked before

#

so idk

bronze bison
#

Well, from my experience with js expansion, it doesn't all the time

#

It could be because of different java version, not sure.

dreamy hull
#

still doesnt work

bronze bison
#

Any errors? What it returns?

dreamy hull
#

it returns norhing

#

just %placeholder%

#

:/

meager vault
#

Hey !

Thers is a way to use "%player_has_permission_<permission>%" and return a configured message instead of "yes" and "no" ?
But without changing "yes" and "no" in placeholderAPI config as it would broke any other placeholder that use yes/no :/

alpine anvil
#

javascript placeholders

meager vault
#

Yeah, that's why I thout :(
unfortunately I'm a noob with javascript 😦

alpine anvil
#

u have a dev?

meager vault
#

not really :/

#

aBooDyy help me sometimes but he's busy with exams so I won't ask him ^^

alpine anvil
#

what do you want it to display?

dreamy hull
#

and I have problems with JS

#

JS Placeholders doesnt work for me

#

Β―_(ツ)_/Β―

alpine anvil
#

how they dont work @dreamy hull ?

dreamy hull
#

We normally created some placeholders

alpine anvil
#

how are you using the placeholder?

dreamy hull
#

but when we try to use them

#

they doesnt show up

#

it just looks like %javascript_placeholder%

alpine anvil
#

did you put the file in the javascript_placeholders.yml?

meager vault
#

instead of true "&8[&aβœ”οΈ&8] &a&lAtteint
instead of false &8[&c✘&8] &c&lNon atteint

dreamy hull
#

yea

#

it worked before

#

but I just created a new server

#

and updated plugins

#

and it doesnt work

alpine anvil
#

@meager vault thats just a basic if else statement, you said you are a noob means you already tried js?

dreamy hull
#

ok aBooDyy helped me

#

everything is fine now

alpine anvil
#

what was the problem?

meager vault
#

I saw some javascripts but for no I really don't have time to learn it ( but in some months I'll learn some things to create little javascripts ^^ )

dreamy hull
#

When I was converting those files into a new server

#

I forgot to register those placeholders in js_placeholders.yml

weary nymph
#

Hello, i have a question. When is been updated on 1.15?

alpine anvil
#

what plugin @weary nymph ?

#

i told you to check it Larkyy

weary nymph
#

I am on placeholder-api room, so, for placeholderapi πŸ™‚

alpine anvil
#

oh xD

weary nymph
#

Do you know when?

#

:\

alpine anvil
#

there is dev build

#

check pins

weary nymph
#

Uuu

#

Thanx

alpine anvil
#

np

dreamy hull
#

is here someone who can make me a placeholder via JS?

#

I dont want something hard

#

I want to make something like:
When you are at your island you will have Personal Island Scoreboard
When you are at someones island you will have Scoreboard with informations about the island
And when you are at spawn you will have scoreboard with main informations

#

sorry for my english tho

alpine anvil
#

but you would have to change all the scoreboard @dreamy hull right?

dreamy hull
#

I am using featherboard

#

and there is an option to change scoreboard via placeholder

alpine anvil
#

ooo

dreamy hull
#
#                        this method can be very intensive for certain non cached
#                        placeholders.
#                        It will look for scoreboardname.yml files matching the result
#                        of the placeholder.
#                       Replace "*" with an actual placeholder (ex. "PLACEHOLDER:{isflying}" )
#                        KEEP IN MIND: Fast switching scoreboards is not a good thing.```
#

do you think you can make the placeholder?

alpine anvil
#

well its also a simple if else that you already have made in the previous js placeholders, but you would have to get the checks correctly

#

you using which skyblock? askyblock?

dreamy hull
#

SuperiorSkyblock2

meager vault
#

What about me ? :/

dreamy hull
#

what do you want to make?

meager vault
#

Use "%player_haspermission<permission>%" and return a configured message instead of "yes" and "no"

instead of true "&8[&aβœ”οΈ&8] &a&lAtteint
instead of false &8[&c✘&8] &c&lNon atteint

dreamy hull
#

ok

#

I will try to look into it

alpine anvil
#

hmm i dont think there is a placeholder for knowing if the user is member of the island or no

#

wait what is this %superior_island_exists%?

dreamy hull
#

yes there is

alpine anvil
#

try parsing it on user who is in an island and a member of it

dreamy hull
#

Ik how

#

look

alpine anvil
#

then you've got what you need to make the placeholder

dreamy hull
#

superior_island_location_leader

#

this would be the placeholder

#

and it will compare with superior_island_leader

alpine anvil
#

have you tried doing it?

dreamy hull
#

if superior_island_location_leader === superior_island_leader
he is at his island

#

I will try

alpine anvil
#

thats only if hes the leader tho

dreamy hull
#

yep

#

it works

alpine anvil
#

islands can have different members

dreamy hull
#

no

#

it works differently

alpine anvil
#

oh ok

dreamy hull
#

superior_island_leader will show a leader of island where you are member

#

and superior_island_location_leader will show a leader of island where you are standing

alpine anvil
#

oh yeah

dreamy hull
#

@meager vault ```var members = "<your placeholder here>";

function getMembers() {
if (members === "false") {
return "No";
}
if (members === "true") {
return "Yes";
}
return members;
}
getMembers();```

#

oh

#

wait

#

I will change it

#

xD

meager vault
#

πŸ˜‚

dreamy hull
#

function getPermission() {
  if (permission === "false") {
    return "No";
  }
    if (permission === "true") {
    return "Yes";
  }
  return permission;
}
getPermission();```
#

like that

brisk coral
#

You could simple that down further

#

Way down

meager vault
#

thanks a lot πŸ˜„

dreamy hull
#

I am noob in it

#

but it works

#

xD

brisk coral
#

That it does

dreamy hull
#

it is my first script

#

lol

#

xD

brisk coral
#

Also no need for the last return permission;

dreamy hull
#

oh ok

#

I really dont know how

brisk coral
#

It's a boolean so it has only 2 return types

dreamy hull
#

I am only able to make some in Batch

#

xDDDD

#

@alpine anvil so will you be able to make it? πŸ˜›

#

or? ^^

brisk coral
#
var permission = "<your placeholder here>";

function getPermission() {
  if (permission === "false") {
    return "No";
  }
    return "Yes";
}
getPermission();
#

Try this anyhow

alpine anvil
#

you failed doing it @dreamy hull ?

dreamy hull
#

I dont know how to make it lol

#

I never did anything in JS

#

xD

alpine anvil
#

you just did above

dreamy hull
#

ah

#

but It needs to make more checks

#

and it will return 3 values

#

Personal
NotPersonal
Spawn

#

and maybe PVP tho

#

we can make it via Regions

#

if is it possible

#

yea worldguard has placeholders

#

and I really dont know how to make it

alpine anvil
#

you could use switch statement

dreamy hull
#

idk what even it is

#

xD

#

it will check 2 placeholders

#

%worldguard_region_name%

#

and

#

%superior_island_location_leader%

#

I mean var

meager vault
#

I set ```
var permission = "player_has_permission_test";

function getPermission() {
if (permission === "false") {
return "Notest";
}
return "Yestest";
}
getPermission();```
and when I do /papi parse me %player_has_permission_test%
And it returns "yes"

dreamy hull
#

πŸ€”

#

weird

meager vault
#

Same with ```
var permission = "player_has_permission_test";

function getPermission() {
if (permission === "false") {
return "Nott";
}
if (permission === "true") {
return "Yettts";
}
return permission;
}
getPermission();```

#

any idea ? Did I make something wrong?

alpine anvil
#

replace false with no and true with yes

meager vault
#

same

alpine anvil
#

did you reload papi

meager vault
#

Yes

#

function getPermission() {
  if (permission === "no") {
    return "Nott";
  }
    if (permission === "yes") {
    return "Yettts";
  }
  return permission;
}
getPermission();```
Is it right ?
vivid sparrow
#

no

#
function hasPermission() {
    return BukkitPlayer.hasPermission('test.permission') ? '&aYes!' : '&cNo.';
};

hasPermission();```
meager vault
#

Thanks I'll try πŸ˜„

#

Is it still "%player_has_permission_test.permission%" the placeholder ?

vivid sparrow
#

No, it's %javascript_FILE NAME%

meager vault
#

Thanks, sorry I didn't start learning javascript ^^

dreamy hull
#

xD

#

I didnt know he was using other placeholder

meager vault
#

πŸ˜‚
I'm bad x)

brisk coral
#

@vivid sparrow that's what I was looking for

vivid sparrow
#

πŸ™‚

summer vortex
#

I'm currenlty making a bedwars server to play with my friends on and placeholder doesn't seem to work can someone tell me what I'm doing wrong
(I'm using the plug in bedwars1058)

#

plugin*

#

nvm ill continue googling

#

message me if u have an answer

warm oriole
#

what?

#

you didn't given someone the chance to answer.

#

Check if that plugin has the ability to hook with PlaceholderAPI.

#

If it doesn't work contact the developer of the plugin for help.

summer vortex
#

thx sorry I'm impatient

#

oh and I figured it out

#

I had an outdated version of protocol lib

#

thx anyway @warm oriole

static crescent
#

I keep getting errors when i reload Placeholder-API

mental night
#

Show console log

#

=pasts

#

=paste

tender vaporBOT
#
HelpChat Paste

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

static crescent
#

=paste

tender vaporBOT
#
HelpChat Paste

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

warm oriole
#

@static crescent your supposed to click HelpChat Paste and put your error there if you haven't solved it and put the link here so we can see the error.

static crescent
warm oriole
#

The issue is LuckPerms version.

#

Either downgrade the expansion or download a dev build of the new LuckPerms.

#

As it's a issue with the plugin not have a jar to install with.

static crescent
#

Thanks

humble summit
#

Has it been updated to 1.15? I see in the github it was but I dont know how to use it since it isn't a jar? Any link to a 1.15 dev build?

turbid tide
#

@humble summit check the pinned message

turbid tide
#

or that πŸ™‚

humble summit
#

ty

woeful valve
#

Hello, i have a problem with /papi ecloud, when i download the placeholder of vault (with /papi ecloud download Vault) and i reload (/papi reload), the plugin say "0 placeholder hooks successfully registered", so the plugin don't register Vault, why ?

turbid tide
#

have you tried to see if it works tho?

woeful valve
#

yes, and it's not work

warm oriole
#

@woeful valve Do you have the plugin Vault?

woeful valve
#

Yes

warm oriole
#

and a economy plugin like Essentials?

#

installed.

#

as you need to have vault's dependencies so that enables so that the placeholders can wnable.

woeful valve
#

no

warm oriole
#

well that's your issue

#

you need a economy plugin for vault to work.

#

and you need vault enabled for the placeholders to enable.

woeful valve
#

It's work, thank you very much

warm oriole
#

No problem.

#

If you have any other issues with PAPI with a placeholder just put your error in this channel.

vague pine
#

i don't really know why i keep getting this error 😦

tender vaporBOT
warm oriole
#

@vague pine Get a dev build of Luck Perms, or downgrade the expansion.

#

As the latest expansion doesn't work with the latest Luck Perms.

#

@heavy hull when you going to fix your expansion issue.

surreal raptor
#

Can I get linked to the 1.15 version of papi please?

#

Not on spigot

trim mist
surreal raptor
#

We actually needed the build for chat injector

#

Dev build works with chat injector thanks glare :)

trim mist
#

Sounds good!

#

Just an FYI, that's build on 1.15, I'm going to push another build for 1.15.1

surreal raptor
#

Okay will that be today?

trim mist
#

It'll be about 30 seconds.

surreal raptor
#

Okay awesome!

surreal raptor
#

Perfect well update now and let you know if we get any issues :)

trim mist
#

Sounds good!

heavy hull
#

@warm oriole as far as I know it's not broken

trim mist
#

If you're referring to the latest version of the LP Expansion (at least when I checked a week ago) people were still having issues with it.

#

The main thing being (again, still, the last time I checked, you haven't released LP 5 yet) is that the expansion is using LP 5 and people tend to download from the SpigotMC site.

heavy hull
#

Ah right

#

Well it's in beta at the moment (not on Spigot)

trim mist
#

To the point where we were getting a solid 10 people in here daily with the issue.

heavy hull
#

I got complaints when the newer version wasn't on eCloud

trim mist
#

Yeah, that's why we just redirect them to the https://luckperms.net website

#

Another option would be to offer the beta expansion (for LP 5) wherever you offer beta LP5 and then keep the regular live on the eCloud.

heavy hull
#

Or maybe an expansion that supports both :p

trim mist
#

It's not really the end of the world for whichever option you choose, there's just been a big influx of players complaining about it not working.

heavy hull
#

I'll see what I can do

trim mist
#

That would also be a best-of-both-worlds outcome.

#

Thanks.

neon tartan
#

Never had this issue on pex thonking Boost

mint fable
#

because pex doesn't update stuff πŸ˜‚

neon tartan
#

Hahaha

#

In fairness it does

#

On the repo

mint fable
#

oh?

#

interesting

trim mist
#

It's in production again, yes.

neon tartan
#

Yeah the repo is updated often, I love it πŸ₯°

vivid sparrow
#

Meh

warm oriole
#

Gaby is anti-pex.

#

Gaby is all for group manager.

mint fable
#

i love group manager

vivid sparrow
#

Meh

#

Tbf pex isnt that bad but I wouldnt go back to it.

shell copper
#

where does the maven paste go for importing to project

#

actually before I even install it

#

for PAPI, it will make NMS easier to use across versions, right?

trim mist
#

Depends what you're trying to do.

shell copper
#

Im trying to add metadata to an itemstack

#

or do you not even need NMS for that?

trim mist
#

Not entirely sure if I'm being honest, not sure how that exactly applies to PlaceholderAPI, but I think there might be something in the Spigot Javadocs for it.

shell copper
#

alright. Its just that in previous attempts at editing block meta to make custom blocks easier to deal with, I thought NMS was required. Maybe Im remembering wrong.
I may be back if thats the case lol

trim mist
#

Alrighty!

shell copper
#

I lied I meant NBT data, which Im damn sure requires NMS

#

does PAPI offer NBT support with itemstacks and blocks?

trim mist
#

PAPI is just a framework for parsing strings from data, you'd have to create whatever you're trying to do yourself.

shell copper
#

ah I see

#

I thought there was a plugin that dealt with NMS across versions

vivid sparrow
#

Use the NBT Api.

trim mist
#

There might be, but it's not PAPI.

shell copper
#

oh dang, thanks gaby, thats exactly what Im looking for

vivid sparrow
#

😁

fervent moon
#

hey

#

...

#

so

#

hey

vivid sparrow
#

Hey Rhodless.

fervent moon
#

in my intellij

vivid sparrow
#

Also, I suggest to use maven or gradle.

fervent moon
#

ok

vague pine
#

i just updated luckperms to v5.0 and my issue is gone, thank you kylematzen πŸ˜„

trim mist
#

πŸ‘

vague pine
#

πŸ‘

trim mist
#

Dev Build Release

For those already on 1.15.x, here's a copy of PlaceholderAPI compiled under 1.15.1.

Not much different than the current release on SpigotMC but apparently the ChatInjector resource that some people use with PlaceholderAPI was throwing a fit since the current release wasn't compiled under 1.15.

icy moth
#

Anyone else having issues with Jobs Reborn not liking the PAPI "DEV-83" string within the actual plugin?

warm oriole
#

Is it in the plugin-name on startup?

#

like when it's loaded in*

icy moth
#

Yes, if you are referring to when placeholderAPI is loaded in

warm oriole
#

is it just PlaceholderAPI

#

Is there a error in console or wut.

tender vaporBOT
warm oriole
#

cause it's in a numberformatexception

#

@trim mist can you remove the dev and - from the version name so it doesn't bug out with PAPI when you get a chance.

neon tartan
#

Oh I reckon I know why, that plugin must strip the other stuff

warm oriole
#

as it looks like it's causing a bug with jobs reborn due to the fact of a numberformatexception.

trim mist
#

The jar name doesn't matter.

warm oriole
#

it's in the version?

#

ain't it.

neon tartan
#

^

#

From what it seems

warm oriole
#

not the jar name.

icy moth
#

Jar name doesn't matter

warm oriole
#

I'm thinking Jobs Reborns grab the version name.

neon tartan
#

And that plugin is trying to strip the other data and keep the variables

icy moth
#

Its the version number that is passed to Jobs

neon tartan
#

So 1.1.1 would be β€œ111”

#

To jobs

#

But it can’t strip the other stuff

warm oriole
#

as it's a word and other characters disallowed.

neon tartan
#

Yeah

trim mist
#

Shouldn't Jobs be better at that stuff then? They should assume you might be using a development build of a plugin and shouldn't crap it's pants when it finds something it doesn't like.

neon tartan
#

Yeah just checked his error log

#

β€œ2101-DEV-B8” it got the first bit

#

But it didn’t like the ending

#

So it couldn’t pass as a number

icy moth
#

I agree Jobs should fix also.

trim mist
#

I mean you can manually just edit the plugin.yml for the time being.

warm oriole
#

Likely, should Glare but can't do too much about it unless the user contacts the Job author.

neon tartan
#

Tho jobs should be better handling

#

Than just relying on that

trim mist
#

It's just a single plugin getting upset, not that much of a priority to change it for everything.

warm oriole
#

true tbh.

#

I'm just mentioning in case if any other people came in here asking about it.

#

with other plugins (doubt there would be or similar errors)

trim mist
#

If more people have the issue, I'll re-upload with it fixed, but it is something he can fix too by just changing the version in the plugin.yml

icy moth
#

I will just edit the plugin.yml, but I would love to see a fix pushed as well. I think someone brought this up with the Jobs Reborn dev as well. So hopefully they can do a better job of handling different inputs as well.

trim mist
#

Not sure if I can push a fix, since it would break the system, but I could probably just make another pin later with an updated version jar.

austere hawk
#

is there sb experienced with the "pinger expansioN" for papi?

#

%pinger_isonline_testplugins.com:25565%

#

Citybuild&7: %pinger_isonline_Lunarsky.de:21000% is not working, the server is online and all necessary expansions are installed

warm oriole
#

what scoreboard plugin?

#

as it could be your scoreboard plugin not papi.

austere hawk
#

/papi reload returning the following
"An internal error occurred while attempting to perform this command" ?

balmy marten
#

Go grab the error it spits out in console

austere hawk
#

I'm assuming this is what you're after. ( coppied it all, error on line 9 & 10?

balmy marten
#

Yeah either update luckperms to the latest dev build or downgrade the expansion

austere hawk
#

what do you mean downgrade the expansion?
I will upgrade to latest dev build but just asking for future reference.

balmy marten
#

Latest one is for the v5 of luckperms only

austere hawk
#

Thank you so much for helping me funnycube. Somehow I had a EXTREMELY old version on LuckPerms!

balmy marten
#

Oh that's no good. πŸ˜‰

austere hawk
#

Worked like a charm! You're an angel! ❀️

buoyant hedge
#

My bungee placeholders won't work on my Hub server, does my front-end bungee cord server need placeholderapi for it to work?

#

I did download the expansion on my hub and the servername is good.

warm oriole
#

how are you using it.

#

and what scoreboard plugin or whatever you are using it on.

buoyant hedge
#

Using it on my offline hub server.

#

On a plugin that supports papi?

#

Other placeholders work just not that one.

#

%bungee_<server>%

mint fable
#

what exact placeholder are you using?

#

are you literally using %bungee_<server>%?

#

or are you using %bungee_hub%...

buoyant hedge
#

%bungee_ember% which is the server name

#

Side note, %bungee_total% doesn't work either.

median kindle
#

I wanted to ask if is there a counter available

sudden jetty
median kindle
#

Like, %javascript_counter:{island_level}=3,{exp_level}=50% if you complete each placeholder it will add one to the output, like if you complete the island level one it will say 1, if you complete these two it will say 2

sudden jetty
#

It just breaks on /papi reload

junior musk
#

Willmaster04 what's your LuckPerms version ?

sudden jetty
#

I don’t 4.4.1

#

4.4.1

junior musk
#

check the Jenkins link on it's plugin page

sudden jetty
#

Ok thanks

gilded relic
#

is it possible to do something like

#

%online% - %protocolvanish_vanished_player_count%?

#

have it minus the amount of players in vanish so player count will exclude vanished players?

#

oooo

brisk coral
#

Use math

gilded relic
#

thx

gilded relic
#

rip

#

I did maths wrong

#

%math_{online}-{protocolvanish_vanished_player_count}%

#

^ That should work right?

junior musk
#

where does %online% comes from ?

#

it's not a valid PAPI placeholder

#

it's %server_online%

#

so replace in your expression {online} by {server_online}

gilded relic
#

hold up

#

I think I'm dumb

#

1 sec

#

server_online still didn't fix it

#

but wtf did I use before

junior musk
#

did you download the ProtocolVanish and Server expansions ?

gilded relic
#

I could've swore I used %online%/%online_max% and it worked

junior musk
#

those placeholders are probably integrated in the plugin you are using

gilded relic
#

how to remove decimals

#

actually I could use {bungee_hub}

#
  • {protocolvanish_vanished_player_count}
junior musk
#

add [precision:0] at the end of the placeholder

#

or 1 I don't remember

gilded relic
#

precision 0 at the end of %math_%

junior musk
#

before the last %

gilded relic
#

k

#

ayyyyy

#

thx ❀️

junior musk
#

πŸ™‚

gilded relic
#

wait

#

the playercount isn't updating when I set the delay to 100 in ticks

#

which is 5 seconds

brisk coral
#

Are you talking about the placeholders refresh rate inside papi config?

median kindle
#

Frosty

#

Are you able to answer a question?

brisk coral
#

Deends on the question

#

Depends

gilded relic
#

so I got this in the config for papi

#

bungee: check_interval: 30

median kindle
#

So

gilded relic
#

so I would add

brisk coral
#

Set it to 5

median kindle
#

It’s about a counter placeholder or something alike.
Like, %javascript_counter:{island_level}=3,{exp_level}=50% if you complete each placeholder it will add one to the output, like if you complete the island level one it will say 1, if you complete these two it will say 2

brisk coral
#

I mean you can make that using javascritp

median kindle
#

How?

brisk coral
#

JavaScript

median kindle
#

Like adding +1?

#

But how?

brisk coral
#

Just return a specific number depending on completion

gilded relic
#

do I need to add one for protocolVanish like
protocolvanish: check_interval: 5
?

brisk coral
#

No

gilded relic
#

hmm

#

it's still not updating

#

weird

median kindle
#

And how can I make that? mhm hahah

gilded relic
#

i'm confused

#

with the %math_{bungee_hub}-{protocolvanish_vanished_player_count}[precision:0]%

#

it only ever updates the playercount when I do /papi reload

#

and then it's static

brisk coral
#

Where are you using the placeholders?

#

@median kindle Can't help you with that since I'm on mobile

gilded relic
#

I'm using them in a player count

#

do you want me to send you line of code

#

Title: "&d&lShortFangMC &7(%math_{bungee_hub}-{protocolvanish_vanished_player_count}[precision:0]%/%online_max%)"

brisk coral
#

'In the player count' A certain plugin or have you just written it down on paper..

gilded relic
#

if your asking about {protocolvanish_vanished_player_count} i'm using protocolvanish with /papi ecloud download ProtocolVanish

#

i'm a bit confused sorry if that's not what your asking

#

oh I'm using DeluxeHub for the scoreboard and stuff

#

any idea what the issue is?

#

sorry for bugging you guys I just am unsure what I am doing wrong

buoyant hedge
#

The bungee placeholders still don't work.

#

%bungee_total% nor %bungee__<server>% work, however I did download the expansion.

junior musk
#

and did you reload papi after Sticks?

buoyant hedge
#

I restarted the server 10 times.

#

Since I asked this yesterday and no one helped out. qq

junior musk
#

Jordan, Frosty asked in what plugin are you using the placeholder, for example in a Tab plugin or a Scoreboard plugin?

#

Sticks does it show in /papi list?

gilded relic
#

I said I'm using it with DeluxeHub

buoyant hedge
#

Yes and I it's in PlatinumHubCore.

gilded relic
#

PlatinumHubCore hmmm

buoyant hedge
#

Other placeholders do work, just not that one.

gilded relic
#

lol DeluxeHub has a lot of the same features

buoyant hedge
#

and?

gilded relic
#

it's interesting

#

that is all

junior musk
#

can you send me your config in dm Jordan?

buoyant hedge
#

Anyways, hub server is running on offline mode on paperspigot.

gilded relic
#

The DeluxeHub config?

junior musk
#

yes

gilded relic
#

k

buoyant hedge
#

I've seen multiple servers make their Hub out of PaperSpigot and their placeholders work.

#

Does my front-end bungeecord server need to have papi for it to work, is their a cross-server dependency for this?

gilded relic
#

not afaik

#

I don't have papi on bungeecord

#

or anything like papi on bungeecord

#

and bungee expansion works

junior musk
#

nope there isn't =(

#

Sticks can you try with /papi parse?

buoyant hedge
#

let me try.

#

Yeah it works.

#

/papi parse me %bungee_total%

#

Weird.

#

I'll take it up the the plugin developer, it has to be on his side.

#

If not does anyone know how to create time counters, I've seen multiple servers do: AGE: xW xD xH xS I never knew how to do it, anyone got an idea?

warm oriole
#

Get a custom plugin made for it

#

It’d require you to hire someone to make it where each server has a plugin to count the timing or a plugin on bungee to count the update of all the servers while up

vivid sparrow
#

We can probably add it to the server expansion, we already have a countdown placeholder.

median kindle
#

Can someone help with javascript

#

It’s about a counter placeholder or something alike.
Like, %javascript_counter:{island_level}=3,{exp_level}=50% if you complete each placeholder it will add one to the output, like if you complete the island level one it will say 1, if you complete these two it will say 2

buoyant hedge
#

@vivid sparrow I saw that only, on theirs, it counts up.

tender vaporBOT
#

@buoyant hedge

Hey,

Please be patient and don't ping staff members!

buoyant hedge
#

I am I am, just replying to what he said.

chrome hawk
#

I'm using version 1.8, help plz

warm oriole
#

did you download the expansion?

#

Player?

#

and reload or restart the server

#

/papi ecloud download Player

#

/papi reload

chrome hawk
#

ooo

#

thanks

warm oriole
#

@chrome hawk by the way don't message me privately for help.

austere hawk
#

Hello

#

how does one check what version of minecraft a version for what version of expansion?

#

supports

#

someone told me because we run 1.13.2 it could be why the deluxe chat isn't working

warm oriole
austere hawk
#

sure

warm oriole
#

We won't help you without providing that you have bought DeluxeChat.

#

Then you'll get help in the private chat for DeluxeChat.

austere hawk
#

done

severe coral
#

will PAPI 2.10.4 work with 1.15.1?

warm oriole
#

@severe coral Glare released a beta version.

#

Not on spigot.

#

Check the pins of this channel.

severe coral
#

awesome, ty

warm oriole
#

It's only a dev build though

#

Just as a reminder.

severe coral
#

understood

vagrant mirage
#

Hello! Im running a 1.14.4 Spigot server using P-API v.2.10.4 and when I try to download the Servers expansion from the ecloud it says no expansions are available... is there a way to fix this?

brisk coral
#

Manually download it from the ecloud,
It just means your server/firewall is blocking the connection

vagrant mirage
#

It grabbed the players one just fine though .-. why would it block one but not the other?

trim mist
#

We can't really say, all hosts are different.

#

Some of them freak out over the smallest things.

trim mist
bronze bison
#

Should be yes, but didn't really understand what he meant by his latest reply. @trim mist

trim mist
#

Me neither. If you're confident it's tested, feel free to merge to master and post in the eCloud.

bronze bison
#

Of course it's been tested before opening the pull request, and probably used by the person who reported the issue. Will do later, on phone for the next few days.

gloomy crater
#

when I type /papi parse me %statistic_kill_entity:ender_dragon% it says it is an invalid entity parameter, anyone knows what the right one is? the spigot entity list also says ender_dragon

brisk coral
#

Use _ instead of :

gloomy crater
#

kill_entity:blaze and all that does work, and when I change the : for _it says invalid stat

#

/papi parse me %statistic_kill_entity_ender_dragon%

brisk coral
#

Ah

#

Try dragon then

#

Or enderdragon

gloomy crater
#

tried everything, no luck

#

weird

junior musk
#

try with EnderDragon (maybe it's case sensitive ?)

gloomy crater
#

nope D:

junior musk
#

=/

gloomy crater
#

nor does end_dragon

junior musk
#

then....

#

then everything in caps ?

gloomy crater
#

nope

bronze bison
#

Spigot version?

#

@gloomy crater ^

gloomy crater
#

1.12.2

bronze bison
#
/papi ecloud download Statistic 1.7.0
/papi reload

And use %statistic_kill_entity_ENDER_DRAGON%

#

It should work.

gloomy crater
#

that works, but now %statistic_MOB_KILLS% doesnt work...

#

is there a list with versions and suported placeholders for that version?

#

oh w8 nvm

vivid sparrow
#

1.7.0 is for 1.12.2 and older

gloomy crater
#

yea

#

looks like we had version 1.9.2 instead of .7

bronze bison
#

That isn't a placeholder in 1.9.2 nor in 1.7.0, you have to use Math expansion to get the total of the mobs you want.

gloomy crater
#

it worked before..

bronze bison
#

Hmm, don't remember that any version had it.

gloomy crater
#

"Supports all statistics in SpigotAPI. %statistic_<StatisticType>%"

#

and one of the types is MOB_KILLS

bronze bison
#

Ooh really

#

Thats good :p

#

Thats for the latest version tho

gloomy crater
#

ouch, that explains it

vague pine
#

i can't using [console] to open a menu for players 😦

#

if you can add [op] for deluxemenus that will be very cool

#

i can do many so things with it πŸ˜„

vivid sparrow
#

nope

#

and you use [openguimenu]

vague pine
#

but why if i don't have require permission to open that menu? ~~"

vivid sparrow
#

wot

junior musk
#

then give the permission lol

vague pine
#

...

#

i just want players can open the menu but with specified NPC

#

that will be more fun for some features

junior musk
#

maybe try to give the permission from the console before openning the gui, then after you remove it

vague pine
#

if i do many of that, do the plugin lag my server?

#
    left_click_commands:
    - '[console] lp user %player_name% permission set nganhang.goibac.spawn'
    - '[openguimenu] goibac<delay=10>'
    - '[console] lp user %player_name% permission unset nganhang.goibac.spawn<delay=15>'
brisk coral
#

Unless you've got hundreads of players executing it at once yes, otherwise no

vague pine
#

Ok thank you, i'll do that, but still hope you will make another way πŸ˜„

brisk coral
#

What..

#

If you're talking about adding [op] the answer is no and will always remain a No.

limber ice
#

OK placeholders are broken for HolographicExtension-1.10.7, is it the plugin or ProtocolLib-4.5.0-20191214.220133-7-#436. Does any one know which plugin dev I should be bugging yo get this fixed?

junior musk
#

I think it should be to HolographicExtension dev

vague pine
#

i think i got some issue with Economy Bank plugin ~~"

  'rut100000-1':
    material: BOOK
    data: 0
    slot: 10
    priority: 1
    display_name: "&6RΓΊt 100000 Đồng BαΊ‘c"
    lore:
    - '&f%economybank_balance%'
    - ""
    - "&e⊳ NhαΊ₯n để rΓΊt bαΊ‘c!" 
    view_requirement:
      requirements:
        money:
          type: javascript
          expression: '%economybank_balance% >= 100000' 
#

i already had 10000 money in my bank but i can't view the menu

#

i don't get it

junior musk
#

wait no

#

wait

vague pine
#

Ok

junior musk
#

view_requirement: requirements: money: type: >= input: '%economybank_balance%' output: '100000'
do this

vague pine
#

Ok i'll try, thank you πŸ˜„

#

still not work ~~"

#

i think that's because the placeholder

junior musk
#

did you download the expansion ?

#

and does it show in /papi list ?

vague pine
#

i think that plugin don't have any expansion ~~"

junior musk
#

oh lol

bronze bison
#

/papi parse me %economybank_balance% what does it return?

vague pine
#

135,660.54 ~~"

#

i think that's because money format

junior musk
#

probably

bronze bison
#

Yeah.

#

Is there another placeholder that returns the number without the , and .xx

#

?

junior musk
#

it's the only one on PAPI wiki

vague pine
#

i'll tell this issue to Economy developer to change the format πŸ˜„

bronze bison
#

Try this ```yaml
view_requirement:
requirements:
money:
type: javascript
expression: 'parseInt("%economybank_balance%".replace(/,/g, "")).toFixed() >= 100000'

vague pine
#

@@

#

Wow, thank you very much πŸ˜„

#

i'll try now

#

thank you very much, its working πŸ˜‚

leaden depot
#

I've been working with custom javascript expansions, but the outputs are a bit buggy when more players are online

#

It seems to flicker between both player's outputs

warm oriole
#

explain what you mean by 'buggy"?

cyan meadow
#

Hello %bungee_total% isnt showing in my featherboard?
I installed the ecloud to papi

trim mist
#

I believe it would be {placeholderapi_bungee_total} if you're using FeatherBoard.

brisk coral
#

Have you also reloaded papi?

leaden depot
#

@warm oriole I literally explained it the next line

warm oriole
#

@leaden depot that barely explains it that it switches between two outputs, I have no idea what you mean and you don't even show any of the code you are using.

leaden depot
#

You didn't ask for that though. But I can show you some code

warm oriole
#

stop tagging me

leaden depot
#

Your notifications are really slow

#

I have that sound disabled

#

Maybe a tip

brisk coral
#

:>

leaden depot
#

Lol sorry I am messing around. I don't really see why I can't tag you, it's made for replying if somebody is not there. But I'll happily obey your request

#

It's worse if you send a message first, and then literally 3 minutes later a tag alone

sudden jetty
#

I get an error when running /papi ecloud placeholders Player

vivid sparrow
#

yes

sudden jetty
#

huh

turbid tide
#

paste the error so they can help you

#

=paste

tender vaporBOT
#
HelpChat Paste

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

sudden jetty
vivid sparrow
#

We are aware of that.

sudden jetty
#

Oh ok

#

Any eta on it being fixed?

vivid sparrow
#

When papi3 will be released

trim mist
#

Never knew that error existed.

vivid sparrow
#

nvm then :))

#

it never worked tbf

trim mist
#

What's he trying to do?

vivid sparrow
#

>/papi ecloud placeholders Player

#

guess it get confused on placeholders that require an argument

#

as the error say "unknown enchantment"

trim mist
#

Interesting

#

Oh yeah cause it tries to parse them all

#

Forgot about that

vivid sparrow
#

xd

#

guess we can rewrite our expansions and return smth if an argument isnt passed

trim mist
#

I'll make an issue for it on v3 so we know to avoid it

#

Or maybe Glare will do that idk

vivid sparrow
#

yea tell glare to do it

bronze bison
#

You already know, remember when we talked my pull request that fixes it Glare

#

There's currently an open issue about it in papi2 repo

heady axle
#

@ me if you reply ❀️

mint fable
#

seems like that's mvdw placeholders

#

@heady axle

vivid sparrow
#

^

zinc epoch
#

ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion
25.12 04:10:42 [Server] ERROR [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
25.12 04:10:42 [Server] ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.FactionsExpansion
25.12 04:10:42 [Server] ERROR [PlaceholderAPI] com/massivecraft/factions/iface/RelationParticipator

heady axle
#

@mint fable Iv latest MV installed though

tender vaporBOT
#

@heady axle

Hey,

Please be patient and don't ping staff members!

lapis frost
#

Hello I was wondering is there a way to print out a number of people who have a permissions and not list names?

#

e.g. Staff Online: 9

brisk coral
#

use javascript

lapis frost
#

how would I write it? I'm new to JavaScript

gleaming charm
#

@lapis frost so is the for a plugin or what?

lapis frost
#

it's for a scoreboard thing

gleaming charm
#

So can you code or not is my question as it makes it easy or difficult

lapis frost
#

I've never written in Javascript I've done HTML and CSS also some basic PHP

gleaming charm
#

Plus is i think placeholder api can help you out with that

#

Well plugins are typically Java based JS is at least when I use it for discord bots

#

although that’s really lose you can of course use js for servers

vivid sparrow
#
function playersWithPermission() {
    if (args.length == 1) {
        var count = 0;
        var player;

        for (player of BukkitServer.getOnlinePlayers()) {
            if (player.hasPermission(args[0])) count++;
        }

        return count;   
    }
};

playersWithPermission();```
This _might_ work
gleaming charm
#

Issue is he can’t code that is right

vivid sparrow
#

javascript expansion Jerry.

gleaming charm
#

Ahh I kinda just looked at the theory and went yeah and didn’t question that sos

junior musk
#

I think you forgot a) after p"permission") Gaby

brisk coral
#

That should work gaby

vivid sparrow
#

yea xd

lapis frost
#

it is erroring out

vivid sparrow
#

?

#

make sure you have copied the new code

lapis frost
#

I did

vivid sparrow
#

show the error

#

=paste

tender vaporBOT
#
HelpChat Paste

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

lapis frost
brisk coral
#

Wait why are you even using args gaby?

vivid sparrow
#

So they can do it for multiple perms

lapis frost
#

I was only going to use donated.money as the "Permission"

vivid sparrow
#

ok, let's see

#
function playersWithPermission() {
    var count = 0;
    var player;

    for (player of BukkitServer.getOnlinePlayers()) {
        if (player.hasPermission("donated.money")) count++;
    }

    return count;
};

playersWithPermission();```
#

In the worst case, it doesnt support for loops

lapis frost
#

didn't work

brisk coral
#

It should

lapis frost
#

It's erroring out just like before

vivid sparrow
lapis frost
#

loading up

#

I don't get why it doesn't work as you guys said this should work

vivid sparrow
#

replace int with var oops xd

#

and BukkitServer not BukkitSerger

lapis frost
#

alright I'll try it

#

[02:49:29 INFO]: [PlaceholderAPI] %javascript_totaldonated% has been loaded!

#

and error again...

#

same as last time but I made the changes you suggested

vivid sparrow
#

show the error, again

lapis frost
#

I will once it stops flooding haha

#

I even killed the server

#

@vivid sparrow does this help at all

[02:59:24 WARN]: javax.script.ScriptException: TypeError: players.size is not a function in <eval> at line number 1

vivid sparrow
#

Use length I thought it's the same as on java

#

It's hard to write stuff without testing xd

lapis frost
#

where do I put that?

brisk coral
#

If OnLy ShIt We'Re SiMiLaR tHrOuGhOuT

vivid sparrow
#

instead of players.size() use players.length

brisk coral
#
function playersWithPermission() {
    var count = 0;
    var players = BukkitServer.getOnlinePlayers().toArray();

    for (int i = 0; i < players.length; i++) {
        if (players.get(i).hasPermission("donated.money")) count++;
    }

    return count;
};

playersWithPermission();
#

You also had a typo in Server

vivid sparrow
#

writing code on discord aint fun

brisk coral
#

Indeed it ain't :p

vivid sparrow
#

if they will add auto indentation then would be πŸ”₯

lapis frost
#

:/

brisk coral
#

Quick question gaby, should I allow multi lined messages for messages like reload, deny etc

vivid sparrow
#

auto or make TAB add it

#

why not I guess

lapis frost
vivid sparrow
#

btw, using | - you can make it support multiple lines without using getStringList() iirc

brisk coral
#

wait wut

vivid sparrow
lapis frost
#

I don't think it liked length to much

vivid sparrow
#

that's not the issue

brisk coral
#

it don't like for

vivid sparrow
#
function playersWithPermission() {
    var count = 0;
    var players = BukkitServer.getOnlinePlayers().toArray();

    for (var i = 0; i < players.length; i++) {
        if (players.get(i).hasPermission("donated.money")) count++;
    }

    return count;
}

playersWithPermission();```
#

It doesnt understand int

#

this shit takes longer than it should lmao

#

let me pr the server expansion :))

brisk coral
#

smh

lapis frost
#

lol and it's a simple little thing πŸ˜‚

vivid sparrow
#

Ah, the other are from the ListPlayers expansion which of course isn't OS

#

ListPlayers v2 then

brisk coral
#

I mean might as well just add it to server expansion

vivid sparrow
#

or vault

brisk coral
#

or vault

lapis frost
gleaming charm
#

Or vault

vivid sparrow
brisk coral
#

Y u no merge urself

vivid sparrow
#

Cuz I dont have access

brisk coral
#

Feels bad, neither

vivid sparrow
lapis frost
#

now it says something about

[03:20:13 WARN]: Caused by: <eval>:1 TypeError: players.get is not a function

vivid sparrow
#

players[i]

#

we are getting closer

lapis frost
#

[03:20:18 WARN]: javax.script.ScriptException: TypeError: players.get is not a function in <eval> at line number 1

#
    if (players.get[i].hasPermission("donated.money")) count++;
vivid sparrow
#

??

gleaming charm
#

πŸ€¦β€β™‚οΈ

vivid sparrow
#

R e a d xd

lapis frost
#

oh wait I misread what you said xD

#

It's 6:30AM xD

gleaming charm
#

He’s just done 1 + 2 = 4

#

Big brain

vivid sparrow
#

lmao

lapis frost
#

it's stupid 'o clock rn so meh

#

AYE!