#placeholder-api

1 messages · Page 107 of 1

delicate hill
#

but when i put it as a data: placeholder in deluxemenus

#

it just dont work

#

=paste

tender vaporBOT
#
HelpChat Paste

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

delicate hill
turbid tide
#

this doesn't return 5

#

%math_1+{javascript_dameCristal_woodcutter,1}%

#

it probably returns 5.00

#

so use %math_[precision:0]1+{javascript_dameCristal_woodcutter,1}%

delicate hill
#

still the cristal dont change

turbid tide
#

cristal?

delicate hill
#

glass pane

turbid tide
#

what version is your server minecraft?

delicate hill
#

1.12

turbid tide
#

and your DeluxeMenus?

delicate hill
#

latest dev build

turbid tide
#

what does /papi parse me %math_[precision:0]1+{javascript_dameCristal_woodcutter,1}% return?

delicate hill
#

5

turbid tide
#

try without the ''

delicate hill
#

in dm?

turbid tide
#

yeah

#

so data: placeholder-%math_[precision:0]1+{javascript_dameCristal_woodcutter,1}%

delicate hill
#

not working

#

with or without

turbid tide
#

can you try data: placeholder-%math_[precision:0]1+1% for me just to see if that works?

delicate hill
#

not working

turbid tide
#

weird. Maybe it's broken with palceholders

#

what if you just use 1 or something

#

does it work then?

delicate hill
#

yes

turbid tide
#

seems like a bug or something

#

what if you use it like this :placeholder-%player_item_in_hand_data%

#

and you hold a colored glass in hand?

delicate hill
#

but i put that in data or material?

turbid tide
#

put that in data

#

because it returns data

#

not the material

delicate hill
#

dont work

turbid tide
#

yeah then probably broken. I'll check to see if a report has been made if not I'll ask for a issue ticket to be opened.

#

until then I'm afraid there is nothing else we could do

#

or at least what I can think of

#

actually maybe try using it without placeholder-

#

just put the placeholders after data:

delicate hill
#

[00:38:09 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:703)
data: %player_item_in_hand_data%
^

turbid tide
#

yeah then it probably is broken

delicate hill
#

ok, well ty so much and if you can tag me when is solvet it would be great

junior musk
#

try with ' ' without placeholder-

turbid tide
#

@delicate hill ^

delicate hill
#

dont work

junior musk
#

any errors?

delicate hill
#

no error

turbid tide
#

also what does /papi parse me %player_item_in_hand_data% return?

#

when you have a glass pane in hand?

#

a colored one

delicate hill
#

14

turbid tide
#

yeah then probably broken. Did you open the menu with a colored glass pane in hand tho?

turbid tide
#

yeah seems to be broken even on 1.15.2

#

when I use placeholder- it doesn't work but when I just put a random data it works

delicate hill
#

Oh ok i was so confused

#

and also the matierial has problems

turbid tide
#

wait what version you said your server is? 1.12?

delicate hill
#

it dont accept a head for example

turbid tide
#

try using DMenus 1.10.5

delicate hill
#

yes

turbid tide
#

but you won't have a lot of features

delicate hill
#

dont work :S

mint fable
#

How did you use

#

Head; for older versions head- for newer versions iirc

turbid tide
#

nah he wants data: 'placeholder-%placeholder% but seems to be broken

#

on latest dev build at least

#

don't know about the others

mint fable
#

They said head

#

That’s why I replied about head

delicate hill
#

data: 'placeholder-%player_item_in_hand_data%'

#

Have that

#

but still

turbid tide
#

oh didn't see that part my bad cj

#

@delicate hill what head doesn't work?

#

?customheads

tender vaporBOT
#
FAQ Answer:

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

delicate hill
#

c

#

im my js func i pass basehea-bla bla and dot work eaven

turbid tide
#

wdym? can you give an example?

delicate hill
#

=paste

tender vaporBOT
#
HelpChat Paste

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

delicate hill
#

that is just a part from my js func

#

and still dont work

#

But in change if i put there

#

BEACON

#

it works with material

#

but numbers for data and heads for material dont work

azure hedge
#

...

karmic marsh
#

Is there a player specific placeholders for %vault_eco_balance% %vault_eco_balance_commas% %vault_eco_balance_fixed% %vault_eco_balance_formatted%

azure hedge
#

Factions relationship placeholders will not work in chat. I have the relation_placeholders_enabled setting in DeluxeChat as true. The placeholder doesnt show up in chat for example it isnt %rel_factions_relation_color%TestFac Name. It is just a no color TestFac... Hopefully that made sense. I would post a pic but bot doesnt let it happen. I'm also using the correct placeholders. I do not use FactionsUUID.

turbid tide
#

@karmic marsh you can use the parseother expansion

karmic marsh
#

Oh I just got a solution which is basically the same, thank you.

turbid tide
delicate hill
#

there is a way to import modules in the js files? like functions and vars ?

azure hedge
#

Why would I spigot link for papi placeholder support

warm topaz
#

deluxechat is premium

azure hedge
#

I dont need help with dchat..

#

I need help with the papi placeholder

trim mist
#

It's pertaining to using inside of DeluxeChat.

azure hedge
#

Ok so let me change the plugin its being used in... placeholder doesnt work inside papi parse.

#

Why

brisk coral
marsh surge
#

How to add a javascript file in papi?

#

i have ecloud javascript installed.

turbid tide
#

go to plugins/PlaceholderAPI/javascript_placveholders.yml

#

and add the name of the file in there

#

there is already an example on how to do it

marsh surge
#

thanks

austere hawk
#

can someone explain why
papi parse me %vault_eco_balance%
Is giving an internal error ?

warm topaz
#

whats the error?

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat - Usage
Hastebin

austere hawk
warm topaz
#

do u have vault with an economy plugin installed?

austere hawk
#

well ye

#

essentials and vault

turbid tide
#

can you try and restart the server and see if it still happens ?

austere hawk
#

sure

#

nope

#

is it cause me not having good net speed ?(never happen before)

warm topaz
#

place the jar in /plugins/PlaceholderAPI/expansions

