#dev-general

1 messages ยท Page 532 of 1

static zealot
#

what about craftbukkit("1.7.10")

#

will that work as well?

ocean quartz
#

no

static zealot
#

๐Ÿ˜ญ

distant sun
#

Thats my boy@ocean quartz

static zealot
#

yo is there really no good library or plugin for Paginated holograms or whatever?

sly sonnet
#

What are you using to make your build.gradle dep list look so clean?

#

or is it how gradle works, idk, i use maven :P

ocean quartz
#

It's a plugin I made for Gradle that makes it look like that

sly sonnet
#

is it possible to get it?

ocean quartz
#

Yeah, id("me.mattstudios.triumph") version "0.2.0" only work on KTS Gradle for now though

sly sonnet
#

Ok. I might start learning kotlin. Also switch to gradle, everyone says it is better

#

ยฏ\_(ใƒ„)_/ยฏ

ocean quartz
#

It is yeah ;p

sly sonnet
#

Ok, thanks though.

prisma wave
#

i see someone mention learning kotlin

#

therefore

sly sonnet
#

yes

prisma wave
#

i must say

sly sonnet
#

say what?

static zealot
#

Haskell bad

#

?

prisma wave
sly sonnet
#

Is there any reason to do so?

half harness
#

well

sly sonnet
#

I dont want to learn it if there is no real reason. Saying that haskel is good or bad is not a objective reason.

onyx loom
#

๐Ÿ’€

half harness
#

lol

distant sun
#

No is not

prisma wave
#

a) it makes you a better programmer as it introduces a different way of solving problems
b) you can act smart by saying things like "monad" and "parametric polymorphism" and "higher kinded types"
c) haskell good
d) haskell good
e) it's used in industry in some places (finance, language parsing, etc)

ocean quartz
#

Very compelling b, c, and d, points

prisma wave
#

i thought so too

lunar cypress
#

I'm mostly concerned with b)

prisma wave
#

why

lunar cypress
#

wdym why

prisma wave
#

whats wrong with b

lunar cypress
#

nothing

prisma wave
#

it's a good reason to learn

#

good

lunar cypress
#

I said it's the most of my concern which can also mean I'm the most interested in it

#

can it not

prisma wave
#

oh i see

#

misunderstood you

#

well

#

i feel the same way

sly sonnet
#

can i make spigot plugins with haskell?

prisma wave
#

hmm

#

no BUT

#

well maybe

#

sort of

#

depends how partial to JNI with a C glue you are

ocean quartz
#

Short answer, no
Long answer, definitely no

prisma wave
#

long answer is sort of

#

longer answer is wait for elara

ocean quartz
#

I challenge you to do it

prisma wave
#

i almost did before

#

jni just sucks ๐Ÿ˜ฉ

ocean quartz
#

Just a simple command that says "Ha! I did it!"

prisma wave
#

depends how much you want written in haskell

#

because it's definitely possible

sly sonnet
#

i mean like full haskell plugin

prisma wave
#

i've done java <> haskell before with jni as a bridge, but it's not pretty

prisma wave
#

wait for elara and yes

onyx loom
#

when

prisma wave
#

idk

ocean quartz
#

"Tomorrow"

prisma wave
#

probably

onyx loom
#

hmmm

static zealot
#

I Finished the sentence for you

static zealot
#

when you have to add 100 debug messages ๐Ÿฅฒ

#

2 code lines, 1 debug line, 2 code lines, 1 debug line

ocean quartz
#

GitKraken looks quite pretty when there is a lot of branch changes

static zealot
#

o

#

every single yellow line is a new debug line. and this is just a small part of what I've done already ๐Ÿ˜ญ

cinder flare
static zealot
#

that's the whole point

#

he wants to make spigot plugins. not something else

cinder flare
#

Well then improving your programming ability and general problem solving skillset does not seem to be of high importance

#

In that case, you'd want to stick with Java or Kotlin

static zealot
#

ugh star

#

you have to understand time is limited

cinder flare
#

But if you're aspiring to be any more, you'd want Haskell ๐Ÿ™‚

static zealot
#

I can't just learn every language bcz you want me to

cinder flare
#

bro you're like 19

#

you've got years to grow and improve

static zealot
#

I'm talking in general

#

exactly

cinder flare
#

exactly

static zealot
#

I am going to improve in what I need now

#

and then later maybe

cinder flare
#

Well of course

#

Everyone has their priorities, you gotta do a cost-benefit analysis of what would help the most, or at least what you're feeling

static zealot
#

exactly. that's the reason some should stop shoving haskell up everyone's ass

cinder flare
#

As a person currently enrolled in university and doing my best to learn and grow and expand my problem solving skillset, learning a functional language like Scala or Haskell is very much in my interest

cinder flare
#

but he has good intentions at heart

static zealot
#

not saying he doesn't

static zealot
last patrol
#

True, king

#

God bless your days

static zealot
sly sonnet
#

pain

ocean quartz
#

Kek 2017

static zealot
#

I'm so fucking confused. it all works

#

now

#

every single fucking thing

distant sun
prisma wave
#

Every now and then

#

Ok it seems like it's about once a day on average

#

Which is yikes

#

but in my defense

#

im usually not the one that starts the conversation

static zealot
#

yeah bcz at this point you're so previsible we just start the conversation for you xD

prisma wave
#

๐Ÿ˜Œ

#

bro if bardy starts talking about profunctormonoids you cant expect me to not get excited

