#dev-general

1 messages ยท Page 528 of 1

cinder flare
#

yea seriously

obtuse gale
#

I am not?

cinder flare
#

like this is so dumb

#

it's not like a metric vs imperial thing

#

where I agree the world would be better if we all used metric

#

time is inherently relative to the location of the world you're in

#

that's literally how the planets work

obtuse gale
#

Ah yes, planetary systems have a concept and awareness of local time

#

Why do you think computers don't consider time zones internally lmao they all use UTC for a reason

static zealot
#

I'm not a computer tho

#

well maybe I am

obtuse gale
#

:doubt:

static zealot
#

but I'm a bad one

#

so yeah

#

no thanks

old wyvern
#

๐Ÿคท That should work fine from next release anyway

cinder flare
#

i mean the way the earth revolves around the sun and how it rotates itself

#

that's how planets work

#

spinny spinny

#

sun bright, daytime

#

no sun, nighttime

static zealot
#

what star is trying to say

#

is that time is relative

cinder flare
#

yea cause the planet spins

#

it's not flat where we all get sun at the same time

old wyvern
#

That makes me think, so we say the universe is 14 billion years old or something

obtuse gale
#

oh but it's focused at an angle ๐Ÿคก

old wyvern
#

And assume all particles in the world are of that age too

#

But

static zealot
#

14 billion? I think they're saying its a bit longer than that

cinder flare
old wyvern
#

Some particles have lived longer than others

#

Due to relativity

static zealot
#

hmm

old wyvern
#

Food for thought

steel heart
#

๐Ÿ˜ฎ

static zealot
#

time is a mess

#

with that I agree

#

and yeah timezones might not be perfect, but I Don't think everyone having the same time would be a solution

steel heart
#

why not

old wyvern
steel heart
#

Yugi pro

old wyvern
#

Sounds like a iphone release

#

๐Ÿฅฒ

steel heart
#

lmfao

static zealot
#

Yugi pro S*

#

lite mini max extra

ornate edge
#

is epic world generator free?

static zealot
#

no

#

but probably wouldn't be worth even if it was free

ornate edge
#

whatโ€™s the best free world generator

#

that i can load an earth map with.

old wyvern
#

Elara World Generator

static zealot
#

you chose

old wyvern
#

EWG

static zealot
#

name it WGE

old wyvern
#

๐Ÿ˜Œ

static zealot
#

or something else

old wyvern
#

xD

prisma wave
ornate edge
static zealot
#

its a joke.

ornate edge
#

& does it have like custom trees & stuff?

prisma wave
#

๐Ÿฅฒ

static zealot
#

it doesn't exist

ornate edge
#

ohhh

prisma wave
#

soon

#

it will exist

static zealot
#

soon maybe

ornate edge
#

sorry, iโ€™m new to this.

static zealot
#

xD

prisma wave
#

no it's fine lol

static zealot
#

like every other Elara

#

project

prisma wave
#

this channel is mostly for development and stuff

ornate edge
static zealot
#

idk

#

I Know they can have custom worlds

#

or make*

ornate edge
prisma wave
#

no worries

static zealot
#

idk if they can make earth worlds

obtuse gale
#

Earth sucks

prisma wave
#

you suck

ornate edge
#

okay thanks

obtuse gale
prisma wave
#

we love politics here

static zealot
#

nah. politics are great. they make me sleep real fast

prisma wave
#

thoughts on anarcho capitalism?

static zealot
#

other people listen to music to sleep, I Just put on some political debate

obtuse gale
#

Wait what country

winged oyster
prisma wave
#

๐Ÿ˜Ÿ

ornate edge
#

should i have a regular survival server, but you can still make towns, drive cars planes & have guns, also start wars & stuff? (ik i shouldnโ€™t ask this here but iโ€™m already here)

obtuse gale
#

Anarchy capitalism?

prisma wave
#

i sold my house to buy spiders

old wyvern
#

i sold my house to buy spidermen

half harness
#

i sold my house to buy my house

old wyvern
#

stonks

obtuse gale
#

@half harness soooo youโ€™re saying you bought your own house?

half harness
#

yes || /s ||

static zealot
#

yeah

obtuse gale
#

How old

static zealot
#

he has one of those dog houses

half harness
#

^

#

doggy houses are superior

boreal needle
#

does anyone have username ideas

obtuse gale
#

Lol cap mommy bought that shit boy.

half harness
static zealot
boreal needle
static zealot
#

Thunder

winged oyster
#

(random adjective) (random noun)

half harness
#

bomp it sorta looks like this

obtuse gale
#

Cute

half harness
#

dont google 'dog house' btw

#

:)

prisma wave
half harness
boreal needle
#

dont you mean fer-nan-do-pรณ-ov

obtuse gale
#

How bout go search for names on mcmarket

winged oyster
half harness
#

remove the v though

prisma wave
#

teresa fidlago

half harness
#

anyways

#

gtg

#

cya

#

aw

#

barry doesn't like my greetings

#

sucks

winged oyster
#

Oh

prisma wave
boreal needle
#

that's the one

#

what does that even mean

prisma wave
#

๐Ÿ˜Œ

#

nobody knows

#

not even google

boreal needle
#

i wanna keep my name in there

#

idk what to put thooooo

winged oyster
#

my name is just my irl nickname + my last name initial

boreal needle
#

i dont have a nickname

winged oyster
#

then just use lucy

#

i assume that's your name

boreal needle
#

yeah

#

lucyp

#

sounds a bit weird imo

onyx loom
#

lucy;p

boreal needle
#

semicolons in a username is no

ocean quartz
#