austere hawk
#

ok still not working

#

also whats the latest version of placeholderAPI (that could be the issue)

balmy marten
#

Has nothing to do with placeholderapi, its the vault to Economy_Craftconomy3 hook

austere hawk
#

wait i forgot i have craftconomy

#

i m stupid and thx funnycube

#

can some one send me the link for statz expanision manuel download

trim mist
austere hawk
#

is there an way except manual download to download older expansion version ?

turbid tide
#

yeah

#

/papi ecloud download NAME VERSION

austere hawk
#

ok thats alot helpfull cause i use aternos (can't use java script coding software or import files)

wheat willow
#

Does it have support for Group Manager?

#

Im trying to get the players rank to display

#

Using deluxeMenus

warm topaz
#

does groupmanager use vault?

#

if so

wheat willow
#

%vault_prefix% worked thanks!

warm topaz
#

np

austere hawk
#

what should I do?

tender vaporBOT
#
📋 Your paste, microwin7
https://paste.helpch.at/efuqikucix

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

languid gale
#

Hey, I need help with placeholders, when adding %tokenenchant_explosive_cost% it saying k like it doesnt show the numbers etc just k any ideas?

fervent jackal
#

Why PAPI sometimes not register the placeholders of other plugins?

#

Depends on how i start the server?

runic lintel
#

Hi i'm having a problem about the placeholder the essentials
"%essentials_kit_time_until_available_kitname" that when the time written in the kit is more than 30 days it breaks and shows the number 0

#

+img

#

when it is less than 30 days it tells me 0 but if it is 7 15 24 days it tells me well

turbid tide
#

@fervent jackal what plugin exactly?

languid sentinel
#

Hello !
Not sure if my question belong to this channel or development one.
I'm creating a javascript placeholder to count some perms:
var testPerm = "%luckperms_meta_my_meta_perm_name%";
which works fine and return the meta value.
My question is: Is there a way to use a variable in this string and parse the placeholder on the fly ?
Like

var metaPermName = "my_meta_perm_name";
var testPerm = "%luckperms_meta_" + metaPermName + "%";
junior musk
#

I tried too but didn't seem to work =/

ancient marsh
#

Is there a placeholder which shows online players but doesn’t count those in vanish?

junior musk
#

what's your vanish plugin?

ancient marsh
#

Essentials @junior musk

junior musk
#

%essentials_safe_online% I think

#

and do /papi ecloud download Essentials
and /papi reload

fervent jackal
#

@turbid tide
Any plugin that registers placeholders.

  • TokenManager
  • JetsMinions
  • MyCommand
    ..etc..
tender vaporBOT
#

@fervent jackal,

Hey!

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

junior musk
#

do you have any errors when you do /papi reload ?

#

maybe there's an expansion that broke the rest

turbid tide
#

Any plugin that registers placeholders.

  • TokenManager
  • JetsMinions
  • MyCommand
    ..etc..
    @fervent jackal Did you install the expansions?
fervent jackal
#

Those plugins have no expansions, they hook to PAPI

#

But sometimes their placeholders are not registered.

#

And in case if they are registered, when i use /papi reload they stop working.

junior musk
#

it's probably the plugin which doesn't make the expansion persist on /papi reload

fervent jackal
#

True! I forgotten that!

compact fox
#

Hello! I would like to know where I can download the crazy crates extension for placeholder api

wet basinBOT
#

@brisk coral Unknown expansion.

brisk coral
#

It's internal

compact fox
#

It happens that I have to put the necessary expansion in trmenu but I don't know what it's called to be able to place it

warm topaz
compact fox
#

I need the expansión name

#

For trmenu

warm topaz
#

the expansion is built in already

#

u dont need to download it

compact fox
#

Trmenu asks me to put the name of the expansion in the menu to be able to use the placeholders

#

And sorry for my bad english

#

I need the expansion name for use that

warm topaz
#

do /papi list and itll tell u the name

#

i assume its just CrazyCrates

compact fox
#

Thx!

#

Its crazycrates

compact fox
#

hello why this error on start server?

junior musk
#

try to redownload PlaceholderAPI

compact fox
#

okay

cunning elk
#

Hi guys, im having a hard time with animations

#

I downloaded animations and set it up

#

I tried using {} %% and nothing

#

&e&l<appear fade>&e&l››››</appear> &f{player} &e&l‹‹‹‹

#

Here's how i tried

#

&e&l{<appear fade>&e&l››››</appear>} &f{player} &e&l‹‹‹‹
&e&l%<appear fade>&e&l››››</appear>% &f{player} &e&l‹‹‹‹

#

as well

turbid tide
#

wait what?

#

this is not PAPI's Animation

#

what plugin is this?

junior musk
#

%animations_Fade_&e&l››››%

junior musk
#

the way you used it is for KiteBoard

turbid tide
#

oh KiteBoard

cunning elk
#

ahh ok

junior musk
#

you have to use it like the placeholder tells you on PAPI's wiki

cunning elk
#

I got it from clicking on preview

#

for animations

turbid tide
#

and are you using it on KiteBoard?

junior musk
#

%animations_Fade_&e&l››››%
actually, just realised it's FadeIn I think

turbid tide
#

yeah but I think he wants to use the animations on KiteBoard not using PAPI

cunning elk
#

is there a placeholder to center it?

turbid tide
#

can you please explain to us where are you trying to use this? @cunning elk

#

are you using KiteBoard and you want to use their animation features?

cunning elk
#

im using it to have a hover text on players names

#

that centers on the first line:

Playername <<<<

#

with >>> fading in <<<< fading out

turbid tide
#

wait KiteBoard can do that?

cunning elk
#

The placeholder worked but no animation is happening

#

no im not using kiteboard

#

tbh idk what that is

#

im using chatcontrolpro

turbid tide
#

well what you just showed us

#

is a thing you can do in KiteBoard

#

which is a plugin

junior musk
#

yeah but I think he wants to use the animations on KiteBoard not using PAPI
no it's just that the Animations expansion uses the same options and animations types as KiteBoard as their author is the same

turbid tide
#

you'll have to use the animation expansion

#
/papi ecloud download Animations
/papi reload```
cunning elk
#

I did that

junior musk
#

so instead of creating another wiki, Niaill used the same wiki

turbid tide
#

%animations_<type>_YourTextHere%

#

here is how you use it

cunning elk
#

It partially worked

#

It replaced the papi code for the text

#

but no animation

turbid tide
#

well did you use Fade In?

cunning elk
#

I downloaded the expansion and reloaded before that

#

yes

#

{animations_FadeIn_&e&l››››} &f{player}

turbid tide
#

%animations_Fadein_{player}%

#

or do you want the arrows

#

to have an animation?

#

&e&l%animations_Fadein_››››%

cunning elk
#

I want the arrows to be animated

#

oh that makes sense

#

let me try that

turbid tide
#

or you could try {&e&l{animations_Fadein_››››}

cunning elk
#

Its blank now

#

in-game

turbid tide
#

can you do /papi parse me &e&l%animations_Fadein_››››% and see what happens?

cunning elk
turbid tide
#

well it is not blank

cunning elk
#

i didnt apply papi to the right side yet

turbid tide
#

use the colors inside

cunning elk
#

just the left side

#

ok

#

{&e&l{animations_Fadein_››››}

#

like this?

turbid tide
#

so Fadein_&e&l

cunning elk
#

oh ok

#

Now its showing but no animations

turbid tide
#

well probably your plugin doesn't support animations

cunning elk
#

Let me ask their support if they know whats happening

#

thank you for your help! 😄

austere hawk
#

%vault_rankprefix% %vault_rankprefix_#%

#

what is the difference

#

%vault_rankprefix% %vault _rankprefix -#%

#

ignore that

cunning elk
#

Blitz

#

I talked to chat control pro and they don't know what might be happening

#

is there any special api they might be missing that doesn't work with the animations?

#

Animations should work on hover text, right?

junior musk
#

chat messages can't be updated

cunning elk
#

Not chat, hover text

#

It cant?

junior musk
#

it's still in chat

cunning elk
#

Ahh

junior musk
#

so nope unfortunaly it can't work =/

cunning elk
#

Got it

junior musk
#

nope

cunning elk
#

Thank you

#

😦

junior musk
#

=/

left tusk
#

is there a way to delete expansion? i installed javascript and it is generating errors with adminanything

turbid tide
#

you need to go into plugins/PlaceholderAPI/expansions

warm topaz
#

go to the PAPI expansions folder and delete it

turbid tide
#

and manually delete it from there

left tusk
#

thank you

smoky jacinth
#

How do I use the Cooldown placeholder for DeluxeMenu? I added the cooldown.js, what do I do next?

#

if I paste the example into an gui, I just get the raw string for the placeholder

warm topaz
#

did u the add the file into the javascript_placeholders.yml and downloaded the javascript expansion?

smoky jacinth
#

yep, im guessing there needs to be something in the Cooldown.js in PlaceholderAPI/javascripts/

warm topaz
#

if u do /jsexpansion list, what does it say?

smoky jacinth
#

0 script loaded

warm topaz
#

did u place the cooldown.js file into /placeholderapi/javascripts?

smoky jacinth
#

yes

warm topaz
#

if its in there, u need to go to the javascript_placeholders.yml and add

  file: cooldown.js```
#

and then /jsexpansion reload

smoky jacinth
#

I meant I add the
cooldown:
file: cooldown.js
and it automatically added the file for me

#

Still 0 scripts

warm topaz
smoky jacinth
warm topaz
#

uh try restart

smoky jacinth
#

thanks @warm topaz it works. haha didn't know I needed to add that chunk of code into the cooldown.js

warm topaz
#

np

austere hawk
#

Hi

#

What's the difference between vault_rankprefix and vault_rankprefix_#

#

vault_rankprefix—#

warm topaz
#

id assume it would show the prefix of a certain group

#

so replace # with default or something like that

#

im not sure, ive never tested it myself

scenic ingot
#

is there any placehorder to unite Team's money? on tablist

turbid tide
#

is there a way to see the money from each teammate? also what plugin is that ?

turbid tide
#

is there a placeholder that would return the timestamp of the server? I know there is the player_time one but I want the server one if possible

junior musk
#

%server_uptime% ?

turbid tide
#

nah

#

like the time in seconds from 1 Jan 1970

junior musk
#

or you meant %server_time_SimpleDateFormat% ?

turbid tide
#

if you do /papi parse me %player_time% you'll see a lot of digits

#

that is a timestamp

junior musk
#

or you meant %server_time_SimpleDateFormat% ?

turbid tide
#

and the digital time has been started in 1 Jan 1970

#

nope can't do that with server_time

#

it returns the current second like 7 or 17

#

or 59

#

but at 60 it goes back to 0

junior musk
#

ah

turbid tide
#

I'm trying to make a timer placeholder that start counting from a date but never stops.

junior musk
#

idk if there is a placeholder for that

turbid tide
#

yeah I don't know either. Tried tho maybe someone had one

#

I'll try and see with the javascript

#

maybe I can use the server methods

#

nope something like that doesn't exist there either

vale spire
#

Tried to install papi in waterfall 1.15

#

got this

turbid tide
#

wait so waterfall is a bungee thing right?

#

well PAPI doesn't support that. You need to install PAPI on all your server but not on the bungee one or however waterfall works

#

if I am wrong and waterfall is just for 1 server please correct me

vale spire
#

waterfall is bungeecord

#

optimized

#

I wanted to display the total number od players in the server ping

turbid tide
#

yeah

#

you need to add PAPI to all your servers

#

but not to the waterfall server

vale spire
#

And then?

turbid tide
#

download the bungee expansion

#
/papi reload```
#

and use %bungee_server%

#

change server

#

to the server name

#

you want to see the player number

vale spire
#

I want to see the total number of players in all the servers together

turbid tide
#

%bungee_total%

vale spire
#

In the lobby server it will give me the total number?

turbid tide
#

yeah

#

if you have the bungee expansion on all your servers

#

and also PAPI

#

not on the bungee tho

vale spire
#

ok thx

#

serverlistplus does not seem to have papi compatibility, f

turbid tide
#

yeah. It only has a few placeholders of its own

vale spire
#

Is there a plugin that does that? (Im sure there is)

turbid tide
#

I have no idea. Maybe MOTD

vale spire
#

ok thx

turbid tide
#

yeah seems like it is

vale spire
#

got cleanmotd

#

It was made for a network server, it says that the options in the server are default in the print there is 270/2400 online

#

so

austere hawk
#

anyone knows how to make something like ```yml
Player Killed Zombies = x (I m taking as the no. of zombies killed by a player)
Player Killed Creepers = y (I m taking as the no. of creepers killed by a player)
Player Killed Zombies And Creepers= x + y = 100
#I want to make It so that
#The No. Of Zombies Killed By the Player, If It goes Higher then 50 then we will take 50 as the value
#The No. Of Creepers Killed By the Player, If It goes Higher then 50 then we will take 50 as the value

I wish this explained something.
Is that Possible ?
balmy marten
#

Yeah using javascript placeholders

austere hawk
#

in math expansion ?

balmy marten
#

Just javascript

austere hawk
#

oh i see

balmy marten
#

and the Statistic placeholders

#

So you can use %statistic_kill_entity:<MobType>% in the javascript placeholder

austere hawk
#

i see

#

if thats only possible in java script (idk anything about) i will probably separate the mob types

balmy marten
#
var creepers = "%statistic_kill_entity:CREEPER%";
var zombies = "%statistic_kill_entity:ZOMBIE%";
function getMobCount() {
    if (creepers > 50) creepers = 50;
    if (zombies > 50) zombies = 50;
    return zombies + creepers;
}
getMobCount();```
#

I think that's what you want

clear dust
turbid tide
#

why is the permission red tho? doesn t that mean that the permission is negated?

#

or set to false?

#

if so it probably doesn't return a number if the permission is set to false I assume.

#

you could try with the other permission and check tho

#

@clear dust ^

clear dust
#

I have tried both it should still be able to get the expiry time of a negative permission its not checking if i have it. its ment to return the time left.

turbid tide
#

well idk about that one. And the other one returns the same thing?

#

try giving yourself a test permission

clear dust
#

yep still blank

turbid tide
#

and see if that one would work

clear dust
#

Ligit is a test perm.

#

it also comes back blank if you type a permission that don't exist.

turbid tide
#

well that is what its suppose to return if you don't have the permission

clear dust
#

would be nice if it gave some feedback like invalid permission or something :/

turbid tide
#

I mean you could use javascript or something if you rly want that but I don't see the need. Just more checks that are not needed

#

and also

#

all permissions are valid

#

as long as they contain only a-zA-Z0-9. I think

#

not sure if they accept any other characters

clear dust
#

true valid is not the right word I guess found but even thats subjective.

#

Ok iv found the issue.

#

it would seem that Luckperms is CASE sensitive for its permission nodes. However PAPI lowercases every thing. so its imposable to get the expiry time for a permission node that has a capitol in it.

turbid tide
#

weird. I wasn't aware of this

clear dust
#

yeah i set a node called test and ran the parse for the node test and it worked straight away.

#

I made another node called False and tried to grab it, and nope blank.

#

it must be toLower the placeholder at some point.

#

removing the caps and making it not find the node.

turbid tide
#

maybe. but I guess you could just change the permission to lowercase because I don't think LP is actually case sensitive

clear dust
#

sure it is you cant unset False by typing false.

turbid tide
#

oh you are actually right but that is not what I meant to say

#

I mean the plugin that has that permission

#

probably reads it uppercase and lowercase the same

#

so the permission will probably work if you change upper case to lower case

clear dust
#

oh its my own permission node. from my own custom command in CMI alias editor. I can change it yes easy.

turbid tide
#

yeah seems like it goes to lowercase as you said

#

because if you do the perm with lowercase but you parse it with upper it still reads it

#

only the other way around it doesn't work

clear dust
#

nvm im a tard.

#

i forgot i need to use unsettemp

turbid tide
#

yeah just wanted to ask xD

austere hawk
#

Ahhh, what would be the item name for "ender eye" ?

turbid tide
#

I have no idea. If you have essentials do /itemdb with the eye in hand

austere hawk
#

I did that, showed "EYE_OF_ENDER" but nope, won't work

#

I mean, in deluxemenus it won't work

#

Wait...

#

It's working, it's working

#

My bad

turbid tide
#

no worries

austere hawk
#

Copied the text from a menu showing glass, was using
material: eye_of_ender data: 14
lol

turbid tide
#

oh yeah that could break it xD

austere hawk
#

It won't align ):

turbid tide
#

do you have op?

austere hawk
#

No

junior musk
#

spacing seems wrong

tender vaporBOT
#
Valid Config!

BlitzGamer_88, I checked your config and, it's valid!

+ Correctly Formatted```
junior musk
#

try that

austere hawk
#

True, the spacing is wrong

junior musk
#

I wasn't talking about YAML syntax but about the requirements syntax

turbid tide
#

oh

#

yeah I am playing cs:go so didn't have time to look at it xD

austere hawk
#

Hahaha

junior musk
#

x)