obtuse gale
#

@prisma wave

#

Is a monoid a type class?

prisma wave
#

yes

obtuse gale
#

O

prisma wave
#

i mean not exclusively

#

it's a mathematical concept mainly

#

but it's implemented with a type class

ocean quartz
#

Is a type class a monoid?

obtuse gale
#

A

prisma wave
#

actually

#

"a"

#

so no

#

there is a Monoid type class but a monoid is a type

ocean quartz
#

Just managed to reduce from 85 lines to 35 by actually being smart about it, something i wasn't 2 years ago lmao

static zealot
#

being smart. I don't know anything about that

#

but at least my debug messages turned out to help a lot

#

with other stuff

#

xD

ocean quartz
static zealot
#

do you know something I Don't?

ocean quartz
#

Yes, you're smarter than you think

#

Also this actually looks nice, didn't expect it to work so easily lmao

cinder flare
#

that whole betterlife rewrite I did made me actually quite happy for once

cinder flare
#

Wait Guilds uses PDM???

half harness
#

lol

static zealot
#

hasn't glare switched to slimjar yet?

cinder flare
#

I thought he did

static zealot
#

I know he's been poking matt and yugi to fix

#

it

cinder flare
#

but in that startup log I saw a PDM error

static zealot
#

bcz it was broken for his usecase

half harness
cinder flare
#

maybe he on an outdated build or suttin

ocean quartz
#

๐Ÿ˜Œ

cinder flare
#

awe yeah

frail glade
#

Hmm?

cinder flare
#
[15:09:55] [ForkJoinPool.commonPool-worker-3/ERROR]: [Guilds] Could not download Artifact{groupId='org.jetbrains.kotlin', artifactId='kotlin-stdlib', version='1.4.32', repoBaseURL='maven'}
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class me.bristermitten.pdm.util.ClassLoaderReflection```
frail glade
#

Yeah rip PDM.

cinder flare
old wyvern
#

The slimjar version is available only on #guilds

cinder flare
#

yea

#

sad

old wyvern
#

btw glare, I forgot to relocate slimjar earlier in guilds, theres a pr open for that

frail glade
#

Okie dokie. Waiting on Matt to release like 10 more versions of his GUI project because he seems to be doing a new one every 2 days.

old wyvern
#

lol

static zealot
#

I'm sorry. what the fuck is this. Is there no Player Inventory method to only get the items from their inventory (without offhand and armor slots)?

#

so the 9x4 slots only

ocean quartz
obtuse gale
static zealot
#

Ic. the description is pretty vague

#

but in some cases it may exclude armor or result slots.

#

so yeah... you can see why I don't trust it

#

xD

#

but will test it

#

just in case

obtuse gale
ocean quartz
#

Sometimes i love minecraft

old wyvern
#

oh my

static zealot
#

I'm 99% sure I've seen that before but still used the getCOntents method.

prisma wave
old wyvern
#

What is this indexing

static zealot
ocean quartz
#

Yes sir

ocean quartz
static zealot
#

I literally had the answer and still used the wrong method ...

ocean quartz
#

Most people would, lack of knowledge != dumb

static zealot
#

but I had the knowledge

#

all I had to do is make a simple copy paste

prisma wave
#

He's doing his best

old wyvern
#

bm

#

any luck with the parser spec?

#

or is that already on the repo?

static zealot
#

Man .... how the fuck does deluxemenus build faster than my plugin??

#

Glare did some magic with this gradle

old wyvern
#

lol

static zealot
#

it takes 34 seconds without it being cached... My plugin can take up to 2 minutes

#

sometimes 3-4

old wyvern
#

More dependencies?

static zealot
#

nope

#

100% not

#

actually

#

hmm

old wyvern
#

dependency size

static zealot
#

yeah it might be that. I was counting the nms projects as big but they're pretty small

#

and I use relocate a lot

#

I relocate kotlin

#

gson and a few others

old wyvern
#

That should be fine

static zealot
#

he only relocates nashorn and asm

old wyvern
#

ah

static zealot
#

I also have Matt's command framework and gui lib,

#
  • Config
#

as well

#

so yeah

#

I can see why now xD

old wyvern
#

lol

proper plaza
#

Hello, I am trying to send an arrow (โžกโฌ…โฌ†โฌ‡) through an action bar to a player to guide him to a specific location, how can I calculate where the arrows have to point?

ocean quartz
#

Would be super simple if Bukkit's pitch and yaw made sense

sly sonnet
#

pitch is up and down and yaw is left & right

#

iirc

ocean quartz
#

Yeah but instead Bukkit's is stupid, it goes negative, it goes over 360, so you have to do something like yaw % 360

cinder flare
#

yeah it really does

#

so weird

static zealot
#

wait

#

what?

#

yaw goes over 360?

cinder flare
#

yeah cause if you keep turning

ocean quartz
#

yaw = (yaw % 360 + 360) % 360; should give you the true yaw
Then it's just check every 45 degrees if you want the northwest and stuff like that, or 90 if you want just 4

static zealot
#

that's strange

cinder flare
#

like if you do two full rotations it can be 720

ocean quartz
#

It's bukkit

old wyvern
#

bukkit keeps it between -180 and 180 right?

cinder flare
#

not in my testing

old wyvern
#

ah, weird

cinder flare
#

I had to do a direction check thingy and it kept messing up

old wyvern
#

I remember it as [-180,180] for some reason

sly sonnet
#

because it should be like that

proper plaza
#

I have tried to do it by getting the angle

ornate edge
#

Im not sure if this is right channel, but I think I messed something up with LP

old wyvern
#

Wrong channel

#

You should probably ask in LP discord anyway

ornate edge
#

whats the right one?

old wyvern
proper plaza
#

Could someone help me?

obtuse gale
#

Trigonometry is where it's at

#

Uh

proper plaza
#

And could you help me with that?

old wyvern
# proper plaza And could you help me with that?

Where

P = player's location
L = required location
dir = direction of Player as a unit vector
PD = (PL . dir) / |dir|
DL = PL - PD

Now, length of PD should give you forward or backwards and length of DL should give you left or right

static zealot
#

oh man. vectors look so easy but sometimes they give me headaches

old wyvern
#

๐Ÿฅฒ

cinder flare
#

dot product and all that

static zealot
#

(PL . dir)

#

what's .

#

?

old wyvern
#

scalar product

ocean quartz
#

Actually Yugi you might be right [-180, 180]

old wyvern
#

๐Ÿ˜ฎ

static zealot
#

thing is minecraft keeps it [-180, 180] as well

#

so i don't see why it would be otherwsie for bukkit

ocean quartz
#

I remember seeing it go over 1k before though

#

d;spigot Location

ruby craterBOT
#
public class Location
extends Object
implements Cloneable, ConfigurationSerializable```
Location has 2 all implementations, 40 methods, 2 implementations, and  1 extensions.
Description:

Represents a 3-dimensional position in a world.
No constraints are placed on any angular values other than that they be specified in degrees. This means that negative angles or angles of greater magnitude than 360 are valid, but may be normalized to any other equivalent representation by the implementation.

static zealot
#

ugh. might be older versions then. On 1.16 rn and its -180, 180 in F3

#

his means that negative angles or angles of greater magnitude than 360 are valid

#

Ic

old wyvern
#

Why does javafx have all the attributes prefixed with an fx ๐Ÿฅฒ

obtuse gale
#

What shows in F3 is not what Bukkit has btw

ocean quartz
#

"but may be.." why not certainty come on

cinder flare
old wyvern
static zealot
#

bukkit is like all the big companies where their rules are always vague so they don't get sued lmao

cinder flare
#

this is why we need the Paper hard fork

static zealot
#

bcz if you get sued, you can say, I Didn't say that.

cinder flare
#

bruh it really went down

obtuse gale
#

lol

#

It's random

cinder flare
#

wait really

#

i thought it was like a thing they did

obtuse gale
#

Lmao

static zealot
#

lmaooo

obtuse gale
boreal needle
obtuse gale
#

haha

#

Lucy? More like Luc-er

#

haha

#

please talk to me I need friends

boreal needle
#

that was really, really bad

#

<3

obtuse gale
#

PLEASE

cinder flare
obtuse gale
#

๐Ÿ˜Ž

boreal needle
#

are you trying to suggest i dont?

cinder flare
boreal needle
cinder flare
#

hmm I see you've fallen in line

boreal needle
#

it was kts the whole time

#

just generated kts with some wonky syntax

proper plaza
cinder flare
#

(PL . dir) / |dir|

forest pecan
obtuse gale
#

Blue means modified and red is new but not added yet

#

Lime green is new & added

#

And that vomit green is ignored

proper plaza
obtuse gale
#

She'll eventually git add . lol

cinder flare
boreal needle
#

ill do it later, rn im busy absolutely destroying everything

#

i cant get it to play nice so ill just have to rewrite big chunks of it like i did with pronouns

obtuse gale
#

Your self-esteem?

boreal needle
#

bold of you to assume i have self esteem to destroy

obtuse gale
#

Lol

cinder flare
boreal needle
#

AmateurNouns

cinder flare
#

NoobNouns

boreal needle
#

tbf pronouns actually works really well now, ive spent loads of time tidying it all up

#

profiles has just been abandoned, this is the first step in unabandoning it

proper plaza
prisma wave
#

x1 * x2, y1 * y2, z1 * x2

#

o

#

probably means this

proper plaza
#

ty

half harness
#

does slimjar work with snapshot dependencies?

#

๐Ÿฅบ

ocean quartz
#

Should

half harness
#

alr

obtuse gale
#

Why wouldn't it lol

half harness
#

because its the same dependency string, idk how it works

old wyvern
#

The resolution path is slightly different, should work on latest

half harness
#

is this latest?

old wyvern
#

And if it has issues with anything, its very easy to add in extra components to your needs

old wyvern
half harness
#

alr

old wyvern
#

Like a custom resolution strategy

half harness
#

o

old wyvern
#

@ocean quartz Btw the resolution from another project may not actually be a bug with the plugin

#

That seems to occur on any dependency

static zealot
#

@half harness wanna play a bit more? I'm tired of coding xD

half harness
#

uhh

#

not right now

old wyvern
#

Yea, It happened to me earlier today

#

some random dependency

static zealot
half harness
#

this whole day ive just been fixing bugs in my bot

#

D:

static zealot
#

spent like 45 minutes adding debug messages just to find out it was all working just after

old wyvern
#

if B depends on A, but doesnt have a repo defined for a dependency of A, it fails

static zealot
#

tho, those messages helped me a lot later

#

to find other bugs

sly sonnet
#

don't y'all go to sleep? it's midnight already

static zealot
#

so I can't really complain

#

for u maybe