@old wyvern I don't think there is a fix right? Since the method depends on the class being loaded by Spigot's classloader

old wyvern
#

@ocean quartz Yea, but I should be able to load into Spigot's classloader from 1.2.3

timber oak
#

Not sure which channel to ask this in so asked in #general-plugins can someone please help?

winter iron
ocean quartz
#

Is this enterprise enough? ๐Ÿ˜ฉ

winter iron
#

MORE

#

MORE TYPES

ocean quartz
#

๐Ÿ˜ซ

obtuse gale
ocean quartz
#

Beautiful, I'll strive to achieve such level of enterprise ๐Ÿ˜ฉ

obtuse gale
#

lulw

steel heart
#

๐Ÿฅฒ

obtuse gale
#

i'll actually have to rename it

#

makes casting a living nightmare

steel heart
#

wait

#

emilyyyy

#

u makin a mod?

cinder flare
#

emilyy the fabric dev

obtuse gale
#

some fabric impls for a couple of plugins

cinder flare
#

she's deleting timezones in fabric

steel heart
#

what plugins ๐Ÿ˜ฎ

obtuse gale
obtuse gale
steel heart
#

oo

cinder flare
#

betterjails

#

how's the rewrite coming

steel heart
#

luckperms mod when?

obtuse gale
#

huh?

#

LP already works on fabric lmao

steel heart
#

yaaa

#

ohj

#

nvm

boreal needle
#

wait youre working on squirtgun? :D

ocean quartz
#

Fabric server > Bukkit server

obtuse gale
#

you knew I was lmao

#

^

#

^^^^^^^^^^^^^^^^

ocean quartz
#

The freedom Fabric gives you ๐Ÿ˜ฉ

obtuse gale
boreal needle
#

fabric is confusing

obtuse gale
#

so yeah

steel heart
#

forge > fabric no hate

boreal needle
#

good thing i have emily to do it for me

ocean quartz
obtuse gale
#

it's just a matter of time

#

and effort

steel heart
#

fabric looks promising

#

but forge is better

obtuse gale
#

like you actually have to have the will to spend time to learn it

steel heart
#

objectively ๐Ÿ˜„

obtuse gale
ocean quartz
#

Forge is a nightmare ๐Ÿ˜ซ

steel heart
#

cuz its forge

cinder flare
obtuse gale
#

๐Ÿฅฒ

boreal needle
cinder flare
boreal needle
#

that's the problem

obtuse gale
#

:D

steel heart
#

emiyy is basically a 2nd hand lp dev by now so thats pog

obtuse gale
#

lmao i wish

prisma wave
#

๐Ÿฅ›

boreal needle
#

remind me why you talk to me again?

obtuse gale
#

because i love you <3

cinder flare
#

milk

boreal needle
prisma wave
#

๐Ÿš๏ธ ๐Ÿ˜ตโ€๐Ÿ’ซ

obtuse gale
#

you're just cool, y'know

boreal needle
#

eh

half harness
boreal needle
#

im not

#

youve seen what i get like sometimes

#

anyway ive gotta go now

#

cya gamers

obtuse gale
#

gamers

#

we are all racists now

prisma wave
obtuse gale
#

lulw

prisma wave
obtuse gale
#

drawing a blank, does anyone recall how to rebuild maven artifacts with one click?

#

in the add configuration thing

#

intellij

obtuse gale
#

lmao wat

half harness
#

\๐Ÿ˜ตโ€๐Ÿ’ซ \๐Ÿคช \๐Ÿ™ˆ \๐Ÿ˜…

cinder flare
prisma wave
#

help

#

i need help

compact perchBOT
#

There is no time to wait! Ask your question @prisma wave!

ocean quartz
#

I miss the old bm ๐Ÿ˜ญ

prisma wave
#

how to type backslash on american keyboard layout

half harness
prisma wave
#

except kotlin instead of insert functional language here

#

anyway

#

what is the button

#

americans

#

i am sorry for being rude to you for being american

#

please

winged oyster
#

\

prisma wave
#

that is not particularly helpful

#

i mean what is the keyboard shortcut

obtuse gale
#

escaping backslashes for regex be like \\\\\\\\\\

prisma wave
#

or more importantly how to make xorg use uk keyboard layout

#

can someone spoonfeed

obtuse gale
#

๐Ÿฅฃ

half harness
#

๐Ÿฅฃ

boreal needle
#

setxkbmap uk?

half harness
boreal needle
#

there's a localectl command to do it permanently

prisma wave
#

you might be on to something

boreal needle
#

cant remember what it is tho

#

oh i think it's gb

#

not uk

cinder flare
prisma wave
#

i will return with more information in exactly 3 minutes and 12 seconds

half harness
#

wat

cinder flare
#

he's calculating

#

give him time

ocean quartz
#

Counting

#

You better be back at 46:59

obtuse gale
#

i recall being able to rebuild artifacts

#

with a configuration

#

rather then doing the build > artifacts sequence

#

i could be mistaken though

obtuse gale
boreal needle
#

create a maven build config with targets clean package

ocean quartz
#

9 seconds

prisma wave
#

i am back

ocean quartz
#

Liar!

prisma wave
#

where was i

#

??

cinder flare
boreal needle
#

x kb maps

prisma wave
#

anyway

ocean quartz
cinder flare
#

though I use gradle so I click shadowJar ๐Ÿคค

ocean quartz
#

2 seconds too late!!

prisma wave
cinder flare
#

oh shit

obtuse gale
prisma wave
#

this is a you problem, sir

ocean quartz
#

Wdym your count? Literally discord's own data lol

prisma wave
#