#

I was counting in you BlitzZ!

#

you were the chosen one!

#

press F for my arm that has suffered while trying to fix the spacing on phone x)

austere hawk
#

Oops

#

xD

turbid tide
#

press F for my arm that has suffered while trying to fix the spacing on phone x)

#

:)))

austere hawk
#

Sure thing

#

Tanguygab, it works perfectly, thanks!

#

Ahhh

turbid tide
#

?

austere hawk
#

All I did was correct spaces and now it says "Command doesn't exist" when I try to open the menu ):

turbid tide
#

can you paste the menu?

#

also when you do /dm reload what does it say in console

austere hawk
#

Only thing I understand in the console is Caused by: java.lang.NullPointerException

turbid tide
#

yeah just paste that error

austere hawk
#

This is my menu

turbid tide
#

here you go

#

try this menu

#

also what is your server version?

austere hawk
#

1.12.2

#

Of MC ^

turbid tide
#

update to latest dev build

#

?dm-builds

tender vaporBOT
austere hawk
#

How did you fix the config in 2 seconds

junior musk
#

cuz he's epic

austere hawk
#

And ty, I'll get the dev build

turbid tide
austere hawk
#

I did

junior musk
#

BlitzZ!

turbid tide
#

no

junior musk
#

you deceive me

turbid tide
#