#

dkim is US

old wyvern
#

Time zones

#

lol

sly sonnet
#

Ah

half harness
#

lol

static zealot
#

its midnight for me tho

#

xD

sly sonnet
#

fricking europe

static zealot
#

and I ain't going to sleep

old wyvern
#

I mean its almost midnight for me

static zealot
#

lmao

old wyvern
#

Actually

#

its exactly midnight

#

12:02

static zealot
#

wait. what

sly sonnet
#

2mins past midnight for me

static zealot
#

where you at rn?

#

yugi

old wyvern
#

Wait... a min...

static zealot
#

don't u live in india?

old wyvern
static zealot
#

oh

sly sonnet
#

I live in Latvia

old wyvern
#

lol

half harness
#

watar

sly sonnet
#

baltic states

static zealot
#

watar as in Qatar?

old wyvern
static zealot
#

oh yeah

#

you edited

old wyvern
#

lol

static zealot
#

that makes sense

half harness
#

xD

static zealot
#

I was confused as to what timezone you're in

sly sonnet
#

who

static zealot
#

yugi

ocean quartz
old wyvern
#

Im GMT +3

static zealot
#

yeah. same rn. bcz of summer time

boreal needle
#

porject

boreal needle
#

thats cute

static zealot
#

but the official timezone is gmt+2

#

just summer time ... xD

old wyvern
#

ahhh

static zealot
#

so its 12:04 for me too

ocean quartz
#

22:04 here

half harness
#

y r u awake at midnight blitz

old wyvern
#

Brazil right?

#

or Italy

obtuse gale
#

Daylight savings ๐Ÿ˜Œ

ocean quartz
#

Portugal xD

obtuse gale
#

What a wonderful thing to exist

old wyvern
#

xD welp

static zealot
obtuse gale
#

Shifting clocks back and forth throughout the year

#

Aaah

old wyvern
#

What is Daylight savings for btw? like to consume less light?

half harness
#

sleep = healthy

static zealot
#

yeah. I sleep during the day

#

who cares

#

xD

ocean quartz
half harness
#

O

static zealot
#

I sleep from 5 am to 10-11.

#

that's enough for me

#

usually

half harness
#

:Thonk: ok

#

๐Ÿ˜ 

static zealot
#

that's actually a lie

half harness
#

discord

static zealot
#

more like 3 am

#

to 10-11

#

also its fucking hot

#

its like 30 degrees

#

rnn

obtuse gale
#

Because

#

Whatever

prisma wave
#

Pain

ocean quartz
#

Yeah, it's horrible

half harness
prisma wave
#

๐Ÿ˜Œ

static zealot
static zealot
#

at 12 am

#

so yeah

prisma wave
#

Learn to use a real measurement system

static zealot
#

tomorrow it will be 40+ apparently

#

so fuck me

half harness
#

btw @old wyvern snapshots aren't working ๐Ÿ˜•

#

i think

ocean quartz
#

I like day light saving, or else it'd be too bright in the morning, in the summer sun is out at like 6am here

half harness
#

either that or my code is broken

#

which i dont think it is

old wyvern
#

Send the exception

static zealot
#

I personally don't mind them at all

old wyvern
#

repo, and dependency too

half harness
#

no i mean the snapshots aren't updating

old wyvern
#

What?

static zealot
#

my phone and laptop are smart enough to change the time automatically xD

half harness
#

still the old snapshot

#

i believe

prisma wave
#

Slimjar bad

old wyvern
#

Delete the libraries folder and try

half harness
#

libraries folder?

old wyvern
#

The default is in your user's home under .slimjar

#

Are you on windows?

half harness
#

ye

ocean quartz
#

Imagine

half harness
#

lol

#

btw is slimjar stable or beta?

old wyvern
#

C:\Users\<username>\.slimjar

#

stable

half harness
#

oof

#

pdm was alpha the whole time

static zealot
#

C:

half harness
#

windows ftw

static zealot
#

/home/

ocean quartz
#

PDM is on a perpetual state of alpha

old wyvern
#

lol

half harness
#

lol

static zealot
#

ohhh @old wyvern are you staying there or are you in vacantion? bcz I've just realised why I was confused. your github says you're in India

half harness
#

stalker ๐Ÿ‘€

static zealot
#

or is that supposed to show where you were born? idk

old wyvern
static zealot
#

oh

old wyvern
#

I pretty much lived here most of my life

obtuse gale
#

Now that you say corona, I'mma put some beer in the fridge

static zealot
# half harness stalker ๐Ÿ‘€

what about that is stalking? he has his fucking real name and location on github... I went to check a project and I saw it. Its not like I stream sniped him irl or something

old wyvern
#

lol

static zealot
#

but i might XD

old wyvern
#

๐Ÿ‘€

half harness
#

๐Ÿ‘€

obtuse gale
#

Has anyone seen Bardy btw?

half harness
static zealot
#

@jovial warren u alright?

obtuse gale
#

@jovial warren how's that licensing stuff going?

static zealot
#

he's working hard xD

jovial warren
#

not bad

half harness
#

hi @jovial warren

obtuse gale
#

o hi

static zealot
#

hello BBG

jovial warren
#

yeah I've been working on the data fixers for the past few days lol

static zealot
#

we've missed you

obtuse gale
#

Been a while

jovial warren
#

been a couple of days

#

about 4 days

old wyvern
jovial warren
#

I was working on porting all the fixes for 4 fucking days straight