i have a very precise body clock

#

more precise than google

#

discord*

cinder flare
#

maybe he started when he got up from his chair

#

and that was 2 seconds after his message

prisma wave
#

i have done some research and have concluded that localectl set-keymap --no-convert uk was the correct thing to do HOWEVER it does not apply until a restart maybe

#

i have not yet attempted to restart out of fear

cinder flare
#

so wait what happened

prisma wave
#

2 minutes 59 seconds

#

see you soon

cinder flare
#

are you installing linux or something

#

ohg

boreal needle
#

why 3 minutes

#

why not just reboot now

cinder flare
#

i think he's doing something else

prisma wave
#

im back

#

restart was a grand success

#

thank you all for coming

#

it has been a pleasure

#

NO

#

what it

#

it has broken

#

i believe "i3" is the CUPLRIT

boreal needle
#

what about i3

prisma wave
#

help

#

i ,qde it french

#

it is different

#

qll the keys qre broken

#

aaaaaaaa

winged oyster
#

Oh no

prisma wave
#

uk did not zork so i tried fr qnd it did zork sqdly M9

winged oyster
#

uk did not work so i tried fr and it did work sadly

ocean quartz
#

You ever write something and only realize it's extremely stupid like a year or so later?

prisma wave
#

<฿ค฿ซ฿•

#

฿น฿น฿น฿น

#

฿฿Š฿฿Š฿Ÿ฿฿฿Š฿ž฿฿”฿Š฿

#

฿ ฿•฿

winged oyster
#

Brister what have you done

prisma wave
#

฿ซ฿ซ฿ซ฿ค฿<฿<฿<฿•฿

#

omg

#

it works

#

bruh

winged oyster
#

???

#

How did you get it to work

cinder flare
#

where's xmonad huh

prisma wave
#

i typed "gn" instead of "gb" for the keyboard layout and it turned into like malaysian or something

#

i had to find a "b" to copypaste lmao

winged oyster
#

LMAO

cinder flare
#

haha

#

this is why you should be american

#

everything is the default!

prisma wave
#

absolutely not

#

id rather never be able to type again

cinder flare
#

haha

#

what's even the difference

#

like pound symbol instead of dollar?

prisma wave
#

yeah and some things are in different places

#

shift + 3 = ยฃ

#

shift + 2 = "

cinder flare
#

oh what

#

where did @ go

prisma wave
#

@ is to to the top left of the big shift

#

next to ;

cinder flare
#

oh I see they swapped

winged oyster
#

weird

prisma wave
#

yeah pretty much

#

most of them are the same

#

but it messes up ur muscle memory a lot

cinder flare
#

weird

#

though I'm starting to think quote not next to the enter key might be a good idea

#

there have been many a time when I go to press a ' only to accidentally send the message before it was ready

#

:)

#

now that's what I like to seeeeee

winged oyster
#

java 18 is out???

cinder flare
#

no I think people misreport or something

winged oyster
#

Ah alr

cinder flare
#

java 17 isn't even out

winged oyster
#

oh wow, i thought it was for some reason

#

It is, but it's in early access

#

according to openjdk

cinder flare
#

yea but I mean it's not something 99.999% of people will use

winged oyster
#

yeah

ocean quartz
cinder flare
#

awe man

#

do they have time data too? lol

onyx loom
#

webarchives ๐Ÿ™‚

ocean quartz
#

Yeah that might work

cinder flare
#

9% to 22%

#

now that needs to keep going at that rate for a few more weeks

#

we will stomp out Java 8 and 11

winged oyster
#

i'm still using java 8 because i've been to lazy to switch to 16

ocean quartz
#

There is no webarchive of it ๐Ÿ˜ญ

winged oyster
#

but intellij lets me use any version for development so i never really had to switch

cinder flare
winged oyster
cinder flare
#

and thank god for th at

stuck harbor
winged oyster
#

java is backwards compatible, right?

cinder flare
winged oyster
#

like any java 16 code will work in java 7

cinder flare
#

uhhh

winged oyster
#

Sorry

cinder flare
#

no

winged oyster
#

No

cinder flare
#

other way round

winged oyster
#

I said the wrong thing

#

Yeah

prisma wave
stuck harbor
#

its somewhat backwards compatible

#

somewhat the key term

cinder flare
#

the newest Java runtime can run any code from any version ๐Ÿ™‚

stuck harbor
#

sick

cinder flare
#

so therefore, everyone should be legally forced to use the latest

winged oyster
#

I agree

cinder flare
#

and then we can all enjoy the new features like pattern-matching instanceof, switch expressions, soon-to-be pattern matching switch expressions, mmmmm

simple arrow
winged oyster
cinder flare
stuck harbor
#

"pattern-matching" bof

winged oyster
#

Does it keep the same runtime as regular switch expressions? or is it just a syntax thing

cinder flare
#

yeah it just lets you do more

winged oyster
#

because i'm pretty sure that string switch expressions have the same runtime as an if statement

cinder flare
#

depends on how the compiler intereprets it

prisma wave
#

im pretty sure switches have a dedicated bytecode instruction

cinder flare
#

i actually read an entire like 4 articles about how java optimizes switches

simple arrow
#

nice yep everyone trying to update just wait for 1.8 forks to start requiring java 16

stuck harbor
#

all these fancy java things

cinder flare
stuck harbor
#

i just need memory leaks

prisma wave
#

impressive

cinder flare
#

one kinda sucks, one is real fast

winged oyster
#

Switches do, but i don't think they do for strings

cinder flare
#

might change in newer versions tho

winged oyster
#

but i could be wrong about that