I like yamlchecker better

austere hawk
#

Oh btw

#

I still get the same error

turbid tide
#

did you update

#

to the dev builds?

austere hawk
#

No, not yet

turbid tide
#

yeah update. that should fix it

austere hawk
#

I'll do rn if that's the issue

#

It was working before I fixed the spaces tho

turbid tide
#

yeah weird.

#

idk what could cause it but latest dev builds should fix it

austere hawk
#

Updating rn

#

Quick question. How do you efficiently update plugins when you have an active player base on the server?

turbid tide
#

you can't rly

brisk coral
#

You have daily restarts

turbid tide
#

yeah

#

that is the best way

brisk coral
#

And you have a test server

#

So you test the updated version on a test server, since you don't want it fucking up shit

turbid tide
#

I wonder how gian is doing it

austere hawk
#

Hmmm, makes sense

brisk coral
#

Gian doesn't restart his servers

#

He's a mad lad

turbid tide
#

he probably adds a update every month xD

austere hawk
turbid tide
#

yo frosty you here?

#

by any chance you know if a timer placeholder would be possible to be made using javascript? xD

#

I've tried for like 3 ours yesterday but couldn't figure anything

austere hawk
#

Boy, every time I restart the server there is a new update of something available

brisk coral
#

timer as in?

#