#

jesus fucking christ that was painful

obtuse gale
#

๐Ÿฅฒ

static zealot
#

yo. fun fact. Few years ago I used to thing couple means exactly 2

#

๐Ÿฅฒ

half harness
#

theres a chance it was my fault since i reloaded dependencies like 5 seconds after releasing snapshot

#

but

#

i cba testing D:

#

so

#

ill make issue

#

๐Ÿ˜„

old wyvern
#

Alrighty thanks

static zealot
#

so dkim you ain't playing?

half harness
static zealot
#

small size of 2 or more

#

or amount

#

or whatever

jovial warren
#

yeah some people say that's right, some say that's wrong

static zealot
#

I used to think its exactly 2 as well bcz a couple is 2 people usually

#

but it could be more sometimes I guess

static zealot
half harness
#

ok ill play a game or two @static zealot

static zealot
#

xD

half harness
#

@static zealot gimme a few mins

static zealot
#

alr. ping me whe you're back

#

might not be paying attention at mc

steel heart
#

Rip my minecraft mod got 5 downloads

#

๐Ÿ˜”

static zealot
#

just a normal day

half harness
#

oh

#

blitz

#

blitz

#

@static zealot

static zealot
#

alr. 1 sec

ocean quartz
#

Damn a well thought out system makes such a difference, from 85 to 35, now to 21 lines

half harness
#

didn't the 85 -> 35 come from like hours ago

did you spend like 5 hours shortening to 21 thonking

ocean quartz
#

Nah, dinner, procrastinating, then changed it in 5 minutes

half harness
#

oh

#

thats a lot of procastinating

#

either that or you had a feast

ocean quartz
#

Welcome to my life

ocean quartz
#

Lovely ๐Ÿฅบ

cinder flare
#

fooTH

ocean quartz
#

Lmao

#

And the code is 10x nicer than previous

old wyvern
#

๐Ÿ˜Œ

ocean quartz
#

Optional argument added ๐Ÿ˜Œ

cinder flare
#

now that's what you like to see

forest pecan
ocean quartz
#

Only added 1 line and it worked for all argument types
I'm surprised this one actually worked lmao

old wyvern
forest pecan
#

I literally spent like an hour trying to figure out why my consumer wouldnt work then I realized that the api uses the god damn bukkit Consumers for some reason

half harness
#

๐Ÿ‘

#

๐Ÿ‘

obtuse gale
#

i still want to know why the bukkit consumer exists

#

instead of a regular consumer

#

like

ocean quartz
#

I think it was added because Bukkit was made for java 7 and back then there was no consumer

obtuse gale
#

no no, we talked about that already and it was adder after java 8 was a thing

#

1.11 lmfao

forest pecan
#

why do people still run java < 8

#

like why

#

like do they hate theirselves

obtuse gale
#

probably 1.7.10, no idea

#

is the bukkit consumer even used in bukkit?

forest pecan
#

java 8 doesnt work for 1.7.10?

obtuse gale
#

oh it is wtf

forest pecan
#

the World class

#

for Paper, it uses it

obtuse gale
#

OH DUDE

forest pecan
#

its so annoying lol

obtuse gale
#

I always thought those methods used the jdk one ๐Ÿ˜‚

#

in any case you can consumer::accept :thinksmart:

forest pecan
#

hm yea that works

ocean quartz
forest pecan
#

did you know md started spigot when he was like 15

#

lol

old wyvern
#

๐Ÿ˜Œ

obtuse gale
#

also why does bukkit mark interface methods as public lmao

cinder flare
forest pecan
#

lol

static zealot
#

Matt but what are you working on?

#

Seen you talking about some completion and shit like that

ocean quartz
#

Rewriting cmds lib

cinder flare
#

hey @ocean quartz, how do I do top-level comments in MF-CFG?

#

in ConfigMe, it lets you do that with an empty string as the comment setter

#

but then I got

obtuse gale
#

yes

#

it says "fucking sucks bro"

ocean quartz
cinder flare
#

and I can put a blank string in that array for a blank line?

ocean quartz
#

Yeah

cinder flare
#

nice nice

#

man I'm writing the MF-CFG docs just in this discord channel

#

if you search my messages with @ocean quartz in them, you'll have a full understanding of how to use it haha

#

oh I did not mean to tag you very sad

ocean quartz
#

Lmao, i'll definitely write better docs later, i think i'll change some things

cinder flare
#

oh and while I have you

#

any reason @me.mattstudios.config.annotations.Path("commands") is happening

ocean quartz
#

You likely have another class named Path around there

cinder flare
#

yeah it's in java.nio.file

#

so uh

#

can I static import yours or something

ocean quartz
#

Can you show me the full class?

cinder flare
#

the irony is that, in order to construct a SettingsManager, you need a Path.of()

#

which uses java.nio.file.Path

ocean quartz
#

Yeah, normally the setting holder a unique file so you'd never have both paths in the same place, interesting that you went with inner class xD

cinder flare
#

I mean it's super short and that's how the old plugin was setup

#

so I figured if it works, meh

ocean quartz
#

Yeah, well either you do java.nio.file.Path.of() and @Path or the other way around, in kt you could use type alias but Java

cinder flare
#

oof poopy java

#

man I can't wait to rewrite this bad boy in Kotlin and like, with dependency injection lol

ocean quartz
#

do it

cinder flare
#

i mean yeah soon but right now it's MVP time

old wyvern
#