prisma wave
#

Hmm

#

Easy way to find out ig

cinder flare
#

yeah let's do some compiling and bytecode analysis lmao

winged oyster
# cinder flare what

I read somewhere that switches for strings don't work the same way because the java compiler treats a string as a character array

#

so it can't do the same thing that it does for ints

cinder flare
winged oyster
#

Oh right yeah i'm a dumbass

cinder flare
#

and especially with new switch exspressions and stuff

#

it only gets better

winter iron
#

splittablerandom vs random!?!??!?!?!?

#

why what and when

stuck harbor
#

java.util.Random ain't hurt nobody

winter iron
#

so why is splittable random getting involved

obtuse gale
#

ThreadLocalRandom

#

Ainโ€™t hurt nothin

#

lulw

stuck harbor
cinder flare
#

man it's too much work to setup a bungee testing environment

#

anyone got like a docket image for me or something

obtuse gale
#

Bungee so easy to setup tho

oak raft
#

Money on the table that this is bm

cinder flare
obtuse gale
#

Can make intellij do it all in a single configuration if youโ€™re local testing. Very ez

cinder flare
#

oh that's true

#

you got a guide for that

#

also now I'm going to learn MF-CFG lol

#

wait isn't that a thing

#

@ocean quartz

obtuse gale
#

triumph config

cinder flare
#

yea it's not on the triumph page which confused me

obtuse gale
cinder flare
#

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

obtuse gale
cinder flare
#

oh boy what a README

#

how do I use this mythical beast

ocean quartz
#

It's not fully done yet, i wanna add more things like hocon, but the yml works fine

obtuse gale
ocean quartz
# cinder flare sick got any examples
object Setting : SettingsHolder {

  @Comment("A simple comment")
  @Path("some-text")
  val SOME_TEXT = Property.create("Hello")

  @Path("some-bean")
  val SOME_BEAN = Property.create(Test())

}

data class Test(val text: String = "Another Hello")

val config = SettingsManager.from(path).configurationData(Setting::class.java).create()

val text = config.get(Setting.SOME_TEXT) // returns "Hello"
val bean = config.get(Setting.SOME_BEAN) // returns a Test instance

Yml

# A simple comment
some-text: "Hello"
some-bean:
  text: "Another Hello"
cinder flare
#

wait is it only in Kotlin

ocean quartz
#

Nah, thought you were doing Kotlin, i'll change it to Java

cinder flare
#

nah I'm retro-fitting a plugin that stopped being maintained 4 years ago lol

#

ty tho โค๏ธ

obtuse gale
#

I mean it's not that hard to translate between the two languages lol

ocean quartz
#

Okok xD

cinder flare
#

shush I'm having a hard time I have to fix this old plugin

#

dear god

#

hey that looks very similar eh?

#

you got a gradle import Matt?

cinder flare
#

woah JFrog looks sick af

ocean quartz
#
maven("https://repo.mattstudios.me/artifactory/public/")
implementation("me.mattstudios:triumph-config:1.0.5-SNAPSHOT")
#

I love artifactory

#

Looks so good

#

Specially if you compare it to Nexus's design which they took straight from 1999

frail glade
#

Man, I just set a new record today.

gusty glen
frail glade
#

Have more players on my localhost server than Hypixel has on their prod servers.

#

๐Ÿ™‚

gusty glen
#

Yeah it's amazing

cinder flare
prisma wave
prisma wave
#

I was about to say

onyx loom
#

this is probably the first time hypixel wont have the #1 amount of players in over like 5 years lmao

prisma wave
#

"emergency maintenance"

cinder flare
ocean quartz
#

Sure xD

onyx loom
#

๐Ÿ˜ตโ€๐Ÿ’ซ