Audacity, that's why you mass update

turbid tide
#

I set a start date and it counts time that has passed since then

austere hawk
#

Mass update?

brisk coral
#

Server age type of thingy right?

turbid tide
#

yeah

#

well that is exactly what I need it for xD

austere hawk
#

The dev build worked!

turbid tide
#

nice. It should have xD

#

the countdown doesn't count backwards

#

only forward in time

#

so time until

#

not time since

brisk coral
#

I know

#

%server_time_<SimpleDateFormat>%
And then store the first date, and just subtract

austere hawk
#

Then is it a countdown anymore thonking

brisk coral
#

Yea the method is a bit iffy named

turbid tide
#

the problem is that I can't subtract from 10d 10m 10s. I need to format it somehow.

#

I could change it to seconds actually

brisk coral
#

You can use the Date

turbid tide
#

or something

#

I'll try and see what I get from the server time and see if I then can subtract and the format it myself

#

wasn't there a time formatter from the timestamp to a normal format?

#

as in expansion

brisk coral
#

Andre's expansion I believe

turbid tide
#

I'll check the ecloud

#

see if I find it

#

yeah

#

found it

#

thanks a lot. I'll give it a try

austere hawk
#

Hey, is it possible to add a menu item such that a player can not buy it if he has a specified permission?

turbid tide
#

yes

#

add left_click_requirement

#

or any click type you want

junior musk
austere hawk
#

When did I end up here

junior musk
#

idk x)

turbid tide
#

because we like to break the rules? xD

junior musk
#

bruh

#

2sec later
funnycube: BlitzZ, deranked

turbid tide
#

:))

turbid tide
#

anyone can see what I did wrong? it says its an invalid javascript

#

but I have no idea what's wrong with it

#

oh I'm dumb

#

that's the placeholder

#

and this is how I call it and what it returns

#

for some reason the math for the start time is broken

#

a 0 is missing

#

or something

#

its suppose to return like a few seconds

#

or maybe hundreds

#

but it returns millions

#

only 1 time it actually returned 601

#

which was the correct answer

#

it worked again for a few seconds

#

then stoped

#

for no reason

#

stopped as in a 0 was missing once again

austere hawk
#

Im using the latest version of API but it wont work

#

is there any plugins i need for it to run?

turbid tide
#

what doesn't work/ you get any errors?

austere hawk
#

the placeholders dont seem to work

#

%player_has_permission% shows yes if you have the perm and no if you don't have?

#

And also why do %player_has_permission% and %luckperms_has_permission% return different values?

junior musk
#

the placeholders dont seem to work
@austere hawk /papi ecloud download server
/papi reload

#

%player_has_permission% shows yes if you have the perm and no if you don't have?
@austere hawk %player_has_permission_<your.permission>% returns yes or no

#

And also why do %player_has_permission% and %luckperms_has_permission% return different values?
because they aren't the same placeholders and weren't created by the same person I guess

austere hawk
#

Alright, ty

#

ah thanks @junior musk

#

I'm so confused rn

#

The user has group.zeus and I'm running %player_has_permission_<group.zeus>%

#

It says no

junior musk
#

without <> 🤦

austere hawk
#

Didn't really work without the <> ;P

#

Oh,, I had a spell error

#

And it works omg

#

wait %player_name% still wont work.

#

I spent so much time

#

I'm so dumb

#

Good god

#

Tysm

junior musk
#

wait %player_name% still wont work.
/papi ecloud download player
/papi reload

austere hawk
#

nope still not working

junior musk
#

where isn't it working ?

austere hawk
#

Scoreboard

#

thats how my config looks for it

junior musk
#

show /papi list

austere hawk
junior musk
#

do /papi parse me %player_name%

austere hawk
#

i screenshotted the wrong part lmao

junior musk
#

show ingame

#

and show the above command too

austere hawk
junior musk
#

it's a bug with your scoreboard plugin then

#

PlaceholderAPI is working fine as you can see with the parse command

austere hawk
#

Ah okay thanks

austere hawk
#

whats the placeholder for a players rank?

#

cant find it

junior musk
#

%vault_rank%
/papi ecloud download Vault
/papi reload

austere hawk
#

ok ty

#

does playerskills placeholder exist ?

junior musk
turbid tide
#

anyone could tell me where my math is wrong? xD

#

sometimes the starttime variable looses a digit

#

so instead of being lets say 9 digits long its 8

#

but rarely it actually works as intended

#

and I can't understand why