Rewrite it in Elara instead ๐Ÿ˜Œ

cinder flare
#

elara parser no worky yet

old wyvern
#

No new spec yet

#

๐Ÿฅฒ

old wyvern
#

@prisma wave

cinder flare
#

damnit even moving to their own files I still have a class named Comment ๐Ÿฅฒ

cinder flare
#

oh no

#

d;bungee ProxiedPlayer#getAddress

ruby craterBOT
obtuse gale
cinder flare
#

well I would like to know what I should use instead

#

since it does not mention

#

and I figure there are some smart people here

quiet depot
#

wor r u tryna get boiii

cinder flare
obtuse gale
#

go in the javadoc

#

literally the method right below

quiet depot
#

d;bungee proxiesplayer#getsocketaddress

ruby craterBOT
cinder flare
#

ya but I don't know what a SockerAddress is so I'm scared

quiet depot
#

again with the scared

#

scared of debugging

#

scared of socket addresses

#

lame

cinder flare
#

I'm very gently upgrading this plugin okay piggy

#

I don't wanna dive into the deepend swapping out IP addresses for Socket Addresses

quiet depot
#

socketaddress should be an inetsocketaddress i think then itโ€™s jsut the same@methods

#

ym fingers are far

#

fat

#

i canโ€™t type for shit on hpne

obtuse gale
#

lmao

cinder flare
#

getSocketAddress returns a shitty SocketAddress which can do nothing

#

do I cast it?

quiet depot
#

yeeees

obtuse gale
#

check and cast, that's what Bukkit does lmao

quiet depot
#

after an instanceof ofc

cinder flare
#

but it's a super type

obtuse gale
#

Task with name 'remapJar' not found in project ':squirtgun-platform-fabric'.
what a heap bunch of bullshit

quiet depot
#

u instanceof star

#

like u would wity commandeenseer and player

obtuse gale
#

๐Ÿ˜‚

#

InetSocketAddress extends SocketAddress

quiet depot
#

and if itโ€™s not an inetsocket

cinder flare
#

i am scared because this is hard to test

quiet depot
#

just go ahead and fucking rm -rf that shit

cinder flare
#

bro

#

this is for ip banning

#

I need this shit to work

quiet depot
#

deny connection if not inet

cinder flare
#

hmm that's smart

quiet depot
#

donโ€™t think it can ever not be inet

cinder flare
#

it can be a unix socket ๐Ÿ™‚

quiet depot
#

well

obtuse gale
#

that's their problem ig

quiet depot
#

that soudns like a not you problem

cinder flare
#

that's very true

#

I doubt many people are connecting to BungeeCord servers using a unix socket

obtuse gale
#

UnixDomainSocketAddress this probably? thonking

quiet depot
#

wonder if thereโ€™s a tier list of socket types

obtuse gale
#

tier list lmao

cinder flare
#

is there an exception I can use that would fit lol

obtuse gale
#

GetAProperJREException

cinder flare
#

I don't think the JRE is the problem lmao

obtuse gale
#

eh tomato tomatoe

#

same thing

quiet depot
#

yes definitely the same thing

#

linux is making me sad

#

kde doesnโ€™t like nvidia prop drivers but noveau is shit when doing anything that isnโ€™t a minimal desktop app

cinder flare
#

Pop!_OS

quiet depot
#

what de does popos use

cinder flare
#

GNOME

#

but it can be changed

#

and also it looks very pretty still

quiet depot
#

i need kde

cinder flare
#

for what

quiet depot
#

happiness

cinder flare
#

you can swap it out

#

but I urge you to try Pop!_OS

#

or at least look at some screenies

#

it's very pretty

ocean quartz
#

Lmao was checking the Options class from apache commons cli

quiet depot
#

itโ€™s just ubuntu isnโ€™t it

cinder flare
#

with some extra sprinkles on top regarding drivers

#

which will most likely solve your ol Nvidia problem

distant sun
quiet depot
#

i donโ€™t think the os can fix kdeโ€™s explicit dislike of nvidia

cinder flare
#

hmm true

#

but I think you should consider other DE's ๐Ÿ™‚

quiet depot
#

never

cinder flare
#

I hate GNOME normally but when I use Pop!_OS I love it

quiet depot
#

kde is the best for looks and performance

#

i just need to wait 10 years for my 2080ti to be obsolete so i can buy an amd card

ocean quartz
#

KDE - Kotlin desktop environment? ๐Ÿ˜ฎ

quiet depot
#

no

cinder flare
#

I will never buy an AMD graphics card

quiet depot
#

why

ocean quartz
#

They really taking multiplatform to a whole new level /s

quiet depot
#

kde has been prefixing software with k longer than kotlin

#

so

cinder flare
#

they're always worse, their drivers are pieces of crap, and I do not think they do a good job

quiet depot
#

u kotlin devs basically stole that

cinder flare
#

now CPU's on the other hand

#

AMD makes some banger CPUs

ocean quartz
#

itsa joke piggy

quiet depot
#

amdโ€™s linux drivers are better than nvidia

cinder flare
#

not if you use the proprietary ones

#

I've never had trouble

#

and I used Arch

quiet depot
#

prop nvidia linux drivers suck ballsacks

cinder flare
#

why

#

they're great

quiet depot
#

yeah idk

cinder flare
#

lmao

quiet depot
#

idk why kde gotta be a bitch about it

#

apparently they purposely make the desktop run like shit when using prop nvidia drivers