cinder flare
#
    public Configuration(){
        CONFIG_HEADER = new String[]{"Bungee Admin Tools - Configuration file"};
        CONFIG_FILE = new File(BAT.getInstance().getDataFolder(), "config.yml");
        try {
            init();
            save();
        } catch (final InvalidConfigurationException e) {
            e.printStackTrace();
        }
    }```
#

I gotta replace that

gusty glen
#

What are pipelines? (free xp)

old wyvern
#

@frail glade Will the pebblehost user be able to test a version? I think I have the non-agent version ready

ocean quartz
# cinder flare okay could you actually convert that to Java I am moderately confused
public final class Setting implements SettingsHolder {
  
  private Setting() {}

  @Comment("A simple comment")
  @Path("some-text")
  public static final Property<String> SOME_TEXT = Property.create("Hello")

}
final SettingsManager config = SettingsManager.from(path).configurationData(Setting.class).create();
final String someText = config.get(Setting.SOME_TEXT);
cinder flare
#

okay so init in the main file

frail glade
#

Uh is that one ticket not open anymore?

old wyvern
#

Nope, it closed from timeout

frail glade
#

Let me DM the dude to see if he can reopen it

old wyvern
#

Alrighty

prisma wave
frail glade
#

I have no fear in DMing people.

old wyvern
#

lol

obtuse gale
#

DM me

onyx loom
#

๐Ÿฆ

ocean quartz
# cinder flare okay so init in the main file

Yeah, you can create the SettingsManager in the main class or have it on a different one, then you have a separate singleton for the settings
Basically look at ConfigMe, and change a few things, mine is like an improved fork of it

gusty glen
prisma wave
#

ah

old wyvern
#

Also, matt, opinions on having the plugin have a function to provide the dependency instead?

ocean quartz
prisma wave
#

Sequences of operations I guess

old wyvern
#

like

dependencies {
  implementation slimjar("1.2.2")
}
frail glade
#

Yugi, open another ticket and have me added.

ocean quartz
#

Hmm that'd be fine yeah
Is the auto adding causing issues?

frail glade
#

We should be able to get him to test it for us.

old wyvern
#

Alrighty

old wyvern
old wyvern
frail glade
#

Okie dokie!

#

You can pull master, I just merged 1.17 support.

old wyvern
#

Also, I think having the plugin provide the default dependency means we have to update the plugin on every stable dependency release

old wyvern
ocean quartz
#

That's true yeah

obtuse gale
# cinder flare you got a guide for that

Tbh itโ€™s more tricky to do with maven itโ€™s sorta simple af with gradle. But in your edit configurations you can call other configurations when you run a different one

#

And make it run before

cinder flare
#

ah I see

ocean quartz
#

Star why you using maven? ๐Ÿ˜ฉ

cinder flare
#

im not

ocean quartz
#

Good

cinder flare
#

I just converted this project specifically to gradle]

#

cause maven was giving me cryptic errors

ocean quartz
#

Gradle init so good

obtuse gale
#

Idk I make my jar build to my server folder. Then it starts bungee( if bungees already running it stays running). Then it starts my server with the new jar

old wyvern
#

Couldnt be Elara Build Tool

obtuse gale
#

All in one button I love it

hazy widget
#

if i may ask, whats the diffrence between Maven and Gradle, i really don't know what they even mean?

old wyvern
#

Honestly I think a custom build tool might be a fun project

cinder flare
#

just put in the angle bois?

#

public static final Property<Map<String, Boolean>>

#

like that?

ocean quartz
#

Yeah public static final Property<Map<String, Boolean>> MAP = Property.create(Boolean.class, Map.of("default", "value"))

#

Actually i wonder if it works with Records for beans, it should but i wonder thonking

cinder flare
#

It ain't

ocean quartz
#

I need to rewrite the bean stuff to make it work with other file types

cinder flare
#

no create method accepting those arguments

obtuse gale
#

I mean gradle is way quicker after the first build

cinder flare
#

I also don't know what this is even supposed to look like so maybe I should get that

ocean quartz
#

Give me a sec let me test

cinder flare
#

Map property (where the key type is always String and the value type is configurable) is what ConfigMe says

ocean quartz
cinder flare
#

oh

#

you put string int he end

#

got it got it

ocean quartz
#

Shhh i didn't pay attention you had a boolean

cinder flare
#

hehe

ocean quartz
hazy widget
#

ahh okay

cinder flare
#

mmm KTS

ocean quartz
#

JVM build tool, written in Haskell with Elm syntax

old wyvern
#

๐Ÿ˜ฎ

obtuse gale
#

Lua syntax :)

ocean quartz
#

Oh boy Lua

#

When your compiler is not smart enough so you have to type end ๐Ÿ˜ฉ

obtuse gale
#

lol

old wyvern
#
dependencies [
  {group: "com.mattstudios", artifact: "mf-gui", version: "5.4.3"}
]
#

or actually

#
dependencies [
  impl "com.mattstudios" "mf-gui" "5.4.3"
]
obtuse gale
#

Ah yes, Gradle 2

ocean quartz
#
dependencies [
  impl [
    "com.mattstudios" "mf-gui" "5.4.3"
    "com.another" "lib" "5.4.3"
  ]
]
obtuse gale
#

:o

#

likey

ocean quartz
#

I actually like this

old wyvern
#

Hradle ๐Ÿ”œ

onyx loom
#

๐Ÿ˜Œ

cinder flare
#

hey @ocean quartz would I use a new File for defining its location?

#

and where would just the default config.yml location be

ocean quartz
#

Path.of(plugin.getDataFolder().getPath(), "config.yml") ;p

cinder flare
#

tysm โค๏ธ

obtuse gale
#

Gradle kts cleannnn

obtuse gale
#

Efe's main account got deleted omegalulw

ocean quartz
#

Poor guy

cinder flare
#

hey Matt how would I go about getting the entryset of a Property map of booleans?

#
    public List<String> getEnabledCmds() {
        final List<String> enabledCmds = new ArrayList<>();
        for (final Entry<String, Boolean> entry : commands.entrySet()) {
            if (entry.getValue()) {
                enabledCmds.add(entry.getKey());
            }
        }
        return enabledCmds;
    }```
#

this function how do lol

#

@ocean quartz can we get in vc ๐Ÿ˜Š

ocean quartz
#

The config.get(Setting.MAP) will return a Map<String, Boolean> so you'd loop through it like normal

#

And I can't sorry, not actively on the pc right now

cinder flare
#

okay but can I get that inside its own class

#

ahh okay

ocean quartz
#

Wdym inside its own class?

cinder flare
#

like that's a helper method in the class

#

so that way you don't have to do the whole iterating thing at every point of use

cinder flare
onyx loom
#

๐Ÿ™‚

cinder flare
#

right now trying to make it actually possibly function lol

old wyvern
#

commands.entrySet().stream().filter(Map.Entry::getValue).collect(Collectors.toMap(Function.identity(), Function.identity()))

#

๐Ÿ˜Œ

ocean quartz
#

Oh not exactly like that, you can do like i do and wrap it on a class
Like

public class Config {
    private final SettingsManager manager = ...;
  
    public <T> get(final Property<T> property) {
        return manager.get(property);
    }

    public Map<String, Boolean> getEnabledCmds() {
      final List<String> enabledCmds = new ArrayList<>();
      for (final Entry<String, Boolean> entry : get(Property.MA).entrySet()) {
          if (entry.getValue()) {
              enabledCmds.add(entry.getKey());
          }
      }
      return enabledCmds;
    }

}
#

