#dev-general

1 messages · Page 237 of 1

static zealot
#

fuck

#

weird. Same as in local but on local it looks good.

#

I know yesterday I had the same problem and after a few minutes it fixed itself I guess

forest pecan
#

in Spigot, is there an easy way to check if the player is holding onto a specific item?

#

Like for example

#

I want the player to click on a slot in the gui

#

have the item be in the cursor

obtuse gale
#

getItemInMainHand?

forest pecan
#

well

#

i would need to listen to inventoryclickevent

static zealot
#

the one that is taken in the cursor he means

obtuse gale
#

And?

forest pecan
#

cursor

#

i mena cursor

obtuse gale
#

Oh

#

Yeah that's cursor

static zealot
#

ah looks fine now. nice

#

xD

forest pecan
#

lol

static zealot
#

and its still 100%

#

I'm so good

quiet depot
#

okie my site is a 93 now i'm happy

prisma wave
#

It was me, i felt like going back to the original name for a bit

static zealot
#

ah

#

k

hot hull
#

Quick question, so if I were to instead of caching shit have a sort of pending period before the action for the user is executed, how would I properly manage that, so I'm not just delaying an action for a preset amount of time

#

@prisma wave 😏

prisma wave
#

Whats the context

static zealot
prisma wave
#

You just want a delay for each user?

hot hull
#

No, I mean wait for the data query to finish so the user has all the information gotten before performing an action (ie. opening a gui after waiting for gui data to be queried from the database)

static zealot
#

yes

#

but maybe they agreed

hot hull
#

BM, let me know if you get what I'm trying to say lol

prisma wave
#

Why not use Futures

#

Or coroutines if you're feeling fancy

#

Returning to my roots

hot hull
#

Wouldn't a future halt server shit, or am I being dumb nr

#

rn*

prisma wave
#

Not if you do the queries async

#

Which you should

hot hull
#

Ah I'm being a 4head, yea that should work

obtuse gale
hot hull
#

stop bully

half harness
#

what is a 4head

forest pecan
#

lol

half harness
#

;-;

foggy pond
#

Where do I find the download link to jvm 11?

prisma wave
#

?jdk

compact perchBOT
prisma wave
#

don't use oracle jdk

foggy pond
#

Do you suggest 11 or 15 tho

onyx loom
#

8 :clojuremoon:

foggy pond
#

Stfu

hot hull
#

@forest pecan That's beautiful, what u mean

onyx loom
#

🥲

half harness
foggy pond
half harness
#

oh

forest pecan
#

vectors exist

foggy pond
#

I'll get Java 15

#

Ookay java 15 breaks the Multiverse plugin

distant sun
#

Works for me

foggy pond
#

Could it be the version of paper I have

#

I just updated it

obtuse gale
#

Use hyperverse

foggy pond
#

Okay with Java 11 multiverse works

#

So you got a miracle there @distant sun

distant sun
faint sigil
#

Hello everyone, where can I find the repository for the maven?

obtuse gale
#

Huh? Causing lag?

#

It works absolutely fine for me thonk

half harness
#

what is

repository for the maven?

distant sun
#

I use 4.2.2-b812 @foggy pond

distant sun
faint sigil
#

For development with the DeluxeMenu API, if there is one

hot hull
#

There is none

half harness
#

everything is configured via config file

prisma wave
foggy pond
#

What is that

prisma wave
# half harness y

Licensing issues, afaik oracle jdk requires a commercial license so you could theoretically get sued for using it

half harness
#

oke

prisma wave
half harness
#

how come when I watch yt videos on jdk installation they dont have to do all the stuff that I'd need to do to download tho

#

plus the site looks different

obtuse gale
#

Because they are videos 10 to 20 years old

prisma wave
#

Oracle website sucks ass

#

I wrote my first functioning rust program 🙂

#

Advent of code day 11

#

Didn't even run into too many borrow checker issues

hot hull
#

I stopped doing AOC

prisma wave
#

aww

hot hull
#

Will do it when I have the time, since I mean you can do them afterwards

prisma wave
#

Yeah

#

Elara day 24

#

Rust day 11

obtuse gale
#

assembly when

onyx loom
#

🤨

prisma wave
#

I could probably do day 1 in assembly

#

But nothing else

#

Maybe

onyx loom
#

Hello World!

obtuse gale
#

Goodbye world Sadge

hot hull
#

The fuck

onyx loom
#

o

prisma wave
#

mov a, b
inc a

#

ez

half harness
#

lol

onyx loom
#

bruh what

prisma wave
#

that's like dont ask to ask but more passive aggressive

onyx loom
#

yea lmao

forest pecan
#

i saw it

#

lol

half harness
#

mods are scary