cinder flare
#

wow

#

i like KDE less now

distant sun
#

:D for 100+ tabs lol Brave

quiet depot
#

well

#

just a reddit rumour

#

so hopefully that proves itโ€™s validity

#

but I canโ€™t see any other reason for the shit performance

cinder flare
#

what I am confused

#

I'm printing out both the old deprecated way of getting the ip and the new correct way

#

and they're both the same

#

yet I'm getting exceptions left and right

obtuse gale
#

what kind of exceptions

quiet depot
#

wheres the embed

#

canโ€™t see the embed

#

absolutely unacceptable

quiet depot
#

o phone canโ€™t play it in discord anyway

#

rude

cinder flare
#

very sad

obtuse gale
cinder flare
#
            final URL url = new URL(uuidRetrievalUrl + pName);
            final URLConnection conn = url.openConnection();

            reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            StringBuilder content = new StringBuilder();
            String line;
            while ((line = reader.readLine()) != null) {
                content.append(line);
            }

            MojangUUIDProfile p = gson.fromJson(content.toString(), MojangUUIDProfile.class);
            if (p != null && !p.id.isEmpty()) {
                return p.id;
            }```
#

IOException in there

obtuse gale
#

oh god what

cinder flare
#

is that related to the socket address thing?

#

it must be right

obtuse gale
#

i don't even see anything related to that

#

i just see a mess

cinder flare
#

me neither but it's a web request

#

yeah

#

got any cute streams or something

obtuse gale
#

let me see, i may have something

#

IS MojangUUIDProfile supposed to be kinda like an authlib GameProfile?

cinder flare
#
    private static class MojangUUIDProfile {
        String id;
        String name;
    }```
#

lmao

quiet depot
#

why ur web request so big

#

use java 11 http api

cinder flare
#

i didn't make this

#

what's that

quiet depot
#

api for interacting with web which was introduced in java 11

cinder flare
#

well duh

ocean quartz
#

I hate that this is the syntax

cinder flare
obtuse gale
#

gson even takes a Reader, you can pass the buffered reader

#

and no TWR ๐Ÿ˜ฉ

ocean quartz
cinder flare
#

oh man

#

that sucks

obtuse gale
#

the other way around matt

ocean quartz
#

Oh is it?

obtuse gale
#

yeah

#

first annotation annotates the element type, second one the array itself

#

if it were a regular collection then it would be as you said

#

but it isn't

#

smh

ocean quartz
#

Ah yeah, that ^ don't listen to me

quiet depot
#

with โ€ฆ tho

#

u canโ€™t pass a null array can u?

obtuse gale
#

oh you totally can

#

just (Object[]) null

cinder flare
#

java is evil

#

this is why Kotlin was invented

quiet depot
#

java gud

cinder flare
#

hey is there a cuter way of turning an HTTPResponse into a Json

quiet depot
#

yes

#

check docdex

#

discord subproejct

#

look for the abstract command search class thingo

obtuse gale
#

i mean can't you like gson.fromJson(response.body(), Whatever.class)?

quiet depot
#

u can integrate it into the api iirc

#

if u want to

obtuse gale
#

oh?

#

a transforming response? :o

quiet depot
#

ye

obtuse gale
#

dayum