This would work

cinder flare
#

hmmm okay, and how about inheritance

#

this superclass is used for 3 smaller bois

#

does that work?

ocean quartz
#

Which class you want to inherit from?

cinder flare
#

like use the same template of this class but with a different name essentially

ocean quartz
#

Oh yeah

cinder flare
#

wait you could just make a new instance of this class and give it a different filename, right

ocean quartz
#

Yeah

cinder flare
#

weird question but like, is there a way to set a title? or like your own comments not attached to anything at least

ocean quartz
#

Yeah, i was in the middle of adding @Description as a class annotation for that, but i'm not sure if i finished or not
You can do

@Override
public void registerComments(final CommentsConfiguration conf) {
  conf.setComment("", "This comment", "will be multilined", "on the top");
}
cinder flare
#

okay sick

#

also List property?

#

I tried public static final Property<List<String>> forbiddenCmds = Property.create(String.class, List.of("msg"));

ocean quartz
#

Just Property.create(List.of("msg")) should do it

cinder flare
#

ah okay

#

ah perfect!

#

man ConfigMe, not very well documented lol

ocean quartz
#

Nah, once i finish this i'll document it better

cinder flare
#

yea all the things I asked in a cute README would be amazing ๐Ÿ™‚

ocean quartz
#

Oh shit I actually added it already ;o

cinder flare
#

yooo

obtuse gale
half harness
obtuse gale
#

sry, thx

cinder flare
#
            for (final String server : servers) {
                servers.add(server);
            }```
#

hey wait a second

obtuse gale
#

CME ๐Ÿคก

cinder flare
#

what's CME lol

obtuse gale
#

Cnone Mof Eyourbusiness

#

Concurrent Modification Exception

cinder flare
#

well also it's adding itself to itself lmao

obtuse gale
#

Yeah that'll throw a CME

cinder flare
#
servers.addAll(servers);```
#

does that help

obtuse gale
#

Oh what

#

Lmao

cinder flare
#

yeahhhh

#

weird huh

obtuse gale
#

Why

#

What's

cinder flare
#

I have no clue

obtuse gale
#

Why

cinder flare
#

this plugin is big weird

#

I'm probably gonna spend like 3 days on this and then it's not gonna work and I'm gonna toaster->bathtub myself

#

ooh I get to use records! very cool

#

oh snap @ocean quartz is there an @Comments notation for an array?

#

Or should I just embed newlines in a singular comment?

ocean quartz
cinder flare
ocean quartz
#

Can you show me more of that screenshot?

cinder flare
ocean quartz
#

Huh did I not push that? thonking

#

No it does work, just checked my plugin using it

cinder flare
#

uh well

ocean quartz
#

Is it the right Comment import? thonking

cinder flare
#

the javadoc doesn't have the braces in it for some reason btw

#

oh shit this class is named Comment

#

wait how can I specify yours lmao

#

okay got it

#

wow that was weird

gusty glen
#

plz help

#

This is not even code with annotations anymore, it's annotations with some code inside it, also, lombok

cinder flare
#

yeah mine has some lombok too I am slowly trimming

ocean quartz
#

Lombok ๐Ÿ˜ฉ

obtuse gale
cinder flare
#

damn dude this guy wrote his own bstats