hot hull
#
[19:43:30 INFO]: Disconnecting com.mojang.authlib.GameProfile@7cc8454b[id=a1b72b20-97e0-476e-8a78-db9c9dcf93a4,name=Frcsty,properties={textures=[com.mojang.authlib.properties.Property@7becaa43]},legacy=false] (/**):

Please use the code jJqGuf to get whitelisted!
[19:43:30 INFO]: com.mojang.authlib.GameProfile@7cc8454b[id=a1b72b20-97e0-476e-8a78-db9c9dcf93a4,name=Frcsty,properties={textures=[com.mojang.authlib.properties.Property@7becaa43]},legacy=false] (/**) lost connection:

Please use the code jJqGuf to get whitelisted!

Now I gotta retrieve the name from this, suggestions?

prisma wave
#

GameProfile#getName()

hot hull
#

Well yea but I don't have access to that kek

#

I only have access to that message, so regex

prisma wave
#

ah

#

gross

distant sun
#

name=([a-zA-Z0-9_]{3,16}) easy

hot hull
#

thanks bb

#

I hate regex

prisma wave
#

why

#

regex is great

hot hull
#

It is, but I no like

obtuse gale
#

It's great if you know how to use it

#

Ask @forest pecan kekw

forest pecan
#

i just dont like them

obtuse gale
forest pecan
#

when you are writing regexes

#

there are bad regexes

#

and good regexes

#

you have to make sure to write the good ones

#

for example you have to keep track of certain operations such as

#

*

#

which is extremely greedy

prisma wave
#

.* 🙂

forest pecan
#

lol

half harness
#
while(true) {
    while(true) {
        while(true) {
            while(true) {
                while(true) {
                    while(true) {
                        while(true) {
                            while(true) {
                                while(true) {
                                    while(true) {
                                        new Thread("hah", ()->{ while(true){}}).start()
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}  
```what would this do
hot hull
#

Which logger should I be setting the filter for, for console messages, I assume papers?

ocean quartz
half harness
#

oh :C

prisma wave
#

well for starters it won't compile

half harness
#

oh

#

:CCC

prisma wave
#

nah it's not gonna stackoverflow, it will just really lag your pc

half harness
#

😄

prisma wave
#

it'll keep spawning new threads, which are expensive until eventually you run out of memory or the jvm crashes

half harness
#

:D

hot hull
#

PC go brrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

half harness
#

time to obfuscate and distribute malicious jar files

hot hull
#

fork bomb

half harness
#

whats a fork bomb

hot hull
#

a fork bomb

half harness
#

ok

onyx loom
#

🍴 💣

half harness
#

oooooooooo lol

#

DOS attack

#

😮

hot hull
#

Do not run that

prisma wave
#

run it

hot hull
#

or do

#

Your choice

half harness
#

i dont even know how to run it

hot hull
#

PC go brrrrrrrrrrr

prisma wave
#

it's a bash script

#

so git bash if you have that

hot hull
#

I'd run it, but pc would probs explode

#

so :kek:

onyx loom
#

good

#

time to upgrade

hot hull
#

gib money

half harness
#

buys a $20k computer

static zealot
#

how do I point my main dns something.com to another link like using CNAME or whatever I need to use. Like I know I can do it for www.something.com but it won't work when I actually go to https://something.com

half harness
#

redirect fingerguns

prisma wave
#

*

static zealot
#

ah

#

thank you sir

obtuse gale
#

hi

#

HI

#

?

#

My name is Dr Glenn Pierce

#

D:

half harness
#

lol

static zealot
#

lmao

#

still waiting for that email tho

half harness
static zealot
#

blitzgamer_88@helpch.at ...

static zealot
#

didn't receive anything yet

half harness
#

lol

#

prepared to get spammed

#

😮

static zealot
#

no ..

half harness
#

😂

static zealot
#

1 min

obtuse gale
#

sad_fingerguns help

static zealot
#

no.. I just want your apology letter efe

obtuse gale
#

pls

static zealot
obtuse gale
static zealot
#

oh xD

obtuse gale
#

lol

static zealot
#

we don't rly do that around here

obtuse gale
#

sad_fingerguns well shit good bye

static zealot
#

xD sorry mate

obtuse gale
#

they didn't leave tho fingerguns

#

im gonna

static zealot
#

no ...

obtuse gale
#

ok

#

they left

static zealot
obtuse gale
static zealot
#

idk who you emaild mate

#

huh weird

#

anyways I'll stop now

#

I did this to get revenge

#

xD

#

I did it for the no context pings

#

so I took it to the next level

#

just pinged you and said random shit

#

the randomest shit I could think of

#

for 2 hours now xD

#

I did it like 20 times today xD

#

ah

#

wait

#

how do you see that?

#

ah ok

#

lmao

#

34

#

is a random number

#

29 pings from me

#

today

#

just use search ..

#

mentions: efefury#6969 from: BlitzGamer_88#0531

short tapir
#

Hey can anyone help me out atm?

obtuse gale
#

with?

short tapir
#

I have a document that is a "txt" and I need to remove it for a texture pack but i'm not sure how to remove the "txt: part

#

"txt"*

obtuse gale
#

uuh

#

what

short tapir
#

Its in file explorer lol

half harness
#

rename the file

short tapir
#

I did it didn't change it

obtuse gale
#

bro barry stfu

prisma wave
#

what

obtuse gale
#

then rename the file

half harness
#

wut

#

u can just go to view settings

#

too

obtuse gale
#

wHaT

half harness
obtuse gale
half harness
#

right?

obtuse gale
half harness
short tapir
#

Thx Fury

half harness
#

;-;

obtuse gale
#

lol

half harness
prisma wave
#

util classes should have private constructors

half harness
#

what is dat

obtuse gale
#

yuss

prisma wave
#

yeah

half harness
prisma wave
#

because that's what causes that warning

#

if the class only has static methods

half harness
#

oh

prisma wave
#

then it shouldn't have a public constructor

#

lol

wanton sentinel
#

I made a book GUI and every time i open it i get "invalid book tag"

sage gyro
short tapir
#

Yo anyone good wit texture packs?

#

My textures are like surrounded in white

quiet depot
#

Anyone got a suggestion for a class-field separator?

#

e.g. methods are Classname#method

#

but what about for fields

#

I can't use # for both

#

I'm thinking -

#

Classname-field

#

. is also not an option, as these are used for packages

ocean quartz
#

Would % work? No particular reason, just seems similar Classname#method Classname%method

quiet depot
#

sure

#

that's better than -

quiet depot
#

yay fields are working

#

yes it's - in the url but that's because you can't use % in a url

#

the bot itself will use %

#

oh that owner should be an fqn though

#

yikes

#

actually doesn't matter there's already a package there

hardy quest
#

hi,guilds plugins is have support 1.16.4??

quiet depot
hardy quest
#

ok,thx for help .so sorry

wanton sentinel
#

How to automaticaly open bookGUI?

#

I made a bookGUI and i dont know how to make it automaticaly open onjoin

steel heart
#

You have to give the player a book thing in the hand

wanton sentinel
#

mhm

steel heart
#

Then open it

#

And then remove it

wanton sentinel
#

Thank you

#

i know how to do that 😄

steel heart
quiet depot
#

@late grove do you have any project in particular you'd like us to review?

late grove
#

Sure, can we move to DMs?

quiet depot
#

sure

#

my pms are open, no need for fr

hot hull
#

Rekt

hot hull
#

:what:

obtuse gale
#

question

#

i will open my network today. before connecting the separate servers to the network i had low ping (60-90) but right after connecting the server to the network, my ping won't go below 180

#

any idea of why could that be?

wanton sentinel
#

lag

obtuse gale
#

lag isn't the cause

#

lag is the consequence lmao

steel heart
#

ye lag is the cause tho kappa

forest pecan
steel heart
#

@prisma wave is ur repo hosted on a vps?

#

like the remote storage location

quiet depot
#

i'm not bm but i have a repo and a vps

#

and I can say I host my repo on my vps

steel heart
#

hmm okay

steel heart
#

how big?

#

😮

static zealot
#

12

prisma wave
#

storage?

#

200GB i think

quiet depot
#

nexus takes ~1GB, saying that as your question was ambiguous

prisma wave
#

yeah

#

¯_(ツ)_/¯

obtuse gale
forest pecan
#

I was about to quote that

#

you stole it

obtuse gale
#

no

#

I beat you

forest pecan
#

fu

quiet depot
#

can u guys pls switch ur names back

#

it's annoying

forest pecan
#

obay

quiet depot
#

obey

prisma wave
#

mc protocol sucks

quiet depot
#

old news

onyx loom
#

u suck

prisma wave
#

and then i get this

#

like what

quiet depot
#

why are you messing with the protocol

#

and are you doing that manually or with mcprotocollib?

prisma wave
#

neither, making my own server impl

quiet depot
#

what l;ang?

static zealot
#

agopahgoash

#

its a new and cool language

onyx loom
#

elara

static zealot
#

that just got made ya know. it has some nice features

#

like only BM understanding it

prisma wave
#

Kotlin atm, trying to make an ultra multithreaded one

#

Except it doesn't work 🥲

quiet depot
#

well

#

take a look at mcprotocollib for inspiration

#

and sxtanna's project

prisma wave
#

Hmm

#

Ah yeah golangmc

quiet depot
#

nah

#

he has a kotlin server too

prisma wave
#

Oh yeah

#

I'm pretty sure they're both kinda outdated

#

I just can't figure out why the client isn't sending the right data

onyx loom
#

hacked client

obtuse gale
#

BM hacking

prisma wave
#

NEVERMIND

#

i got it working 😄

#

the library im using invokes the handle callback once per connection, not once per packet

#

therefore i am a 4head

quiet depot
#

wew

#

huge speed reductions

#

got 1.16.4 indexing in 3 seconds

#

versus like 30 seconds standalone, upwards of 200 seconds when indexing alongside other things

onyx loom
#

damn

quiet depot
#

yeah turns out I had a bunch of duplicates

#

was scanning everything like 12 times more than it needed to be scanned

prisma wave
#

optimising is so fun

dawn hinge
#

yessir

steel heart
#

ah yes so fun

jovial warren
#

it is satisfying when you see the speed differences

hot hull
#

So close to having it working, yet jda has a billion retarded ass transitive dependencies so it keeps breaking

quiet depot
#

trove aint retarded

#

trove is super useful

hot hull
#

Yea but no runtime dependencies lib can properly use it lol

quiet depot
#

i gotta re learn jda

#

docdex is basically finished which means it's time to make a bot

hot hull
#

BM, including PDM yes

prisma wave
#

😦

hot hull
#

Legit the only thing I need runtimed and it doesn't want to :C

prisma wave
#

you tried adding the trove dependency manually

#

it's not perfect but should work

hot hull
#

kinda defeats the purpouse does it not? :p

prisma wave
#

a little bit

#

but it's a workaround

hot hull
#

The dude is using JDA in his example for the lib, yet it doesn't download properly, smh

frigid badge
#

@hot hull discordsrv better

#

😛

hot hull
#

Does it provide the same shit?

#

@prisma wave Trying PDM again, solely for JDA, if it doesn't work, I'm getting the suislide

prisma wave
#

Fair enough

onyx loom
#

:kek:

frigid badge
#

discordsrv is a plugin

hot hull
#

oh that shit

#

:))

oak coyote
#

I feel that frosty once you get it working it’s great though

static zealot
#

xD

oak coyote
#

Also for those who saw my message about it being a weakness it wasn’t just my clients were being people and blaming the first thing that comes to mind when the issue wasn’t mine it was there’s.

hot hull
#

:huh:

oak coyote
#

I had a nightmare 2 days ago where my JDA bot was blamed for a small data breach

#

It wasn’t my bot that caused it. it was there lack of security on the server end.

onyx loom
#

lol

hot hull
#

BM, instructions unclear, made soup

[16:00:46 WARN]: [DiscordWhitelist] There were no dependencies to load! This might be intentional, but if not, check your dependencies configuration!

quiet depot
#

I find "no u" to be an exceptionally adequate response in these situations

onyx loom
#

🤣

#

no u literally works with everything, i love it

oak coyote
#

Yeah it was a whole ordeal it was made worse by the guy being annoyed at their anti bot feature as he then said don’t use “bots” which they assumed meant my bot

#

The issue with the data breaches being Spanish I guess 🤦‍♂️ their English isn’t perfect

hot hull
#

@prisma wave My dissapointment is immesureable, and my day is ruined

onyx loom
#

smh just fix pdm bm, not hard

hot hull
#

Anyone know of any other runtime deps libraries?

oak coyote
#

Are you not just compiling the entire JDA dependency into the jar?

onyx loom
#

shading 🌝

hot hull
#

The idea is not to shade 10mb into it

oak coyote
#

Well it works if you do 🤷‍♂️😂

hot hull
#

Jerry.. I know it does, Gian just doesn't want a 10mb sized jar

oak coyote
#

Providing it to people is a challenge but still

onyx loom
#

smh

#

pdm just relocates that 10mb somewhere else

#

it still gonna be 10mb somewhere 🙃

prisma wave
#

relocates

#

Yeah

hot hull
#

I mean the issue is that JDA has so many transitive deps

prisma wave
#

Something like that

onyx loom
#

u know what i mean

hot hull
#

Since it works with any other dependency lol

prisma wave
#

I am aware of these issues however as of now I am not aware of a fix

#

Apart from adding all transitives manually

hot hull
#

Yea no worries, Gian gonna be sad but 🤷

prisma wave
#

Would you like to subscribe to our mailing list to find about PDM fixes when they eventually happen?

oak coyote
#

Well poor Gian they will live..

hot hull
#

@quiet depot How bout you make a runtime dependecies lib 😏

quiet depot
#

no

hot hull
#

Worth a shot

quiet depot
#

i saw one the other day though

#

on spigot

#

just look on spigot

hot hull
#

Tried it

quiet depot
#

it should be a recent post

hot hull
#

Doesn't work kek

onyx loom
#

on spigot

oak coyote
#

@prisma wave I’ll subscribe to that

prisma wave
#

Great

#

Ok

surreal quarry
#

wait what i thought transitives worked

prisma wave
#

they do most of the time

#

JDA and a few other things just have super complex poms that kill PDM and presumably other libs

hot hull
#

James, test out latest JDA for me if you have time and see if it works

quiet depot
#

have you guys seen this mr krabs ketamine game

#

I just joined a vc where my friend was playing it and streaming

#

i don't even know what I just watched

oak coyote
#

Huh?

quiet depot
#

the game is called "Mr. Krabs Overdoses On Ketamine"

onyx loom
#

what about that game u streamed pig 🙃

quiet depot
#

lol genital jousting

onyx loom
#

😏

quiet depot
#

genital jousting is a fantastic game

oak coyote
#

You played that 🤦‍♂️

oak coyote
#

It is such an odd game

quiet depot
#

game trailer

#

i'm honestly so happy that this has released in 2020

#

brings a really good end to the year

hot hull
#

I would prefer zombies

#

But ok

oak coyote
#

This shows the state of humanity in 2020 it is beautiful

quiet depot
#

it's beautiful

surreal quarry
hot hull
#

It's missing okio

surreal quarry
#

ah ok

#

i guess you could try to manually add it to the dep.json

prisma wave
#

dont do that

surreal quarry
#

nvm dont do that

prisma wave
#

just add the dependency manually

#

also

#

because you have a graph of about 5 interconnected poms with placeholders from other poms and it sucks

surreal quarry
prisma wave
#

yea because the placeholder should've been resolved

#

it just wasnt

forest pecan
#

ive got a challange for someone

#

make a plugin

#

but you can ONLY copy and paste

#

from stackoverflow

#

you cant type any extra statements

#

or anything like that

#

ONLY copy and paste

quiet depot
#

pulse where are you from?

forest pecan
#

massachusetts

quiet depot
#

damn

#

oh well

forest pecan
#

united states

quiet depot
#

anyway

forest pecan
#

lol

quiet depot
#

I accept your challenge, and outsource it to you

#

would've been better if you were indian

#

and possibly racist

forest pecan
#

me chinese tho

#

xD

quiet depot
#

k

frail glade
quiet depot
frail glade
#

Oh rip

#

I was just stalking forums

hot hull
#

Read the comments.

quiet depot
#

i always stalk the forums

#

forums are fun

frail glade
#

Well if it doesn't do transitive

quiet depot
#

@hot hull if you need this super badly

#

look in spigot server, where me and heretere were having a conversation

#

he made his own dependency downloader which has relocations

#

I think it fully works

hot hull
#

Will do, anything to make Gian happy

quiet depot
#

there should be a github link somewhere in the convo

#

if not, tag heretere

frail glade
#

Pdm is so good if only the relocations were done :(

hot hull
#

Playing bf4 so reversed_fingerguns

quiet depot
#

docdex in helpchat soon™️

frail glade
#

What's that

quiet depot
#

you'll see

#

hopefully before I go to bed

#

there's a part of it

forest pecan
#

what time you sleep at

quiet depot
#

yes

forest pecan
#

me 2

foggy pond
#

Bruh been studying C for the past few months

#

Gotta say that it's honestly kinda trash

#

Going from Java to C is like going from using Windows 10 to using windows XP

#

Especially cause in my university course we gotta follow very strict standards, like 72 characters per line and not being able to have functions (methods) longer than 7 lines

prisma wave
#

you can't really compare the 2 though

hot hull
#

Shit standards lmao

prisma wave
#

the 72 characters one makes sense

#

the 7 lines one is a bit strange

hot hull
#

Well I mean yea so it's readable, doesn't take a standard to do that

prisma wave
#

but that's the point of a standard xd

quiet depot
#

hey guys wanna see something

hot hull
#

I'm saying it's common sense

quiet depot
#

d>doc 1.16.4 player

hot hull
#

L

quiet depot
#

might need perms

#

d>doc 1.16.4 player

prisma wave
#

lol

hot hull
#

Good thing cube ain't around as you break everything

quiet depot
#

wtf

#

this worked like 5 seconds ago in a priv channel

hot hull
#

Kek

quiet depot
#

d>doc 1.16.4 player

half harness
#

?

quiet depot
#

oh it needs embed perms woops

#

d>doc 1.16.4 player

ruby craterBOT
#
1.16.4
org.bukkit.entity.Player

public Interface Player

Description:

Represents a player, connected or not

Deprecation Message:

null

half harness
#

woah

#

do I have perms :>

prisma wave
#

nice

#

d>doc 1.16.4 PotionEffect

ruby craterBOT
#
1.16.4
org.bukkit.potion.PotionEffect

public Class PotionEffect

Description:

Represents a potion effect, that can be added to a LivingEntity. A potion effect has a duration that it will last for, an amplifier that will enhance its effects, and a PotionEffectType, that represents its effect on an entity.

Deprecation Message:

null

half harness
#

d>doc 1.16.4 player

ruby craterBOT
#
1.16.4
org.bukkit.entity.Player

public Interface Player

Description:

Represents a player, connected or not

Deprecation Message:

null

half harness
#

🙂

prisma wave
#

hot

half harness
#

d>help

ruby craterBOT
#

doc - search a javadoc
help - this page.

half harness
#

oh

#

ok

#

d>doc

quiet depot
#

lol

half harness
#

d>doc 1.16 bukkit

prisma wave
#

d> doc "" \n

ruby craterBOT
#

doc - search a javadoc
help - this page.

prisma wave
#

lol

#

d>doc "" \n

quiet depot
#

wow rude

half harness
#

d>doc 1.16.4 bukkit

quiet depot
#

you made it error bm

ruby craterBOT
#
1.16.4
org.bukkit.Bukkit

public final Class Bukkit

Description:

Represents the Bukkit core, for version and Server singleton handling

Deprecation Message:

null

prisma wave
#

lmao sorry

half harness
#

?

quiet depot
#

1.16 isn't a valid javadoc dkim

half harness
#

what does d>doc "" \n do

quiet depot
#

d>doc 1.16.1 player

ruby craterBOT
#
1.16.1
org.bukkit.entity.Player

public Interface Player

Description:

Represents a player, connected or not

Deprecation Message:

null

quiet depot
#

d>doc 1.8.8 player

hot hull
#

d>doc 1.16.4 What the fuck

ruby craterBOT
#
1.8.8
org.bukkit.entity.Player

public Interface Player

Description:

Represents a player, connected or not

Deprecation Message:

null

#
1.16.4
org.bukkit.entity.Ghast

public Interface Ghast

Description:

Represents a Ghast.

Deprecation Message:

null

half harness
#

lol

prisma wave
#

well it did something

half harness
#

d>doc 1.8.8 something

ruby craterBOT
#
1.8.8
org.bukkit.potion.Potion

public Class Potion

Description:

Represents a minecraft potion

Deprecation Message:

null

half harness
#

ooo

#

y is the prefix d> tho

quiet depot
#

docdex

#

d

half harness
#

it should be like ! :>

quiet depot
#

nah

half harness
#

d> is too long and complicated

ruby craterBOT
#

doc - search a javadoc
help - this page.

half harness
#

whereas ? and ! are common and one character

quiet depot
#

d>doc 1.16.4 player#getname

ruby craterBOT
#
1.16.4
org.bukkit.command.CommandSender#getName

@org.jetbrains.annotations.NotNull
String getName()

Description:

Gets the name of this command sender

Deprecation Message:

null

half harness
#

ooOOOOooooo

#

wait

quiet depot
#

d>doc 1.16.4 treespecies%birch

ruby craterBOT
#
1.16.4
org.bukkit.TreeSpecies%BIRCH

static public final TreeSpecies BIRCH

Description:

Represents birches.

Deprecation Message:

null

half harness
#

thats commandsender

quiet depot
#

player inherits getname from commandsender

half harness
#

o

#

d>doc piggy

#

oops

#

d>doc 1.16.3 piggypiglet

ruby craterBOT
#
1.16.3
org.bukkit.event.entity.PigZapEvent

public Class PigZapEvent

Description:

Stores data for pigs being zapped

Deprecation Message:

null

half harness
#

pigzap?

prisma wave
#

can we have 1.16.4 be default version

half harness
#

oh

quiet depot
#

maybe bm

#

it's super early stages atm

half harness
#

what is bm

quiet depot
#

brister mitten

prisma wave
#

lol

#

okay

quiet depot
#

"static public final"

#

I'm going to have to use lists instead of sets to preserve order

#

yuck

prisma wave
#

LinkedHashSet?

quiet depot
#

maybe

#

but arraylist is probably more efficient at that point, no?

prisma wave
#

idk tbh

quiet depot
#

eh i'm not going to pretend like I know shit about these data structures

prisma wave
#

but it's only gonna be like 4 elements

quiet depot
#

ye ig

#

i wonder if params work right

prisma wave
#

wdym?

quiet depot
#

d>doc 1.16.4 player#setname

ruby craterBOT
#
1.16.4
org.bukkit.command.CommandSender#getName

@org.jetbrains.annotations.NotNull
String getName()

Description:

Gets the name of this command sender

Deprecation Message:

null

prisma wave
#

afaik LinkedHashSet is only slightly slower than a normal hashset

#

ah

quiet depot
#

oops

half harness
#

d>doc 1.16.4 BristerMitten

quiet depot
#

d>doc 1.16.4 player#setdisplay

ruby craterBOT
#
1.16.4
org.bukkit.plugin.RegisteredListener

public Class RegisteredListener

Description:

Stores relevant information for plugin listeners

Deprecation Message:

null

#
1.16.4
org.bukkit.entity.Player#setDisplayName

void setDisplayName(@Nullable String name)

Description:

Sets the "friendly" name to display of this player. This may include color. Note that this name will not be displayed in game, only in chat and places defined by plugins.

Deprecation Message:

null

quiet depot
#

cool

#

they do

#

although that's missing it's public modifier

hot hull
#

Remove the deprecation message text if there is none

quiet depot
#

it's meant to

#

not sure why that's still there

half harness
#

d>doc player#sethealth

#

d>doc 1.16.4 player#sethealth

ruby craterBOT
#
1.16.4
org.bukkit.entity.Damageable#setHealth

void setHealth(double health)

Description:

Sets the entity's health from 0 to getMaxHealth(), where 0 is dead.

Deprecation Message:

null

half harness
#

oh

#

i thought that was deprecated

hot hull
#

d>doc 1.16.4 player#spigot

ruby craterBOT
#
1.16.4
org.bukkit.command.CommandSender#spigot

@org.jetbrains.annotations.NotNull
CommandSender.Spigot spigot()

Description:

Deprecation Message:

null

prisma wave
#

setMaxHealth is deprecated

#

not setHealth

half harness
#

d>dock 1.16.4 player#setmaxhelth

hot hull
#

helth

#

Yes

quiet depot
#

keep helth

blazing walrus
#

dock

quiet depot
#

don't spell health

#

it'll work

#

it should work

half harness
#

d>doc 1.16.4 player#setmaxhealth

ruby craterBOT
#
1.16.4
org.bukkit.entity.Damageable#setMaxHealth

@java.lang.Deprecated
void setMaxHealth(double health)

Description:

Sets the maximum health this entity can have. If the health of the entity is above the value provided it will be set to that value. Note: An entity with a health bar (Player, EnderDragon, Wither, etc...} will have their bar scaled accordingly.

Deprecation Message:

null

half harness
#

um

quiet depot
#

d>doc 1.16.4 player@setmaxhelth

ruby craterBOT
#
1.16.4
org.bukkit.event.player.PlayerItemHeldEvent

public Class PlayerItemHeldEvent

Description:

Fired when a player changes their currently held item

Deprecation Message:

null

quiet depot
#

oops

#

d>doc 1.16.4 player#setmaxhelth

ruby craterBOT
#
1.16.4
org.bukkit.entity.Damageable#setMaxHealth

@java.lang.Deprecated
void setMaxHealth(double health)

Description:

Sets the maximum health this entity can have. If the health of the entity is above the value provided it will be set to that value. Note: An entity with a health bar (Player, EnderDragon, Wither, etc...} will have their bar scaled accordingly.

Deprecation Message:

null

hot hull
#

d>doc 1.16.4 player#setmaxhelth

ruby craterBOT
#
1.16.4
org.bukkit.entity.Damageable#setMaxHealth

@java.lang.Deprecated
void setMaxHealth(double health)

Description:

Sets the maximum health this entity can have. If the health of the entity is above the value provided it will be set to that value. Note: An entity with a health bar (Player, EnderDragon, Wither, etc...} will have their bar scaled accordingly.

Deprecation Message:

null

quiet depot
#

d>doc 1.16.4 playah

ruby craterBOT
#
1.16.4
org.bukkit.entity.Player

public Interface Player

Description:

Represents a player, connected or not

Deprecation Message:

null

quiet depot
#

it fixes ur spelling

#

most of the time

half harness
#

d>doc 1.16.4 🙂

ruby craterBOT
#
1.16.4
org.bukkit.entity.Explosive

public Interface Explosive

Description:

A representation of an explosive entity

Deprecation Message:

null

half harness
#

d>dock 1.16.4 _ _

prisma wave
#

d>doc 1.16.4 asyncplayerlogin

ruby craterBOT
#
1.16.4
org.bukkit.event.player.AsyncPlayerPreLoginEvent

public Class AsyncPlayerPreLoginEvent

Description:

Stores details for players attempting to log in. This event is asynchronous, and not run using main thread.

Deprecation Message:

null

prisma wave
#

nice

half harness
#

AH

#

I CANT SPELL

#

d>doc 1.16.4 _ _

ruby craterBOT
#
1.16.4
org.bukkit.entity.Explosive

public Interface Explosive

Description:

A representation of an explosive entity

Deprecation Message:

null

half harness
#

whys it always go to explosive

#

d>doc 1.16.4 ** **

ruby craterBOT
#
1.16.4
org.bukkit.entity.Explosive

public Interface Explosive

Description:

A representation of an explosive entity

Deprecation Message:

null

half harness
#

;-;

surreal quarry
#

new bot?

quiet depot
#

must be the first element it finds

#

yeah james

#

wip

half harness
#

read the docs emoji fingerguns

surreal quarry
#

nice

foggy pond
prisma wave
#

it's C though

half harness
#

ALMOST 2021

dawn hinge
#

d>doc 1.7.10 player

foggy pond
#

I set my standard with Java using IntelliJ to be 121 characters

quiet depot
#

I turned it off tofpu

#

2 secs

dawn hinge
#

ok

quiet depot
#

d>doc 1.7.10 player

ruby craterBOT
#
1.7.10
org.bukkit.entity.Player

public Interface Player

Description:

Represents a player, connected or not

Deprecation Message:

null

half harness
#

wdym

surreal quarry
#

d>doc player

half harness
#

d>doc test

surreal quarry
#

you have to include version i guess lol

half harness
#

d>doc 1.16.4_ _

#

d>doc 1.16.4

#

d>doc 1.16.4** **

#

d>doc 1.16.4 ** **

ruby craterBOT
#
1.16.4
org.bukkit.entity.Explosive

public Interface Explosive

Description:

A representation of an explosive entity

Deprecation Message:

null

quiet depot
#

pls

dawn hinge
#

chill

half harness
#

ok

quiet depot
#

okie

#

i'm getting off for the night

frail glade
#

Ooo I remember this being discussed

ocean quartz
#

Awesome work @quiet depot!

old wyvern
#

d>doc 1.8 Chat

#

welp

half harness
#

huh

#

d>doc 1.8.8 chat

#

oh the bot is offline

forest pecan
steel heart
#

lol

forest pecan
#

lol

steel heart
#

bruh

#

why is that a thing

surreal quarry
#

is the best way to programatically write comments into a yml config File#writeText?

steel heart
#

oh ye snakeyml doesnt support comments right?

surreal quarry
#

thats what im wondering but i dont think so unfortunately

steel heart
#

yeah probably then

obtuse gale
#

Snakeyaml engine

#

Not snakeyaml

steel heart
#

Idk

#

I dont use snakeyaml anyway

obtuse gale
#

It's pointed out in their docs

surreal quarry
#

i thought that was still in progress

#

it wasn't documented on your wiki

ocean quartz
#

And it's finished, just got too lazy to document it

half harness
#

where is it 👀

surreal quarry
#

oh raw

#

im gonna have to use that

ocean quartz
#
maven { url = "https://repo.mattstudios.me/artifactory/public/" }
implementation "me.mattstudios:triumph-config:1.0.1-SNAPSHOT"

Or if you're using my gradle plugin

triumph {
  config "1.0.1-SNAPSHOT"
}
half harness
#

also

#

how do u use it 😄

surreal quarry
#

the screenshot he sent lol

half harness
#

thats kotlin ;-;

onyx loom
#

🥲

#

just learn kotlin 4head

surreal quarry
#

you would change like 1 thing

half harness
#

WHAT IS 4HEAD?

surreal quarry
#

4head

half harness
static zealot
surreal quarry
#

you would change val to whatever the type is

ocean quartz
half harness
#

.kt

static zealot
half harness
#

uh

#

sure?

surreal quarry
#

dkim its literally the same as java except for a couple things

#

you should be able to parse your way through it

static zealot
half harness
static zealot
#

not sure aboiut that

#

4*

#

4head ...

ocean quartz
#

And to create the config file it's

val settingsManager = SettingsManager.from(File(plugin.dataFolder, "config.yml"))
                .configurationData(Settings::java.class)
                .create()

// Get property
settingsManager.getProperty(property)

// Reload
settingsManager.reload()
half harness
#

Twitch Emote. Used when streamer makes cheesy / dad jokes or "it is easy, just practice 25 hours a day" type of statements.

static zealot
#

yes

#

and 5head = big brain

half harness
ocean quartz
#

I can convert the first property to Java for you as an example

static zealot
#

wait Matt Config is finished?

#

nice

#

6head = modern Australian restaurant xD

obtuse gale
#

lol

surreal quarry
#

@ocean quartz can I also use this as the config file or will that get messy? I'd assume it will be fine as long as I dont plugin#saveConfig or whatever

#

wait im a dumbass

#

you use the config in the example

#

soz for ping lol

static zealot
#

lol

#

lmao

#

lmafo

#

haha

#

xD

#

🙂

ocean quartz
#

@half harness Here is the same thing in the beginning but in Java, it looks so bad

public class Settings implements SettingsHolder {
  
  private Settings() {}
  
  @Comment({
    "Your comment here.",
    "Another line here."
  })
  @Path("formats")
  public static final Property<Map<String, FormatDisplay> FORMATS = Property.create(ChatFormat.class, Map.of("default", DEFAULT_FORMAT));

}
ocean quartz
static zealot
#

not going to use it but nice

half harness
#

What does the ChatFormat.class thing do

ocean quartz
#

That is used for bean properties, you don't really need to know about that if you're not going to use it, basically it's telling it that the property needs to be that specific class

#

Since the class is an interface, i made it so you can use a targeted mapper to decide which implementation to use

half harness
#

idk what proprties are ;-;

ocean quartz
#

Property is the combination of field, getter, and setter

half harness
#

tHiS iS tOo CoNfUsInG

static zealot
#

no its not

#

lmao

ocean quartz
#

I mean you're the one that asked for it .-.

static zealot
#

its ezz

half harness
#

🇭 🇦 🇷 🇩

static zealot
#

wait TriumphConfig was made because dkim asked you to make it/

half harness
#

huh?

#

oh

#

sorry dyno

ocean quartz
#

This is as simple as it gets

public class Settings implements SettingsHolder {
  
  private Settings() {}
  
  @Comment({
    "Your comment here.",
    "Another line here."
  })
  @Path("name")
  public static final Property<String> NAME = Property.create("Matt");

}

Will turn into:

# Your comment here.
# Another line here.
name: "Matt"
remote goblet
#

very cool

ocean quartz
static zealot
#

ah

#

wait

half harness
#

uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

static zealot
#

won't it create yml name: Matt ?

ocean quartz
#

Nope it's String

static zealot
#

I'm to smart for you matt

#

ye

#

but

#

ugh

remote goblet
#

FileConfiguration#set usually does cause its a clown

ocean quartz
#

You don't like it with the "?

static zealot
#

nah I don't mind it

#

xD

half harness
#

isn't it the same?

static zealot
#

I just thought its like the bukkit config where it sets "" only when it has special characters

#

and I think ConfigMe has it too. Thought its a default thing lmao

obtuse gale
ocean quartz
#

Bukkit uses ' '

#

ConfigMe uses nothing

#

Btw mine is just ConfigMe with a LOT of changes

half harness
obtuse gale
static zealot
#

@half harness my guy you gotta learn to google from time to time lmao

half harness
#

¯_(ツ)_/¯

static zealot
#

dw I'm the same

#

but I like telling people what to do

#

lmao

half harness
#

(╯°□°)╯︵ ┻\━┻

static zealot
#

┬─┬ ノ( ゜-゜ノ)

half harness
#

;-;

surreal quarry
#

?docs

compact perchBOT
half harness
#

i know

static zealot
#

you know? why do you ask then

half harness
#

nvm 🙄

static zealot
#

ah yes very informative

#

[PlaceholderAPI] Error loading PlaceholderAPI v2.10.9 please contact author!

onyx loom
#

plugin is opensource smh, just fix it urself 🥲

static zealot
#

....

#

what the hell am I suppose to do ?

#

that plugin is like 500k lines

onyx loom
#

fix it urself
🌝

static zealot
#

not going to go thru all to see what the problem is

#

lmao

#

its not even for me

#

for me PAPI always works xD

#

yo an apex domain is basically * right?

#

well that's how I set it right?

lavish notch
#

In 1.8, how do I get the block hit by a projectile?

old wyvern
#

ProjectileHitEvent + add Direction vector to projectile's location

surreal quarry
#

@ocean quartz what would this look like as a Property.create

colors:
  gray: "&8"
  red: "&c"```
right now im doing something like
```kotlin
    @Path("colors")
    val COLORS = Property.create(MutableMap<String, String>::class.java, mutableMapOf(
        "gray" to "&8",
    ))
#

oh wait can i just do a map and remove the first param

#

i think i can

ocean quartz
#

It'd be just String::class.java instead of map there

surreal quarry
#

would that do the same thing as just Property.create(mutableMapOf(...))

ocean quartz
#

It wouldn't, a small limitation of map, you'll have to specify the type, in that case String

surreal quarry
#

ok ty

main fox
#

19.12 02:47:34 [Server] INFO ... 18 more
19.12 02:47:34 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.13.2.jar:git-Spigot-a1f2566-a4c555b]
19.12 02:47:34 [Server] INFO at me.clip.deluxechat.MessageCommand.onCommand(MessageCommand.java:296) ~[?:?]
19.12 02:47:34 [Server] INFO at me.clip.deluxechat.placeholders.PlaceholderHandler.setRecipPlaceholders(PlaceholderHandler.java:140) ~[?:?]
19.12 02:47:34 [Server] INFO Caused by: java.lang.NoSuchMethodError: me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()Lme/clip/placeholderapi/expansion/manager/LocalExpansionManager;
19.12 02:47:34 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
19.12 02:47:34 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.2.jar:git-Spigot-a1f2566-a4c555b]
19.12 02:47:34 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.2.jar:git-Spigot-a1f2566-a4c555b]
19.12 02:47:34 [Server] INFO at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-a1f2566-a4c555b]
19.12 02:47:34 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot-1.13.2.jar:git-Spigot-a1f2566-a4c555b]
19.12 02:47:34 [Server] INFO at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.2.jar:git-Spigot-a1f2566-a4c555b]
19.12 02:47:34 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_211]
19.12 02:47:34 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_211]

compact perchBOT
main fox
#

help pls

ocean quartz
#

Wrong channel

main fox
#

ok thx

main fox
ocean quartz
main fox
#

yesterday

#

deluxechat

ocean quartz
#

You might need to wait a bit longer for the database to be updated

main fox
#

okay

oak coyote
#

So I’m curious we use constructors to pass the main class into other classes does this improve performance or is more due to being more appropriate and better coding practice. I am also asking about stuff that falls under similar circumstances.

quiet depot
#

best practice

#

there's two things going for dependency injection over the alternative, static singletons

#

first, it abides by the oop principles

oak coyote
#

So same with public variables being instead private and accessing through getters and setters

#

Yeah I was going to say OOP but didn’t in case if I was wrong 😂

quiet depot
#

second, it makes your code more something

#

can't remember the word right now

#

it's todo with testing though

oak coyote
#

I think I know the word but I’ve also forgot it is 5 am

#

Encapsulated

#

?

quiet depot
#

no

#

I don't think that's it

#

kind of similar though

#

it falls under the broad term of maintainability

ocean quartz
#

Basically instead of having your dependencies public everywhere to everything, you just have it to specific things that actually need it

quiet depot
#

there's a specific word for it though

#

reusability

#

that's it

#

I think

oak coyote
#

Yeah just I realised I follow the theory but not entirely sure why minus just to abide by OOP

quiet depot
#

with static stuff, your shit is bound to the class

#

if you have an enforced jvm singleton, that's it

#

that class will always be the same

#

it's impossible to isolate it for testing

#

it can only be used for one thing

#

it can't be reused

#

this decreases maintainability and makes it impossible to test

oak coyote
#

but accessing others main classes using static calls is fine right

quiet depot
#

only in the instance of spigot

#

with spigot, you should use a static getter for your main class

#

it's stupid not to

oak coyote
#

Just easy to understand and use

quiet depot
#

unless you have a good reason like you're using guice and it's about the same amount of code to just @Inject it

#

spigot's javaplugin is already an enforced jvm singleton

#

so it's fine to get it's instance via a static getter

#

you shouldn't use the pattern anywhere else though

#

it's unneeded in an oo codebase

oak coyote
#

Yeah I’m factions uuid currently I’m sure you’d love to see what stuff they have done

#

Static calls are everywhere

quiet depot
#

I'd hope that's just legacy code

#

there purely for compatibility

ocean quartz
#

Oh, 98% of spigot plugins are like that

oak coyote
#

Some of it isn’t really compatibility issues though

#

As it’s calls upon itself

quiet depot
#

yeah well lots of plugin developers also don't really care about code quality

oak coyote
#

You can instead just do it properly

#

I do

ocean quartz
#

There is so many people here that come asking for help that think static is used to make things accessible from other classes

oak coyote
#

I rewrote one of my plugins recently to use a interface cause they are cool

#

Even after research I don’t really see why we do it entirely but it’s cool 😂

quiet depot
#

how long you been coding in java jerry?

oak coyote
#

2.5 years now it’s depressing

quiet depot
#

ah

oak coyote
#

Getting closer to 3 now

quiet depot
#

have you always cared about quality, or is it just a recent thing?

oak coyote
#

I was taught by someone who cared

#

So it’s been a permanent thing

quiet depot
#

right

#

you should take a look at guice

#

it's nice

#

and it took a while for me to see the beauty of interfaces too

#

I used to only use abstract classes