#

xD

#

Ok seems to be something to do with the seconds or something?

#

because sometimes if I change the seconds it works then after another few seconds I have to change them again

turbid tide
#

turns out the problem occurs when I make the seconds come with only 1 diggit

#

so the starttimes=0-9

sinful meteor
#

that is a horrible looking file

turbid tide
#

plss shut up xD

#

I know it is

sinful meteor
#

is that JS by the way?

turbid tide
#

I am so sick of this. I've been working for over 5 hours on it

#

yeah

sinful meteor
#

because you used function

turbid tide
#

now a new problem just came up

#

even if I use Math.floor or round or anything

#

it returns a .0

warm topaz
#

hmm would u be able to use Kotlin JS with custom js placeholders in papi? just a side question

sinful meteor
#

JS placeholders?

#

what?

warm topaz
#

u can add custom js placeholders with papi

sinful meteor
#

if you're transferring data to a website you'll probably want to do so via a database

turbid tide
#

yeah that is what I'm making rn

warm topaz
#

wat

turbid tide
#

wait don't mind my message

#

my head hurts ...

sinful meteor
#

what data are you trying to get?

turbid tide
#

if I return " " + variable; it returns the number correctly

#

...

#

but if I return just variable

#

it returns number.0

sinful meteor
#

you sure all of those arguments you're adding up are integers?

turbid tide
#

yep

#

%javascript_timer_2020,159,19,54,50%

sinful meteor
#

they look an awful lot like Strings to me

#

or is that just JS duck typing

sullen birch
#

Hey,
how can i use the placeholder %playertime_time_minutes% from plugin "PlayerTime"?

#

Somebody now it?

sinful meteor
#

just... use it?

#

what do you want to do with it?

sullen birch
#

I would like to show it in my tablist (created with SK)

#

SK = Skript

#

but it shows <none>

brisk coral
#

We don't do that here

#

:))

sullen birch
#

Where do we do it?

warm topaz
#

nowhere :))

sullen birch
#

why?

warm topaz
#

can u link this PlayerTime plugin please?

sullen birch
#

Or how i can test it, if playerholders works?

warm topaz
#

/papi parse me %playertime_time_minutes%

sullen birch
#

shows only the text not the right time...

#

me %playertime_time_minutes%

warm topaz
#

can u paste ur startuplog here please?

#

?startuplog

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

warm topaz
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat - Usage
Hastebin

sullen birch
warm topaz
#

omg im so stupid...

/papi reload```
trim mist
#

If I ever rewrite that plugin, I'll make it work properly and also inline the expansion.

warm topaz
#

:)))

trim mist
#

It currently doesn't store across servers. It just grabs from each server it's on.

#

I wrote that in 2017 I think.

#

That's an oldie.

sullen birch
#

[21:24:53 INFO]: No cloud expansions are available at this time.

warm topaz
#

download it from there

trim mist
#

I added a manual download link to the papi expansion command.

warm topaz
#

i couldnt find the expansion on the github so i was so confused, i thought u mightve built it into the plugin

trim mist
#

¯\_(ツ)_/¯

#

Idk where it is

warm topaz
#

i could only find it on ecloud

trim mist
#

2017 was interesting.

sullen birch
#

Thank you!!!

warm topaz
#

np

sullen birch
#

❤️ (No homo) xd

warm topaz
#

just note, u may run into some issues with other expansions as u are running an old version of PAPI (this version is needed for playertime because its also outdated :) )

sullen birch
#

okay, thank you

#

thank you all

trim mist
#

Wait why is it needed

warm topaz
#

because papi got updated in between 2.8.2 (version hes on) and latest no?

#

like its methods

#

and caused some plugins to break

junior musk
#

2.9.2 iirc

trim mist
#

Oh you right that makes sense

#

One day I'll rewrite it. It's still using 2017 code.

warm topaz
#

🙂

#

kotlin incoming

trim mist
#

Maybe

#

Idk

#

Might do it in Skript

warm topaz
#

👀

brisk coral
#

WaffleBoi, 🤢

turbid tide
#

was there an expansion that could remove the . in a number?

brisk coral
#

Don't think so

turbid tide
#

I hate this thing. I made it return the seconds correctly but it returns them xxxx.0

#

and can't use math.floor or round or parseInt

warm topaz
#

why not

turbid tide
#

well it just won't convert it

#

for some reason

#

even if I do it directly in the return

#

return Math.floor(passed);

warm topaz
#

lol

brisk coral
#

.split(".")

#

and just get the 0 index :p

turbid tide
#

wait I need to find out how split works

#

xD

#

from what I can see on w3schools

#

split will actually just add commas

#

instead of whatever separator I chose

#

and seems to not work

#

script error

stone parcel
turbid tide
#

did you install PlaceholderAPI on your bungee server?

#

because that won't work

#

you need to install PAPI on all your servers but not on the bungee

stone parcel
#

oh lol, why it s on my proxie tf

#

thanks man

turbid tide
#

no problem

lean tangle
#

hi

turbid tide
#

hello

lean tangle
#
ada1:
  location: world, 372.491, 157.200, 469.553
  lines:
  - '&c&lEn Yüksek 1. Ada'
  - ''
  - '&b{fast}&b%leaderheads_player_asb-level_1%'```
#

set to. but

#

name does not appear.
nothing empty.

#

help me

turbid tide
#

what does /papi parse me %leaderheads_player_asb-level_1% return?

lean tangle
#

it doesn't write anything. spamming the empty chata.

turbid tide
#

then it means you haven't set leaderheads correctly

#

unfortunately I don't know how to use LH so you'll either have to go to their discord for support or wait for someone that does know how to use it

lean tangle
turbid tide
#

oh maybe its outdated

#

delete it

#

because now its inbuilt in the plugin

#

leaderheads

#

delete the expansion

#

and restart your server

lean tangle
#

where will I download it?

turbid tide
#

you don't need to

#

it comes with the LeaderHeads plugin

lean tangle
#

hmm oky

#

What will I use instead of "%leaderheads_player_asb-level_1%" ?

turbid tide
#