#
        String osname = System.getProperty("os.name");
        String osarch = System.getProperty("os.arch");
        String osversion = System.getProperty("os.version");
        String java_version = System.getProperty("java.version");
        int coreCount = Runtime.getRuntime().availableProcessors();```
#

mcstats.org and it isn't even up ๐Ÿฅฒ

gusty glen
#

I'm scared

cinder flare
#

yooo you might get a job tho!!

gusty glen
cinder flare
#

better than python and django, no?

gusty glen
#

I like python though

#

have never used django

cinder flare
gusty glen
#

python is not bad, the codes are short

cinder flare
#

not in my case lmao

gusty glen
cinder flare
#

uh

#

an entire django project with 10s of thousands of lines of code

gusty glen
cinder flare
#

yeah but it doesn't mean it's very readable lmao

gusty glen
#

who need readability? let's just program in APL ๐Ÿคก

old wyvern
#

Python bad

#

Haskell good

cinder flare
#

Paskell?

old wyvern
#

I had to wake up to say thag

#

Now

#

Back to sleep

gusty glen
#

I need to create a HTTP REST API using spring boot that connects to another API, fetch some data and return the results back, manually sorted

cinder flare
#

heh

gusty glen
cinder flare
#

ooh Kotlin!

gusty glen
#

(or java)

#

Lib recommendations for connecting to REST APIs for kotlin/java please

cinder flare
#

Ktor

#

I think

obtuse gale
cinder flare
gusty glen
cinder flare
#

mother fucking Lombok

cinder flare
#

just use Netty or something

#

that's what all the cool kids do

#

man I could really use a pattern-matching switch expression right about now

steel heart
#

๐Ÿฅฒ

cinder flare
#

bro Gradle Shadow doesn't support records???

#

what kind of world do we live in

obtuse gale
#

?

#

what does that even mean...

cinder flare
#

you know records

#

in java 16

obtuse gale
#

yea.. what do they have to do with shadowjar

cinder flare
#

well you see

#

you need ASM8 to use records

#

and a dependency that shadowjar uses does not support that, so it sets it lower

#

so until they merge a PR to update that dependency, you have to download a custom shadowJar to use records with shadowJar

obtuse gale
#

you're using the gradle wrapper right?

cinder flare
#

yes

obtuse gale
#

what version?

cinder flare
#

It's a dependency out of date problem

#

i dunno, it doesn't matter

#

it's a shadowjar problem

obtuse gale
#

it does matter... because i can use them just fine

cinder flare
#

you're using gradle shadowJar 7.0.0?

obtuse gale
#

lemme check, been a while

cinder flare
obtuse gale
#

๐Ÿคทโ€โ™€๏ธ

#

gradle 7.0.2 shadow 7.0.0

cinder flare
#

bro wtf

obtuse gale
#

what are you running exactly

cinder flare
#

Gradle 7.1, Shadow 7.0.0, Java 16.0.1

#

oh shit is my gradle too new

#

why gralde gotta do that

#

and why is it even related I don't understand, this is a shadow dependency

obtuse gale
#

are you running gradle on cli or from ij?

cinder flare
#

IJ

obtuse gale
#

try from a terminal

#

so ./gradlew shadowJar or whatever

cinder flare
#

well I did gradlew --version and it said 7.1

#

and I know I installed 7.1 on my WSL which would be gradle

#

so I guess downgrade?

obtuse gale
#

just tried on 7.1 and it still works for me

cinder flare
#

bro what the fuck

obtuse gale
#

are you sure IJ is running gradle on java 16?

#

in settings -> build execution whatever -> gradle

cinder flare
obtuse gale
#

๐Ÿคก

cinder flare
#

im gonna cry dude, I've spent hours on this shit and using cool new records and shadowJar together is what breaks everything

obtuse gale
#

kek

quiet depot
#

shadowjar works fine with records 4 me

cinder flare
#

bro wtf

#

why have 3 people including myself had this issue

#

i even invalidated caches and restarted

quiet depot
#

i am using an older shadow version

#

gonna try 7.0.0

cinder flare
#

how do you compile java 16 with an older shadow version

quiet depot
#

well

#

just like you would with any other java version

cinder flare
#

oh I see I see

quiet depot
#

i was using 6.1.0

#

7.0.0 works for me too though

cinder flare
#

motherfucker

#

even on 6.1.0

#

how do I build my own shadowJar

#

I'll do it

quiet depot
#

nah

#

follow my instructions boi

cinder flare
#

that's what the guy did!

#

what instructions

quiet depot
#

these

#

cd ~

#

rm -r .gradle

#

u might want to backup that folder first

#

then remove .gradle in ur project

cinder flare
#

doesn't look like anything important is in there

quiet depot
#

then run gradle wrapper from cli

#

everything gradle has ever downloaded is in there

obtuse gale
#

ever

cinder flare
#

yeah but I just gradled this bad boy like 3 hours ago

quiet depot
#

oh right you're a maven user

#

lol

cinder flare
#

NOT BY CHOICE

quiet depot
#

show me the java version you're using

#

aswell

#

just the sdkman identifier

cinder flare
#

didn't work

quiet depot
#

is that hotspot

cinder flare
#

yers

obtuse gale
#

openj9 ๐Ÿคก

#

works fine for me on both windows and wsl

cinder flare
#

yeah who tf wants Eclipse's thing

#

I don't get how it does

#

like this is an acknowledged issue

quiet depot
#

ye idk i've got records throughout my project and it compiles fine

cinder flare
#

i stg

#

toaster -> bathtub

#

are you targeting java 16?

quiet depot
#

I don't set an explicit target

#

just source compat

#

never really saw the point of setting target

obtuse gale
#

it wouldn't be able to compile if it weren't

cinder flare
#

yea that's what I meant

cinder flare
#

this is the weirdest shit ever

obtuse gale
#

sheesh

#

star is losing his mind ๐Ÿฅฒ

cinder flare
#

yeah dude

quiet depot
#

this is what my shit is looking like

cinder flare
#

all my hard work gone to naught because of fucking records and some obscure shadowjar dependency

quiet depot
#

which is why I don't really want to switch

cinder flare
#

bro what are you on about

#

KTS is way cleaner than that

quiet depot
#

ur delusional

obtuse gale
cinder flare
#

i no touchy

#
        <dependency>
            <groupId>net.md-5</groupId>
            <artifactId>bungeecord-api</artifactId>
            <version>1.15-SNAPSHOT</version>
            <type>jar</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>net.md-5</groupId>
            <artifactId>bungeecord-api</artifactId>
            <version>1.15-SNAPSHOT</version>
            <type>javadoc</type>
            <scope>provided</scope>
        </dependency>```
#

he really did have that in his pom.xml tho

obtuse gale
#

lmao

cinder flare
#

ohh jar vs javadoc

obtuse gale
#

stupid

cinder flare
#

also do I need sqlite as a compileOnly?

#

or mysql-connector

#

or log4j wtf

obtuse gale
cinder flare
#

ah okay

obtuse gale
obtuse gale
cinder flare
#

so no impl on log4j or slf4j?

obtuse gale
#

these are bundled in mc 1.17

#

and this bad boi

cinder flare
#

do I need to impl HikariCP

obtuse gale
#

yes

cinder flare
#

okay sad

obtuse gale
#

spigot doodoo does not shade it

cinder flare
#

wait

#

that's also in bungeecord right

obtuse gale
#

what is?

#

hikari?

cinder flare
#

all those things

#

slf4j and shit

obtuse gale
#

heh

#

great question

cinder flare
#

ahhhhh

obtuse gale
#

no idea lmao

cinder flare
#

also which lib are those bad boys in

obtuse gale
#

?

#

wdym which lib

cinder flare
#

er uh repo

obtuse gale
#

ah

#

central i believe

cinder flare
#

oh shit I don't have central what a weirdo