cinder flare
#
client.sendAsync(request, BodyHandlers.ofString())
      .thenApply(response -> { System.out.println(response.statusCode());
                               return response; } )
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println);```
quiet depot
#

portal reloaded aint that great as a portal 3

cinder flare
#

how do I get a variable out of that

quiet depot
#

portal stories mel was way better

obtuse gale
#

ah completable futures

#

what a joy

cinder flare
#

i do not understand them one bit

obtuse gale
#

do you know js promises?

cinder flare
#

no

obtuse gale
#

damn okay

cinder flare
#

is that the async await shit

quiet depot
#

star if u want to assign it to a variable straight up then uโ€™d need to run the request sync

#

well

#

what variable

#

I was assuming a field but if not a field, and just a regular local var

cinder flare
#

basically this bad boy needs to return a string

quiet depot
#

then u just have to move your logic around a bit

cinder flare
#

or well I guess a type class

quiet depot
#

return a completablefuture

cinder flare
#

can I not just wrap that in this method?

quiet depot
#

wat

#

this method

#

will it always be ran async?

cinder flare
#

hmm well I guess not

#

okay nevermind too complicated, back to sync

#

do I close the HttpClient in the finally block

obtuse gale
#

close?

cinder flare
#

i dunno

#

a try with resources, if you will

obtuse gale
#

it doesn't even have a close method lmao

#

it's not a resource

cinder flare
#

alright man just wondering

#

all this new-fangled technology

obtuse gale
#

fiy said "resources" you can put in a twr are those that extend/implement AutoCloseable

cinder flare
#

woah I didn't even know that was a thing

obtuse gale
#

a good chunk of them

cinder flare
#

holy shit

half harness
#

yuijehwbad I love when intellij doesn't color anything and gives errors to useless things

obtuse gale
#

what kind of errors

half harness
#

Assignments are not expressions, and only expressions are allowed in this context

#

(still compiles and stuff)

obtuse gale
#

lol?

#

what's the context

cinder flare
#

damn how am I supposed to test an ipban against myself

half harness
obtuse gale
half harness
#

it only happens in tornadofx StyleSheet ยฏ_(ใƒ„)_/ยฏ

cinder flare
#

i blame tornadofx

#

yep

half harness
#

but

#

more specifically

#

it happens with KFoenix

#

intellij why ๐Ÿ˜ฉ

half harness
ocean quartz
#

Should have named it Foeniks to follow the dumb k trend kek

half harness
#

ยฏ_(ใƒ„)_/ยฏ

#

i need a good button color

obtuse gale
ocean quartz
#

#06662F

obtuse gale
#

i just found out about this hideous hack lol

#

pretty nice lmao

half harness
#

trfygbh has anyone used tornadofx type safe style sheets before?

ocean quartz
#

Number of letters on your name - 4
The numbers in your name - 19375
419375 in hex is 06662F

cinder flare
#

okay I figured out why it was erroring originally

obtuse gale
#

y

cinder flare
#

it was passing the IP instead of the player name lmao

obtuse gale
#

lmao

ocean quartz
obtuse gale
#

got it from paper's SneakyThrow

ocean quartz
#

Also, thoughts? ๐Ÿ˜ฉ

obtuse gale
#

basically you can throw a checked exception without adding it as throws lol

#

pure evil

ocean quartz
#

I remember reading somewhere that sneaky throws were terrible xD

obtuse gale
#

i mean they are lmao

#

the only genuine use case I see for them is in things like CompletableFutures that pass on the exceptions thrown

#

but you can't throw a checked exception because it does not take a function that throws anything

#

le sigh

cinder flare
#

I don't really understand how an IP is getting passed into a player name slot

#

and it doesn't happen when I use the old ip address obtainment method

distant sun
#

Nice spinach green @ocean quartz

ocean quartz
#

I think you mean, nice beautiful green

distant sun
#

spinach

ocean quartz
#

Gaby you need to stop eating radioactive spinach

obtuse gale
half harness
#

how does discord have custom "text"?
for example custom emojis and #chat-reaction (the blue box)

obtuse gale
#

is it an attempt of a more generic approach than "flags" or is it the same concept?

ocean quartz
#

Ooh flag is a good name

obtuse gale
#

ah

#

lol

ocean quartz
#

Basically to allow you to do nice things like /command sub 5 chest -n 10 -t type where at the end would be the options

#

I got the name from commons cli

obtuse gale
#

yeah so flags lmao

ocean quartz
#

Yeah xD

obtuse gale
#

does it take flags with no args? :eyez:

ocean quartz
#

Yes ๐Ÿ‘€

obtuse gale
#

poggers ๐Ÿ˜ฉ

distant sun
#

Matt is not that noob from time to time <3

obtuse gale
#

lol

ocean quartz
#

I think my idea is to have it like

public void command(Player sender, int number, String anotherArg, Flags flags)

Then you can access flags and get which ones were used, if a required one is not added the framework will handle the error, if the value is not the correct type the framework will handle too, etc

#

@obtuse gale Better? I like it more actually

half harness
#

intellij why are you breaking ๐Ÿ˜ฉ

#

lol

ocean quartz
#

Oops forgot to rename method lmao
imagine it's written "flag" there

obtuse gale
#

likey

half harness
distant sun
#

tehnically each method goes on it's own line

half harness
#

o

distant sun
#

Now remove the s from Flags to have the dots aligned

#

And char constructors <3

ocean quartz
#

Oh god, sometimes it bothers me so much to not have things aligned, for example why does it go to the left!!

distant sun
#

tab

obtuse gale
#

something something ij settings

ocean quartz
#

I'll look into said settings tomorrow ๐Ÿ˜ฉ

distant sun
#

Somewhere on guihelper im 100% sure I have a part of code where I moved some methods to the right with one space just so they are aligned (or was it on a new line?) Xd

ocean quartz
# half harness wdym?

Instead of aligning on the right, under where the method is called, it'll go all the way to the left

ocean quartz
distant sun
#

<3

half harness
#

uh oh what did i do

obtuse gale
distant sun
#

F

distant sun
half harness
#

vfgbjhn

distant sun
#

Background

half harness
#

ohhh

obtuse gale
#

lmao

half harness
#

ty ๐Ÿ˜Œ

distant sun
half harness
#

๐Ÿ‘€

#

lol

#

huh

#

uh

#

is it the same

obtuse gale
#

looks about right

ocean quartz
#

It is the same

half harness
#

it looks darker

#

might be bc of the dark background

ocean quartz
#

The reason it feels different is be because of the background

half harness
#

hmm

distant sun
#

You are comparing an entire image with 4 letters and an outline, ofc it feels different

half harness
#

lol

ocean quartz
#

Same effect as this

#

A and B are the same color

distant sun
#

And yea, as matt said, contrast

half harness
distant sun
#

Well not that shit above but yes

obtuse gale
#

same reason why we think brown is a different color than orange
https://www.youtube.com/watch?v=wh4aWZRtTwU

You can support this channel on Patreon! Link below

This video discusses the color brown. Seriously.

That Aging Wheels playlist:
https://www.youtube.com/playlist?list=PLmBDJoIaNRGiK2BgCwz2ALDnNanKBSOgO

And, of course, the Weird World in RGB for those of you who I couldnโ€™t manage to summon a card for:
https://www.youtube.com/watch?v=uYbdx4I...

โ–ถ Play video
distant sun
#

Wait, the letters or squares? @ocean quartz

ocean quartz
#

The squares

forest pecan
#

I have to like stare at it for 30 seconds to realize the colors are the same

#

Itโ€™s hard to picture it without the shadow