as I said. I have no idea how it needs to be set up

#

so either wait for someone that does or go on LeaderHeads's discord server

lean tangle
turbid tide
#

nope

lean tangle
junior musk
lean tangle
#

@junior musk

#
ada1:
  location: world, 372.491, 157.200, 469.553
  lines:
  - '&c&lEn Yüksek 1. Ada'
  - ''
  - '&b{fast}&b%leaderheads_name_skyblock_level_daily_1%'```
#

unsuccessful.

junior musk
#

/papi parse me %placeholder%

lean tangle
#

@junior musk

#

it doesn't write anything. spamming the empty chata.

junior musk
#

what statistic placeholder are you using ?

lean tangle
#

%leaderheads_value_askyblock_level_daily_1%

#

%askyblock_level%

junior musk
#

you forgot the a for askyblock

#

in the leaderheads placeholder

#

on the hologram

lean tangle
#

I do not understand.

junior musk
#

ada1:
location: world, 372.491, 157.200, 469.553
lines:

  • '&c&lEn Yüksek 1. Ada'
  • ''
  • '&b{fast}&b%leaderheads_name_skyblock_level_daily_1%'
lean tangle
#

ovv

#

one second.

#

@junior musk
I fixed it. but the same.

junior musk
#

do /papi parse me %askyblock_level%

#

and then /leaderheads validate %askyblock_level%

#

if both worked correctly, do /leaderheads enable %askyblock_level%

steep thorn
#

I don't know why people try downloading the 'leaderheads' expansion from the papi cloud

#

It's not mentioned in my documentation

#

That expansion isn't even made by me

turbid tide
#

xD Idk. they don't care to read a bit. if they would have just read under the leaderheads section they would have seen there is no download command

junior musk
#

can't you delete it from the ecloud?

turbid tide
#

well he said its not made by him

junior musk
#

ah

steep thorn
#

Yeah I didn't make it

lean tangle
#

yes it seemed. but "%askyblock_level%" 45 but "% leaderheads_value_askyblock_level_daily_1%" appears to be 0.

junior musk
#

then the @ admins pls come here

steep thorn
#

@lean tangle send me a private message

#

This user also seemed to use the placeholder 'asb-level', which is something from a very old tutorial which is also not something I linked on the resource page

#

I spent so much time on clarifying tons of things on the new wiki, yet people just find a way to the old wiki and expect it to work

#
  • he's using a leaked version
#

Please don't help people in here if they're having issues with the Leaderheads aspects of the setup, send them to me

junior musk
#

ok

turbid tide
#

k. sure thing

sinful meteor
#

don't help people who leak your plugins also

junior musk
#

leakers...... cool thing huh?

turbid tide
#

I'll ask an admin when they are online to pin that message xD

sinful meteor
#

you know trusted can pin as well @turbid tide

junior musk
#

they should add a #leaderheads even if no admin made the plugin x)

turbid tide
#

bom I just asked if they can xD

#

I was not aware

sinful meteor
#

ah okay

steep thorn
#

I'll set up my own Discord thing one day

#

When I have time

#

And no exams

sinful meteor
#

yeah I've seen gaby pin loads of things blitz

junior musk
#

I can help with that if you want

#

but I don't have any bots for verification =/

steep thorn
#

I'll probably look into it in July/August

#

Yeah verification is kind of a problem

#

Since Cloudflare breaks most bots

sinful meteor
#

certain traffic shouldn't be proxied

junior musk
#

one thing we did with BedWars1058 was, we asked people to put a review on the plugin with their discord tag, then we add them the role, and they can remove or leave the review if they want

steep thorn
#

Yeah you can't just not proxy certain traffic through Cloudflare unfortunately

sinful meteor
#

I can think of a few things that can't be proxied:

  • Mail
  • Minecraft
  • FTP/SFTP
  • UDP traffic
steep thorn
#

Although you could likely set up a Cloudflare rule to at least disable automated protection for certain paths

sinful meteor
#

Yeah you can't just not proxy certain traffic through Cloudflare unfortunately
yes you can...?

steep thorn
#

I mean not certain paths in an HTTP server

sinful meteor
#

as long as you have it running through a different subdomain, or don't proxy your root

#

I mean not certain paths in an HTTP server
well yeah, that's why you just kinda don't do that

#

I've never found a need for that personally

steep thorn
#

I know some tricks to bypass the Cloudflare proxy for most websites, but it depends on whether the origin server was set up securelt

sinful meteor
#

also, your A and AAAA records shouldn't be proxied. ever.

steep thorn
#

And I don't know if md_5 would appreciate that

#

Uhm, why @sinful meteor ?

sinful meteor
#

because you just don't need it

#

that means all of your TCP traffic will be proxied

#

you just proxy subdomains

steep thorn
#

I'm sorry to say this but that doesn't make much sense

sinful meteor
#

also, your A and AAAA records shouldn't be proxied. ever.
actually I'm wrong there

#

don't proxy your A and AAAA records if one of your CNAME records isn't proxied

#

@steep thorn does ^^^^ make any more sense?

steep thorn
#

Not really, sorry

#

But I don't have time to think about it right now

#

I am however working on some interesting security research related to Cloudflare

sinful meteor
#

if one of your CNAMEs is DNS only, your A record should be DNS only

steep thorn
#

Why exactly, how are that CNAME and A record related to eachother?

sinful meteor
#

CNAME is an alias

#

basically that name you put in just resolves to the A record

#

that's how DNS works

sinful meteor
#

cheers gaby

#

maybe you should include some research on DNS @steep thorn

steep thorn
#

The research is mainly around DNS

#

And how origin servers are usually not properly protected, allowing you to bypass all security features that Cloudflare offers

sinful meteor
#

what do you mean by protected?

#

what kind of protection we talking about here?

#

because I have a server that has certain traffic proxied through cloudflare, and other traffic that isn't

steep thorn
#

Ddos, scraping, WAF

sinful meteor
#

on my main domain, I host a mail server, which means the mail CNAME has to be DNS only, and so then do the A and AAAA records

steep thorn
#

Just the basic Cloudflare stuff

#

I suggest reading this

sinful meteor
#

if I wanted super secure DDoS protection for things like mail I'd need to purchase cloudflare spectrum

steep thorn
#

If you were to find such a bypass for the Spigot site, you could bypass the annoying anti scraping things that Cloudflare does

#

But then again it's a bad idea because you're kinda breaching their security

sinful meteor
#

it really depends on if spigot have any CNAME records that are DNS only

#

which they probably don't since their A record is proxied

steep thorn
#

Hmmm you're not really right, it all depends on whether Spigot backend's server allows any other connections besides Cloudflare's CDN ips

#

That's the entire point

sinful meteor
#

yeah but gl finding their root server IP

steep thorn
#

Read the article

#

The point is that it's easy to accidentally expose your IP

#

Besides that, there's 'only' 4 billion IP's, so enumerating them is far from impossible

#

Which is part of my research

sinful meteor
#

actually quite a few IPs are reserved

vivid sparrow
#

1.1.1.1

steep thorn
sinful meteor
#

1.1.1.1 isn't reserved gaby

#

believe it or not

#

1.1.1.1 is actually owned by cloudflare

#

also @steep thorn you haven't factored in IPv6 yet

steep thorn
#

True, but almost every cloud provider still offers you a personal IPv4 address without any cost

sinful meteor
#

yeah fair point

steep thorn
#

Gcloud started charging for it recently

sinful meteor
#

@vivid sparrow

#

Gcloud started charging for it recently
charging for what? IPv6s?

steep thorn
#

For a static IPv4

#

Like 2 bucks a month or something, idk exactly

sinful meteor
#

what about IPv6s?

steep thorn
#

Is free, there's plenty

sinful meteor
#

yeah

#

according to my calculations, the maxximum IPv4s you can possibly assign is 3,635,541,761

#

factoring in all the reserved ips

#

you know, I once thought 1.1.1.1 was your local machine too gaby

#

funny what businesses do these days to sell products lol

vivid sparrow
#

Ik its a domain

pastel chasm
#

anyone know whats up with the bungee extension? it has an update, but wont let me update it

#

and its not showing status'

austere hawk
#

/papi parse me %statistic_use_item:LAVA_BUCKET% This should work in 1.7.0 statistic expansion ?

mint fable
#

maybe _ instead of :

#

or -

#

can't remember

#

ye i think the old is _

austere hawk
#

wrong format

mint fable
#

what is?

#

_?

austere hawk
#

/papi parse me %statz_blocks_placed_LAVA_BUCKET%

mint fable
#

why did you change the placeholder

austere hawk
#

nvm i m indiot

mint fable
#

all of a sudden to statz

austere hawk
#

idiot

#

/papi parse me %statistic_use_item_lava_bucket% still i get 0 lava placed

mint fable
#

are you on an old mc version?

austere hawk
#

yes

#

1.9

mint fable
#

?materials

tender vaporBOT
mint fable
#

lmao

austere hawk
#

i checked the materials

mint fable
#

hmm i don't know too much sadly

austere hawk
#

oh its working

mint fable
#

ah

austere hawk
#

i needed to add caps

mint fable
#

icic

#

welp, good to know

austere hawk
#

is there any player_deaths ?

balmy marten
#

%statistic_deaths%

austere hawk
#

thank you

balmy marten
#

or %statz_deaths%

austere hawk
#

ok

#

thx

#

a question does %statistic_craft_item_IRON_INGOT% detect if a person has smelted iron ore ?

#

and recieved iron ?

manic imp
#

Hello. Few hours ago today i encountered with a problem, https://pastebin.com/rf1RqKM4. Could someonse please tell me why is that happening?
Ah, forgot to mention, i'm using PAPI latest STABLE build 2.10.6

balmy marten
#

Seems to be the vault expansion

#

Make sure you've got the latest vault expansion, and remove any expansions you're not using

west dagger
#

Could someone help me with a maths placeholder?
I am trying to make it so that it halves the {target}'s balance with deluxemenus and I put the args too
this is what I am currently trying to use
- '[console] eco set {target} %math_{vault_eco_balance_fixed}/2_[precision:0]%'

brisk coral
#

remove the _ in the math placeholder before precision

west dagger
#

Alrighty thanks

#

This would do it to the target right?

brisk coral
#

No, you'd need to use parseother with it as well

#

And I don't think that's possible, so you'd have to use javascript

rain agate
#

okay stupid question, I recently made a teams plugin with a friend of mine, we added placeholders to show the team names, unfortunately I am stupid and I forgot what the placeholder was, and the code for the plugin is on his computer. Does papi happen to come with a way to look up placeholders for a specific expansion?

balmy marten
#

/papi placeholders <expansion> not sure if this only works for ecloud expansions though

rain agate
#

Incorrect usage! /papi help

balmy marten
#

odd

#

is it in the help menu? maybe it changed

rain agate
#

It's not

balmy marten
#

Yeah guessing it was removed then

rain agate
#

ah the command is /papi ecloud placeholders

balmy marten
#

ah then it musted be limited to ecloud expansions

rain agate
#

no worries, thanks for your response though

brisk coral
#

I'm guessing the expansion is internal?

rain agate
#

Yes

brisk coral
#

rip

small snow
#

after updating from papi 2.10.4 to 2.10.6 it appears all placeholders that were registered by other plugins are not working

#

well actually just some

#

but a good amount of plugins broke

brisk coral
#

redownload them

small snow
#

its mainly ones from other plugins

#

so what do i do lol

#

is this a known issue

brisk coral
#

Did you redownload them?

small snow
#

redownload plugins that already exist?

#

whats the point

#

theyre not cloud extensions

#

if thats what you are thinking

brisk coral
#

Meaning it's an issue with the plugins itself, are you getting any errors etc?

small snow
#

no just the placeholders dont parse

brisk coral
#

Do placeholders from expansions work?

small snow
#

yes

#

just not plugins

brisk coral
#

Probably due to using an outdated dependency, but could be wrong

small snow
#

the one I am looking at rn is compiled against 2.10.6

brisk coral
#

Are you sure you're using the correct placeholders?