obtuse gale
#

idk, fabric loom adds them for me ๐Ÿ˜Œ

cinder flare
#

we can't all live in happiness okay

obtuse gale
#

you definitely can't ๐Ÿฅฒ

cinder flare
#

some of us have to retrofit plugins that haven't been worked on in 4 years

#

and some of us have to deal with SHADOWJAR fucking our shit up

#

and I'm hungry I'm gonna go eat something

obtuse gale
#

lmao you have local but not central

#

special

cinder flare
#

it autoadds local

obtuse gale
#

oh right, gradle init lmao

cinder flare
#

yeah bri ish gradle

obtuse gale
#

xDD

obtuse gale
#

Can someone explain to me in Layman terms what the hell this is supposed to mean?

* `compileOnly` โ€” for dependencies that are necessary to compile your production code but shouldnโ€™t be part of the runtime classpath
* `implementation` โ€” used for compilation and runtime
* `runtimeOnly` โ€” only used at runtime, not for compilation
ocean quartz
#

Do command libs normally tab complete aliases as well? thonking

frail glade
#

acf doesnt

#

Idk about cloud

ocean quartz
#

Hmm thank you, I'll see if it's hard to do hide it

frail glade
#

I've been looking more and more into cloud lately.

#

Probably not for Guilds though sadly. Too many commands.

ocean quartz
obtuse gale
#

it does not

ocean quartz
obtuse gale
#

the one second i try to read the gradle docs i have no idea what anything means

ocean quartz
#

Sounds about right

obtuse gale
#

๐Ÿ˜ญ

#

why don't they want me to do things right

cinder flare
#

nah nah there's a chart

#

they converge

#

implementation is both, it's available when you're compiling (so when you click gradle) and when you're running (so it's shaded in)

obtuse gale
#

why the hell is runtimeOnly even a thing!!

cinder flare
#

compileOnly is for things that your IDE needs to know about to lint, but it doesn't shade them since they'll be available at runtime

obtuse gale
#

in what world is that useful

cinder flare
#

yeah I have no idea what runtimeOnly is for, but it's where gradle doesn't know about it at compile time but it shades it I think

#

maybe for like an api or something?

#

if you only want to provide a transivitive dependency but not use it yourself lmao

obtuse gale
#

runtimeOnly is kinda like the opposite to compileOnly, it's excluded at compile time but it's part of the classpath, it's shaded in

cinder flare
#

yes

#

they're two halves of availability

#

and implementation is both together

obtuse gale
#

in what world is runtimeOnly useful

#

this is stressing me

#

it doesn't even serve a purpose for transitive dependencies !!!

ocean quartz
#

I don't think I've ever seen it being genuinely being used

cinder flare
#
dependencies {
    runtimeOnly(group = "org.springframework", name = "spring-core", version = "2.5")
    runtimeOnly("org.springframework:spring-aop:2.5")
    runtimeOnly("org.hibernate:hibernate:3.0.5") {
        isTransitive = true
    }
    runtimeOnly(group = "org.hibernate", name = "hibernate", version = "3.0.5") {
        isTransitive = true
    }
}```
#

that's gradle's example

obtuse gale
#

but why

#

i can't use it in my code

#

why would i provide something at runtime i don't get to use ๐Ÿ˜‚

#

this is hilarious

ocean quartz
#

This sounds stupid

For example, you don't need the concrete SLF4J logger(e.g. logback) at compile time (as you use the SLF4J classes in order to access it) but you need it at runtime as you want to use it.

cinder flare
#

that saves so little

obtuse gale
#

I mean... I suppose?

#

the only thing it achieves is me not being able to see the implementation at all

#

it supposedly makes building faster? i wonder by how much

cinder flare
#

the ultimate encapsuslation

obtuse gale
#

yea lol

#

jigsaw modules my ass

#

This is sad, I'm actually laughing at how terrible this is

cinder flare
#

i'm still extremely depressed I can't build my fucking record classes

obtuse gale
#

Oh yeah time to laugh at Star instead of gradle dependency configurations

cinder flare
#

can you build my project for me ๐Ÿฅฒ

obtuse gale
#

I literally just turned off my PC

#

not even a minute ago

cinder flare
#

you mother fucker

obtuse gale
#

๐Ÿคฃ

#

Okay okay I'm turning it on again

#

Is it up in a GitHub repo or something or you're just gonna zip it and send it?

cinder flare
#

hold on git has just informed me there are 105 errors

obtuse gale
#

Lol

cinder flare
#

okay turns out it was IJ being a bitch and counting "SQL errors" as actual errors

#

even though it just can't find the tables in my local db

obtuse gale
#

that's the experience corporations are paying for with ij idea ultimate lol

cinder flare
#

I mean it'd be nice if I could actually build the plugin and have it setup the db

obtuse gale
#

community = no db integration = no weird ass errors

obtuse gale
cinder flare
#

keeping it for legacy reasons

#

just in case I need to reference it

#

i stg maybe I should move back to maven

#

gradle's really making me reconsider

obtuse gale
#

your project is broken

cinder flare
#

i'm gonna commit die

obtuse gale
#

xDDDD

cinder flare
#

do you see anything wrong with it

#

like take a good look at the build.gralde and everything

obtuse gale
#

this is so cursed

#

xD

cinder flare
#

see what I mean

#

@quiet depot can we get the expert in here to take a look

quiet depot
#

ok

#

i bet i can make this work

#

in a way you won't like

cinder flare
#

hmmm

#

delete windows lmao

quiet depot
#

what's local for

#

maven local

#

maven local shouldn't be used in public projects