#dev-general

1 messages ยท Page 582 of 1

rotund egret
#

Couldn't be me

distant sun
#

434 contributions in the last year
welp

rotund egret
#

I link I'm at like 30-40 ๐Ÿ˜›

ocean quartz
#

538 contributions in the last year
๐Ÿ˜ฉ

whole mica
#

What config indent is needed in deluxemenus to apply an enchantment or multiple?

whole mica
#

ah my bad

obtuse gale
half harness
#

lol ๐Ÿ˜‚ ๐Ÿคฃ ๐Ÿค” ๐Ÿ‘€ ๐Ÿ˜Ž

obtuse gale
#

@half harness Too many emojis.

half harness
#

-_- ๐Ÿ˜’ sad_fingerguns โ˜น๏ธ ๐Ÿฅฒ ๐Ÿ˜–

obtuse gale
#

\๐Ÿ˜–

half harness
#

๐Ÿ‘€

#

\๐Ÿ‘€

eternal compass
#

\๐Ÿ‘€

#

\๐Ÿ˜ฅ

obtuse gale
#

man the StackWalker is pretty cool stuff

humble silo
#

Does anyone have a java decompiler for jars that works on mac? Ive been using JD-GUI but I wanna switch to something else

ocean quartz
#

IJ ;p

humble silo
# ocean quartz IJ ;p

does it have something that can do jars? Obviously it has it for .class files but thats not really what i want

sweet cipher
#

Just import the project?

ocean quartz
#

Add the jar to a folder in a random project, import it in gradle and boom it's decompiled

humble silo
#

ya thats not really what i wanted

ocean quartz
#

@eternal compass You use React right? You use Material UI?

humble silo
#

and is kinda annoying

eternal compass
#

I use tailwind and style everything myself

#

but shoot, I may be able to answer

ocean quartz
burnt hearth
#

Hey all o/ Does anyone know of any alternatives to WorldGuardExtraFlags? It's been discontinued and doesn't work in 1.17.1 . Any ideas please ping me ๐Ÿ™‚ Thanks!

eternal compass
#

but yeah I don't use it

#

it doesn't support Styled components/Twin I don't think

viscid inlet
#

guys

#

itsany form to allow the "รฑ"

obtuse gale
#

what?

ocean quartz
#

Yes

forest pecan
#

Users tryna promote Skript

sweet cipher
#

๐Ÿ˜Œ

dense dew
#

guys who developed minecraft things and not only plugins (sponge plugins/fabric/forge mods, ...)
what do you like the most?

old wyvern
#

death

steel heart
#

I like sponge

#

Fabric is fine but itโ€™s not too different from forge imo

#

I hate developing spigot plugins but using paper api makes it doable

inner umbra
#

"Not only plugins" ... "sponge plugins"
๐Ÿคฆ

dense dew
#

๐Ÿฅด ๐Ÿฅด

wind patio
#

nothing makes me happy after I started coding

#

๐Ÿ˜ฉ

dense dew
#

๐Ÿ˜”

#

coding makes me happy ๐Ÿ˜ƒ

distant sun
#

any idea if IIJ IDEA has a way to highlight xpath in code?

gusty glen
steel heart
#

Short and concise, nice

snow shuttle
#

Im new at programming and i dosen't now what is a objekt

#

At java

dense dew
obtuse gale
lunar cypress
#

call the

#

call the number

obtuse gale
#

lol

rotund egret
inner umbra
rotund egret
#

Sponge can also be ran on the client, and all plugins are registered as mods through forge

#

While they are at a base level, just plugins, they are also in some scenarios, mods

rotund egret
#

Grats

inner umbra
#

I only ever used sponge like 5 years ago I think lol

#

So things might have changed xD

obtuse gale
#

Plugins are just server sided mods reversed_fingerguns

static zealot
#

orrrrrr

#

mods are just client side plugins

obtuse gale
#

Server mods are client mods then?

static zealot
#

no. server mods are just plugins but without being plugins.

ocean quartz
#

Mods are just plugin sided servers

static zealot
#

or servers are just not client sided sides. that are technically mods but plugins equals servers so then fuck

obtuse gale
#

Minecraft is a video game in which players create and break apart various kinds of blocks in three-dimensional worlds. The gameโ€™s two main modes are Survival and Creative. In Survival, players must find their own building supplies and food. They also interact with blocklike mobs, or moving creatures. (Creepers and zombies are some of the dangerous ones.) In Creative, players are given supplies and do not have to eat to survive. They also can break all kinds of blocks immediately.

Are there points or levels? No. The purpose of the game is simply to build and explore (and survive).

How many players can play it? You can play by yourself or you can play online with others. The smartphone and tablet versions offer multi-player options through WiFi networks. Players can connect to thousands of Minecraft online games (servers), some of which involve battling other players

ocean quartz
#

How many players can play it? You can play by yourself or you can play online with others.
How many? Yes

obtuse gale
#

Lmao

#

[1;โˆž)

lunar cypress
#

tremblingpepe calc flashbacks

sweet cipher
obtuse gale
#

It's not a main mode, it's a secondary one

sweet cipher
#

It should be a main mode

gusty glen
static zealot
#

@old wyvern lol

#

anyone wants 1 month of jetbrains all products pack?

#

gives you ij ultimate and some of their other shit. webstorm and whatever. it is just 1 month tho. so better claim it quick lol.

ocean quartz
gusty glen
#

I have no idea, that is something I should love to know

#

I might test it later

dense dew
static zealot
#

there might be people don't have it

steel heart
#

4hed

#

u

dense dew
static zealot
#

turns out someone needs one

static zealot
#

me

#

for example

dense dew
#

๐Ÿ˜”

static zealot
#

took 1 year of from school.

dense dew
#

what are you doing

#

most time

static zealot
#

well I'm starting uni now xD

steel heart
#

big boi blitz

static zealot
#

for some reason that sounds like old now ๐Ÿ˜ฆ

dense dew
#

how old are you ๐Ÿ˜ฎ

steel heart
#

hes 146873

static zealot
#

^

dense dew
steel heart
#

oo the test stcicker works nw

#

thats new

static zealot
#

ugh

#

not new. but alr

steel heart
#

yes u 4hed ๐Ÿ˜ฆ

static zealot
#

oh. you might've required nitro before.

steel heart
#

๐ŸŒ

static zealot
#

sorry. I mean server boost

#

oh u boosting.

steel heart
#

been since sep 26 2020

static zealot
#

yes. I see that

#

a lot of wasted money.

steel heart
#

๐Ÿฅฒ

#

you hurt me lol

static zealot
#

oh wait. it is you that got charged for 1 year ?

#

xD

steel heart
#

well I just cba to unsub it

static zealot
#

...

#

at least unsub now lmao

#

it literally takes 1 click

#

actually might be 2

steel heart
#

well

#

I have this cool badge

#

and I'd certainly not want to lose it

static zealot
#

butttt. you could subscribe to me.

steel heart
#

lmao

#

true

static zealot
#

I will send you 1 wall pick every week.

#

for just 10$/week

steel heart
#

lmao

#

hmm

#

not even a toe pic?

static zealot
#

ugh. you got a death wish or something?

steel heart
#

hmm

#

maybe

#

but its tempting

static zealot
#

unfortunately I can only offer wall pics

rotund egret
#

I can offer bird pics ๐Ÿ‘€

steel heart
#

Blitzodd

#

imagine

#

perfect match

static zealot
#

no ty

prisma wave
#

๐Ÿ˜ตโ€๐Ÿ’ซ

rotund egret
#

If you know, you know ๐Ÿ˜Ž

steel heart
prisma wave
serene cave
#

Hello

prisma wave
#

Hi mate

onyx loom
gusty glen
#

I kinda need help with Toothpick, anyone here has already used it before?

ocean quartz
#

You normally just pass the tip of it between the teeth
i'm sorry i had do!

gusty glen
#

Matt, Guice and Toothpick hates me

#

Guice throws "IllegalStateException: zip closed something" in runtime, and Toothpick throws "IndexOutOfBounds" when parsing annotations at compile time

gusty glen
obtuse gale
#

lmao

#

the ! makes it even funnier

gusty glen
#

Why is that happening, wtf?

obtuse gale
#

Let me pull up the generic fuckery voodoo piggy asked me to do for papi

ocean quartz
#

Nothing!

gusty glen
#

out Any means ? extends Object, why is Any value not an instance of Class<? extends Object>, like wtf

obtuse gale
#

lmao

half harness
#

;-;

gusty glen
#

haha

obtuse gale
#

lol

half harness
#

but

#

dont use HashMap

gusty glen
#

I don't need LinkedHashMap here, no reason to use that

half harness
#

hashMapOf

gusty glen
half harness
#

yea

#

but hashMapOf looks nicer ๐Ÿ˜Œ

gusty glen
#

how so

half harness
#

it exists in the stdlib ๐Ÿ˜Œ

gusty glen
#
val test = HashMap<String, String>()
val test = hashMapOf<String, String>()``` it's just longer
obtuse gale
#

oh no

half harness
#

but ๐Ÿฅบ

obtuse gale
#

two characters

gusty glen
#

I can't be assed

half harness
#

plus you'll drive off people like me who think u dont know what mapOf is

#

its a win win

obtuse gale
#

ah yes, IntelliJ

#

and this "works" (IJ doesn't complain)

obtuse gale
gusty glen
#

nice

#

I'll test to see if mine compiles too

ocean quartz
#

Gotta love html

#

Even with 2 space indentation it gets super arrow-y

gusty glen
#

Maybe something to do with Kotlin? :/

#

@quiet depot if you have some time and can explain to me why this happen in Kotlin (and if there is a workaround), I would really appreciate it

obtuse gale
#

kotlin bad

half harness
#

is it bad if my shop.yml for bedwars is 516 lines ๐Ÿ’€

#

and the wiki i use for it is 430 lines ๐Ÿ’€

gusty glen
#

The class got a public constructor generated, as seem on this decompiled code

eternal compass
#

Fibonacci ๐Ÿ˜Œ

ocean quartz
#

Ah yes, how could i have forgotten

eternal compass
#

also thats react not html smh

half harness
#

oh no

#

(this is not me btw)

eternal compass
#

you broke discord man

#

ah

ocean quartz
eternal compass
#

also I'm officially a minehut partner now lmao

eternal compass
#

ig thats technically the right term

forest pecan
#

lol

#

or set the option enabled

quiet depot
#

@gusty glen show me kotlin class

gusty glen
# quiet depot <@274229586961629185> show me kotlin class

It's a normal class with a bunch of val ass = NamespacedKey(anotherAss), without any annotations. The issue is not with that class cause as soon as I added the ugly @Inject constructor after the class name, the error migrated from that class to another one that also didn't have the @Inject at the constructor

robust sentinel
obtuse gale
#

fucking MAC???

sweet cipher
#

Lol

sly sonnet
gusty glen
#

it should have, I mean, it's kotlin that we are talking about

#

single constructor all args, etc

steel heart
#

Ye

steel heart
old wyvern
frail glade
#

@old wyvern your Oracle machine still going strong?

old wyvern
#

yup

hot hull
#

Don't jinx it

#

Hey @distant sun what's up with the discord moodle bot, did you ever finish it or

distant sun
#

Nah, I don't like their api nor understand shit

#

will probably use selenium if we go back online

#

currently using it for work so it will be fun

hot hull
#

Ah yea, wasn't able to figure out the shit show that was their API, was hoping you had some more luck

distant sun
#

I don't understand its structure very well and the documentation is eh

boreal sphinx
#

Hello. I am currently setting up a new server, where I will include rank vouchers in my crates. However, my question is let's say a user has a legend rank and he in the crate gets a VIP rank voucher, where the legend rank is obviously higher and the user then accidentally redeems a VIP rank he would then lose the voucher. How do I make it like on most servers so that the user can redeem the voucher lower than their current rank?

Hope this makes sense, thank you.

distant sun
#

I have a vouchers plugin that lets you add 'blacklist' permissions and you could basically check if the user has group.vip (assuming you use luckperms and that groups inherit each other)

distant sun
static zealot
#

good one

sick belfry
#

bedrock has a thing called transfer packets

#

that transfers the players data to other ip

#

but java doesnt have it

#

so

#

Fuck You Mojang

ocean quartz
#

I mean wouldn't a normal bungee/velocity setup work for that?

red scroll
#

hey

static zealot
#

might also start paying.

basically:

Hello, Don't we live in a beautiful society? As beautiful as it is, I do believe even better would be if everyone started from the position of slave and worked their way up. Being a paid worker is not that fun unless you did some slave work before.

rotund egret
#

Yes โ˜บ๏ธ

half harness
steel heart
#

๐Ÿ‘ฒ

forest pecan
#

oops

sweet cipher
half harness
#

the amount of times i ran into issues relating to inventory having null items is so annoying ๐Ÿ˜ 

the thing is, I rarely check console due to my debug messages in Bukkit.broadcastMessage, and so I get an NPE and I don't know about it ๐Ÿ˜–

rotund egret
#

Any reason you don't do actual logging?

half harness
rotund egret
#

Oh, most of my tests are visible through console, but I can see the benefit of in-game testing.
I'm hoping they make the GameTest tool available for Java

#

Oh looks like it might be in 1.17 ๐Ÿ˜ฎ

half harness
#

but

#

1.17 is already a thing

#

u mean 1.18? ๐Ÿฅฒ

rotund egret
#

O gdi, it's a bedrock update.

#

Disapointed myself

half harness
#

lol

half harness
#

what

#

..why is it in the api then

steel heart
#

Might be overridden by a deriving class

ocean quartz
#

Or gets patched

dense dew
#

whats the main reason rhat MC server is mainly single threaded?

steel heart
#

Doesnโ€™t need to implement thread safety

ocean quartz
#

Multithreading is a deep complex hole

steel heart
#

A multi threaded server software would need to implement locking mechanisms to synchronize stuff and ensure some variable values arenโ€™t cached with the usage of volatile which has its cost. Also I believe a lot of spigot developers donโ€™t know a jack shit about multi threading else than the BukkitScheduler.

sweet cipher
#

Also wouldn't using multithreading cause "lag" anyways because of data needing to be synced across threads? Unless it was very well done?

steel heart
#

Precisely yeah

#

I guess certain parts like chunk loading could be beneficial if it was done concurrently altho it is already to a certain extent if Iโ€™m not outdated but good point.

sweet cipher
#

I think paper does

#

I'm not sure about spigot

steel heart
#

Donโ€™t get your hopes up for spigot lol

sweet cipher
#

lol

obtuse gale
ocean quartz
#

๐Ÿ˜Œ

sweet cipher
#

What makes multithreading better in a functional language?
Is it because there is no changing of states?

urban sleet
#

Unless i'm missing something, that sounds like a terrible idea

covert aspen
#

its to decrease lag on server releases @urban sleet ^^

urban sleet
#

I'm not sure you fully understnad what entity tracking range is

#

Also, read the bottom of the image you sent

half harness
#

๐Ÿฅฒ

#

"tracked" to the client
Entities are still managed by the server, the only performance increase I can think of is not sending the packet

covert aspen
#

200 players around spawn

sweet cipher
#

Still wonโ€™t do much if anything

rotund egret
#

Ignore the haters, follow your dreams

sweet cipher
#

Yeah Iโ€™m sorry

distant sun
steel heart
#

Lol

static zealot
#

๐Ÿฅฒ

prisma wave
#

which makes it very easy to do things like parallel processing

#

like streams do

steel heart
#

Mutable streams imagine lol

sweet cipher
#

So all we have to do to make Minecraft multithreaded is make it in Haskell

prisma wave
#

Precisely

#

That's a great idea

sweet cipher
#

I donโ€™t get how you store data with functional programming, like how do you know how much health a player has, their inventory, etc?

obtuse gale
#

You don't

steel heart
#

Hrypton (:

obtuse gale
#

Though "storing data" is different from "mutable data in memory"

#

It's really up to the particular language how they implement both

#

AAAAAAAA

#

Eclipse Adoptium provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

#

It's here

#

It arrived

sweet cipher
obtuse gale
#

It was a joke lol

sweet cipher
#

Oh

#

Maybe I just have to learn Haskell to understand

#

But I donโ€™t have time for that

red scroll
#

need help

#

how i connect a server

#

to my npc

#

bungeecord

#

i put the server in bungeecord

#

but cant connect to npc

#

and also need to add it in gui

prisma wave
#

If you want to modify it, you make a copy

#

which is less inefficient than you might think

#

And yeah as Emily said it depends on the language

#

Most of them have at least 1 abstraction for state and things

quiet depot
#

what is adoptium

prisma wave
#

new adoptopenjdk

quiet depot
#

it's adoptopenjdk

#

why

prisma wave
#

Eclipse foundation took control of it I think

#

and so renamed

quiet depot
#

oh right

#

wtf java 17 is out?

onyx loom
#

yes

prisma wave
#

yeah came out a few days ago

quiet depot
#

school sucks

#

don't hear anything about dev anymore

#

too busy

prisma wave
#

sad

obtuse gale
#

:(

onyx loom
#

quit school ez

quiet depot
#

i'll be done soon

#

ish

obtuse gale
#

tm

onyx loom
#

last year?

quiet depot
#

erm

#

i've got 12 months left but it's not my last year

#

so yeah interpret that however you can

onyx loom
#

๐Ÿ‘

quiet depot
#

but after that 12 months is up

#

papi 3 is on the way

#

probs

distant sun
#

:))

#

yeah sure

remote goblet
#

uh huh piglet

quiet depot
#

yea soonโ„ข๏ธ

remote goblet
#

it been 13 months

quiet depot
#

yes

#

release in/before 2023

remote goblet
distant sun
#

are you free this weekend pig? ๐Ÿ˜„

quiet depot
#

yes

distant sun
#

nice nice

pallid gale
quiet depot
#

cube my holidays start this weekend

pallid gale
#

noice

hot hull
quiet depot
#

yes

icy quest
#

looking for a minecraft coder

#

please dm

sweet cipher
icy quest
#

how do i look for coders

static zealot
sweet cipher
static zealot
sweet cipher
#

Lol

icy quest
#

cant find the channel

static zealot
#

ugh.

sweet cipher
#

Itโ€™s in services

static zealot
#

you can literally click on those

sweet cipher
#

Oh

#

They have a services mute

static zealot
#

oh. lmao

#

I made all this xD

sweet cipher
#

Lol

icy quest
#

why do i have a mute/

#

literally just joined

static zealot
#

ugh. u should probably know lol.

#

nah it is not your first time here.

icy quest
#

i dont remember

#

how do i get an unmute?

obtuse gale
#

lol

icy quest
#

do i request it

quiet depot
#

Your mute won't be removed

#

ever

obtuse gale
#

๐Ÿ˜Ÿ

icy quest
#

damn that's cool

static zealot
#

can't really find an exact reason but I assume it was a lot of bumping.

#

oh nvm.

#

found the reason. apparently you sent nsfw content in response to a service.

icy quest
#

wtf

obtuse gale
icy quest
#

apparently?

#

okay well if i wont be getting unmuted or cant appeal

quiet depot
#

definitely not apparently, I'm looking at the evidence right now

icy quest
#

then there's no point

static zealot
#

oh. there's evidence. lol. I don't have access to that. just what I was told.

icy quest
#

discord mods amirite

obtuse gale
#

definitely not their fault PepeLa

#

fascist admins

sweet cipher
#

Cmon admins

#

Punishing people for breaking the rules

sly sonnet
#

imagine having the rules

prisma wave
#

It's actually somewhat similar to procedural languages like C

#

In that you're clearly separating data and functionality

sly sonnet
prisma wave
#

yes exactly like that

hot hull
#

Oop best

jovial warren
#
Error: Could not find or load main class org.kryptonmc.krypton.KryptonKt
Caused by: java.lang.ClassNotFoundException: org.kryptonmc.krypton.KryptonKt
```well, looks like IJ's decided to start being a bitch for no reason
#

not even clean building or invalidating caches & restarting seems to save this one

#

nvm, invalidating caches with invalidating the file system cache seemed to work

dense dew
#

what are some really hard programming langs (but hard for reason, not because its shit)

#

๐Ÿค”

#

first google result

#

in the second is html too

sweet cipher
#

Whatโ€™s the issue?

static zealot
dense dew
prisma wave
#

Malbolge

#

If you mean real languages then I would say Rust and Haskell are pretty difficult

sweet cipher
jovial warren
#

HTML is a markup language, not a programming language

static zealot
obtuse gale
#

not that I know of

dense dew
prisma wave
#

No it's not

dense dew
#

then why he said and ๐Ÿ˜”

lunar cypress
obtuse gale
dense dew
#

๐Ÿ˜ณ

prisma wave
#

OH YEAH

#

APL hardest non-esoteric language

#

@obtuse gale you good?

static zealot
#

no

obtuse gale
#

:~:

#

you saw nothing

static zealot
#

I saw everything

#

๐Ÿ‘€

obtuse gale
#

P-permission i-i-is

#

h-he-her..

#

๐Ÿ˜–

prisma wave
#

HEREBY

obtuse gale
#

AAAAAAA

dense dew
#

do you like TS guys ๐Ÿ™‚

prisma wave
#

NO

old wyvern
prisma wave
#

State monad transformer!

dense dew
#

you are too smart guys

sweet cipher
#

Sounds complicated

obtuse gale
#

1 test completed, 1 failed
PepeSad

slim tiger
#

is there an api for EzRanksPro ? and can i use it through maven or gradle ?

dense dew
wind patio
#

less go

dense dew
#

hello guys, what do you think is the best programming language documentation?

ocean quartz
#

There are so many, doubt there is a best one, kotlin is pretty good, rust is pretty good, not familiar with many others

prisma wave
#

Kotlin and rust are known for having good documentation, Scala's also seems really good

dense dew
#

and "best" in design way? ๐Ÿ˜„

ocean quartz
#

Like?

prisma wave
#

That sounds subjective

dense dew
#

yep

#

just asking for subjective opinion

ocean quartz
#

Like the pages design?

dense dew
#

๐Ÿ˜ฎ kotlin docs looks sexy

#

yep

ocean quartz
#

Rust's looks okay
I think it uses mkdocs?

#

Or was it a different name?

old wyvern
prisma wave
#

So true

old wyvern
#

mkdocs uses rust I think

prisma wave
#

it's known for having a completed specification and active maintainers

ocean quartz
#

Ah it's mdbook not mkdocs

dense dew
#

okay guys thanks

lunar cypress
#

better than rust in that regard

obtuse gale
#

@dense dewSCALA

#

and CLOJURE

#

and period, this is NOT up for discussion

old wyvern
#

๐Ÿ˜Œ

urban sleet
#

I've been trying to set it up locally all day

old wyvern
#

Try putting into into the sea

#

Probably wont run on land

#

Make sure you fuel up as well

urban sleet
#

Boat motors can run on land ๐Ÿ˜‰

humble silo
#

Does anyone know if there is a way to tell kotlin not to use getters and setters on properties and to just access it directly?

sweet cipher
#

Try switching to Java

humble silo
old wyvern
#

Classic kotlin

humble silo
#

great it works perfectly

ocean quartz
#

Idk how that works, but a way i did around for ConfigMe to prevent having to annotate everything with that was to use reflection to make fields accessible

humble silo
#

fast panorama

humble silo
ocean quartz
#

Lmao yeah

forest pecan
#

Direct links to yt videos be like

https://r3---sn-p5qs7nee.googlevideo.com/videoplayback?expire=1632374178&ei=QrlLYd6WNtLV8wSG1KCADA&ip=3.88.26.186&id=o-ABrUv1NCVDbAKEmNiFees-oKeSvtROccsy4H8M55A0og&itag=278&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=Rf&mm=31%2C29&mn=sn-p5qs7nee%2Csn-p5qlsndd&ms=au%2Crdu&mv=m&mvi=3&pl=12&initcwndbps=1210000&vprv=1&mime=video%2Fwebm&ns=TKpvU1kYS6lbDnLGBtAH29gG&gir=yes&clen=53473&dur=9.833&lmt=1544742069769006&mt=1632352371&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432432&n=5NTdegLh-k39R0n9&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAKntYvjELWY9CBwdXwAeBKzx3dTqTtGrp8RVBvaAFl_9AiBaFIZGVCQqmi_EKoAnZSbSjMWuOtWYrdbFSooh4syrfw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhANV-Rh2W0zAe5i4M3bynfm_rpSHPbmc8cHAtKK-klmygAiEAyrhCcHd12VFsOGtarM-HEAM54EoNepov3VvoC6h5AVA%3D
humble silo
#

the question is, should i click it

ocean quartz
#

Google links

obtuse gale
#

Classic

forest pecan
humble silo
#

i see

#

screenshots be like

cinder flare
#

BM I think you'll be happy to know that I requested my university add a course on Haskell and basic type theory, so hopefully that happens

#

@prisma wave ^

obtuse gale
#

!!!

#

Very cool

cinder flare
#

yeah the head of the CS department looked at me and went "I do not know those things, therefore I will not be teaching that class!" lol

obtuse gale
#

...

#

Wow

forest pecan
#

the CS teacher at my school is weird. He wants a hybrid of allman and K&R

#
public class MyClass
{
  public static void main(String[] args) {
  }
}
#

๐Ÿ’€

half harness
#

XD

#

rip whatever IDE they're using ๐Ÿฅฒ

#

if they use an IDE*

#

Notepad ๐Ÿ˜Œ

forest pecan
#

Lol

cinder flare
#

allman for classes and OTBS for functions?

forest pecan
#

yep

obtuse gale
#

man do I love fabric modding

#

ClientPlayNetworkHandlerIntegratedServerStatusSetter

old wyvern
#

Damnnn, thats a lot of choices

obtuse gale
#

lmao

lunar cypress
#

submit to the script

old wyvern
#

๐Ÿ˜ซ

cinder flare
#

hell yeah

#

i really think type theory is super interesting and vital to a good programming language

#

so i'd love to learn more about it lol

tacit cave
#

um hello

#

i have 2 methods to implement a listener class

#

which one is more effective?

#

1:

public class SoundEffectListener implements Listener {
    private final ConfigHandler config;
    private final HashMap<String, Integer> map = new HashMap<>();

    public SoundEffectListener(SFX main) {
        Bukkit.getPluginManager().registerEvents(this, main);
        this.config = main.configHandler;
    }

    @EventHandler
    public void onItemSwitch(PlayerItemHeldEvent event) {
      new soundEffectClass(event);
    }
#

2:

#
public class SoundEffectListener implements Listener {
    private final ConfigHandler config;
    private final SFX plugin;
    private final HashMap<String, Integer> map = new HashMap<>();

    public SoundEffectListener(SFX main) {
        Bukkit.getPluginManager().registerEvents(this, main);
        this.config = main.configHandler;
        this.plugin = main;
    }

    @EventHandler
    public void onItemSwitch(PlayerItemHeldEvent event) {
      this.plugin.soundEffectClass(event);
    }
potent nest
#

well that mainly depends on what's happening in the code you're calling there

tacit cave
#

well, i guess the second method is better

#

because in the first method we define a new class every fired event

#

am i right?

distant sun
#

is this new? ๐Ÿ˜ฎ

#

because folders and files are alphabetically sorted, the server folder is above src, is there any way to move it below? It has too many files and it is hard to see the src if it is opened.

hot hull
#

Can't you adjust how things are sorted?

distant sun
#

idk

onyx loom
potent nest
# tacit cave am i right?

no. the class is only defined once. You're creating a new object each time but without seeing the other method there's nothing to say about "what's better" besides the fact that creating an instance without using it for anything is pretty suspicious

empty flint
#

Can you guys help me understand something in Kotlin?

When calling init in an abstract class, it's bad practise to call abstract methods. How do I circumvent this?

hot hull
#

Why would it be a bad practice to call abstract methods

empty flint
#

because they are non-final and could be implemented by a class that has not yet been initialized. So if the overriding method relies on resources that are not yet initialized, it can result in NPEs

static zealot
#

What would be the best way to make console commands in an application?

Currently I have a while true loop in which I just read the next line until I have a line and I Just compare it to the commands I have for example help or stop and do the stuff they are supposed to do.

old wyvern
#

Thats pretty much it

#

while loop + command router

static zealot
#

oh alr.

#

ty

hot hull
#

Kek

empty flint
#

beat some sense into them

#

what you're looking for is a hitman, not a dev

static zealot
#

Anyone got a gradle task to copy the jar in another directory on build? I want to delete the old one if there is one and put the new one in.

#

even better question. how to switch a project from gradle groovy to kts

#

would it be just as easy to just make a file called build.gradle.kts and use that instead?

forest pecan
#

you can also use gradle to convert iirc

empty flint
# static zealot Anyone got a gradle task to copy the jar in another directory on build? I want t...

I got this going for me:

task("deployToServers") {
    val serversDir = project.findProperty("serversDir")?.toString()
    if(serversDir == null) {
      println("Unable to deploy. Missing property 'serversDir'.")
    }

    val bukkitServers = project.findProperty("bukkitServers")?.toString()?.split(",")?.toTypedArray() ?: emptyArray()
    val bungeeProxies = project.findProperty("bungeeProxies")?.toString()?.split(",")?.toTypedArray() ?: emptyArray()

    listOf(*bukkitServers, *bungeeProxies).forEach{ server ->
      copy {
        from( shadowJar.get().archiveFile.get() )
        into("$serversDir\\$server\\plugins")
        rename { "${shadowJar.get().archiveBaseName.get()}.jar" }
        doFirst { println("Deploying to '$serversDir\\$server\\plugins'.") }
      }
    }
  }

It's a bit complex because I'm passing my spigot server folders as command line arguments when doing the build. But you can make this sort of task depend on the gradle build task or the shadow jar task or whatever

#

what you'd probably be interested in is

      copy {
        from( shadowJar.get().archiveFile.get() )
        into("$serversDir\\$server\\plugins")
        rename { "${shadowJar.get().archiveBaseName.get()}.jar" }
        doFirst { println("Deploying to '$serversDir\\$server\\plugins'.") }
      }
static zealot
onyx loom
#

i just added .kts to the file name and converted it all manually

static zealot
#

oh. so it is that easy to do it manually?

#

thought I have to change some other shit as well

ocean quartz
#

I just use shadow's build jar stuff :kek:

distant sun
#
task copyTask(type: Copy) {
  from shadowJar
  into 'path/here'
}```
ocean quartz
#
withType<ShadowJar> {
    destinationDirectory.set(File("Path to server plugins folder"))
}

:kek:

onyx loom
#

is there any difference between find() and firstOrNull in kotlin? ๐Ÿฅด

static zealot
#

still want the one in the build/libs.

ocean quartz
#

Ah, sad

remote goblet
#

firstOrNull makes you look like you know what you're doing with kotlin more

distant sun
#
@kotlin.internal.InlineOnly
public inline fun <T> Array<out T>.find(predicate: (T) -> Boolean): T? {
    return firstOrNull(predicate)
}```
onyx loom
#

thanks ori

#

oh lol gaby

distant sun
#

๐Ÿคฃ

remote goblet
#

yeah its just an alias

prisma wave
#

find = firstOrNull ๐Ÿ˜Œ

ocean quartz
#

Ayy my IJ bug report was fixed

obtuse gale
#

"A new Minecraft snapshot is out: 21w38a"

#

Sprinting is no longer reduced to walking when gently brushing your sleeve against a wall
pikapray

ocean quartz
#

Thank god

#

I think dinnerbone is on a streak fixing annoying tiny issues

onyx loom
obtuse gale
ocean quartz
#

Multiline FIXME didn't behave like TODO
For example:

/**
* TODO: Hello
*  there
 */
// The there is includeded in the todo, when i format the code, it'll stay the same
/**
* FIXME: Hello
*  there
 */
// The there is includeded in the fix me, however if i format the code it'll break and turn into:
/**
* FIXME: Hello
* there
 */
// Which no longer is part of the FIXME
obtuse gale
#

A new setting has been added: โ€œSimulation distanceโ€
what

ocean quartz
#

That looks a bit confusing

obtuse gale
#

Maximum amount of background threads increased
doing.. doing what?

ocean quartz
#

Things

obtuse gale
onyx loom
#

mojang on the bitcoin mining trend ๐Ÿฅฒ

obtuse gale
#

So basically it's a graphics only setting

ocean quartz
ocean quartz
onyx loom
#

lets add it in 1.18

ocean quartz
#

Intellij I like your type inference display, but please

slender onyx
#

Why is Tuinity read only

#

I mean archived

ocean quartz
#

It was merged into Paper

#

I have unintentionally made a fat button

wind patio
#

am I the only one that noticed this

obtuse gale
#

lmao matt

distant sun
#

isn't FIXME the same thing as TODO?

obtuse gale
#

It's too invasive and. like. BITCH, I KNOW WHAT TYPE I'M DEALING WITH

ocean quartz
ocean quartz
#

Oops ping

obtuse gale
#

Even for lambdas I can just guess tbh from the method name (forEach, map/apply, accept, applyIf etc) and what the actual lambda does

ocean quartz
#

Yeah i can guess too but i like how it looks xD

obtuse gale
#

I guess I want to see actual code rather than something cluttering my screen

#

inb4 I'm that weirdo using compact mode because of that

frigid badge
#

okay

steel heart
#

weirdo emily

ocean quartz
#

Ikr :ugh:

obtuse gale
#

Listen

#

I'm just built different

#

Okay?

#

what the fuck have i created

steel heart
#

strem

#

OwO

prisma wave
#

inheritance was a mistake!!

#

meanwhile fmap :: (a -> b) -> f a -> f b

#

Simple and elegant

obtuse gale
#

no, fuck you

#

metaphorically speaking

prisma wave
#

no

obtuse gale
#

no to what?

#

the uh...

prisma wave
#

everything

ocean quartz
#

Literally speaking too

obtuse gale
old wyvern
old wyvern
old wyvern
prisma wave
#

No

onyx loom
#

understandable

obtuse gale
#

what the fuck is a SpinedBuffer

#

oh

pallid yacht
#

Pls place holderAPI for money?

obtuse gale
#

what?

old wyvern
half harness
#

๐Ÿฅฒ

old wyvern
#

Conclure is working on a maven plugin if they want to try that

#

You already dont "need" to use the gradle plugin, that just makes it easier

#

Alessio uses it without the gradle plugin

#

@half harness

sweet cipher
#

How does IntelliJ know to add

name:
main:
version:

to plugin.yml?

urban sleet
#

Minecraft Development extension?

sweet cipher
#

I don't have that

urban sleet
#

Oh, weird

sweet cipher
#

It says add schema validation or something

#

nvm

#

that's not it

#

schema validation: Missing required properties (lists properties)

old wyvern
sweet cipher
#
plugins {
    id 'java'
    id 'com.github.johnrengelman.shadow' version '6.1.0'
}
#

It's always done this

old wyvern
#

You dont have a plugin.yml file in your resources folder right?

sweet cipher
#

I just added it

#

And when it's empty it says that

old wyvern
#

Is your project on github?

sweet cipher
#

It happens for all my projects

#

Even when they aren't

old wyvern
#

weird

sweet cipher
#

Maybe I have some plugin without knowing it

old wyvern
#

Yea probably

obtuse gale
#

Cannot change dependencies of dependency configuration ':common:implementation' after it has been included in dependency resolution
what does this even mean

#

figured it out

#

turns out the "include in jar" part of shadowjar is fucking easy

#

now relocation tho aPES_Laugh i'll leave that for future emmy

sick belfry
#

why tf my plugin size is 7.8mb?

#

I barely have something

onyx loom
#

what are u shading

sick belfry
#

idk

forest pecan
#

Donโ€™t tell me you shaded the server api

#

Lol

sick belfry
#

I dont even know how to do it

forest pecan
#

you probably did

onyx loom
#

yea send ur pom.xml/build.gradle

forest pecan
#

grsfle

onyx loom
#

shut

forest pecan
#

Lol

onyx loom
#

typing on mobile is hard

forest pecan
#

Iโ€™m on mobile too

onyx loom
#

๐Ÿ™„

forest pecan
#

๐Ÿงˆ

sick belfry
onyx loom
#

what is the default scope in maven

#

maybe it's shading protocol lib? cus I think that's pretty big

#

set that to provided too

sick belfry
forest pecan
#

The user is supposed to install protocollib separately

#

You shouldnโ€™t ever shade it

sick belfry
#

it is shading it

forest pecan
#

Make sure to specify it as a dependency too in plugin.yml

forest pecan
#

They are two entirely different things

#

One is dragging the extra jar into the plugins folder

sick belfry
#

sorry dont know a lot abt shading

forest pecan
#

The other is like copying the classes over into your jar

#

But protocolib is a case where you shouldnโ€™t shade

#

But instead install it manually (and drop the JAR)

onyx loom
#

so what's the size difference now

sick belfry
#

let me build

#

9.03kb Nice

onyx loom
sick belfry
#

thx a lot guys

onyx loom
#

np
in short: shade a dependency if its not provided at runtime
if it is provided, mark it as provided

sick belfry
#

got it

#

ty

obtuse gale
#

Thief

onyx loom
#

๐Ÿฅด

calm marlin
#

Alright. How would I display a EntityEffect to a single player? Using player.playEffect(EntityEffect.SOME_EFFECT) displays it to all players so I'm guessing I need to use packets.

onyx loom
#

I stole it from u lol

obtuse gale
#

I stole it from Frank lmao

calm marlin
sick belfry
calm marlin
#

should I move me question to that channel?

half harness
#

probably yea

obtuse gale
#

Hi Frank

obtuse gale
#

his name is so cool

urban sleet
#

I'd argue mine is cooler

obtuse gale
#

What's your name?

urban sleet
#

I'm Lucian

obtuse gale
#

Frank van der Heijden, that's so fucking cool

urban sleet
#

That is pretty cool, nevermind

sick belfry
#

xd

sweet cipher
#

I think mine is the coolest

obtuse gale
#

Doubt

forest pecan
#

I think mine is the collest

#

i cant spell

urban sleet
#

I didn't know it was a competition

wheat spire
#

mine is coolest

sick belfry
#

no

#

Mine is coolest

#

I see that you agree

#

nice then

obtuse gale
#

I just found out gradle kotlin dependencyhandler does this

operator fun String.invoke(dependencyNotation: Any): Dependency? =
    dependencies.add(this, dependencyNotation)

so you can do e.g. "implementation"(project(":core"))

#

comes in really handy for custom configurations tho

ocean quartz
#

Kinda cursed though

obtuse gale
#

lol yeah

gusty glen
#

oops ping

obtuse gale
#

idk, is it?

#

no idea

obtuse gale
#

Heheheheheehe

wind patio
#

Best ide out there

#

Multi language support

hot hull
#

lol

old wyvern
#

lol

prisma wave
#

lol

quiet depot
#

@obtuse gale what's something that's outdated?

#

can u give a specific example?

distant sun
#

spigot is

obtuse gale
#

Can you recommend a plugin for user login? I would like one similar to jpremium.

old wyvern
#

Try the minecraft launcher

#

I hear its pretty good

lean kiln
hot hull
wind patio
#

There's AuthMe, not sure if that's what you're looking for

old wyvern
#

Absolute bs!

hot hull
#

you stuped

old wyvern
#

its right there tho!!! ๐Ÿ˜ข

distant sun
#

smali?

obtuse gale
wind patio
quiet depot
#

ah

#

I think I didn't setup the updater for 1.17.1 because I assumed it wouldn't change

obtuse gale
#

Mm

ocean quartz
#

Understandable assumption

quiet depot
#

ok

#

1.17.1 & paper 1.17.1 should auto update now

obtuse gale
#

sweet

#

thanks piggy

remote goblet
rotund egret
remote goblet
old wyvern
obtuse gale
steel heart
#

Does a version or MockBukkit but with paper instead exist?

obtuse gale
#

mockpaper

#

outdated

#

sad

#

oo electronicboy

steel heart
#

Oo

#

Stil

#

I love

#

You

#

And electronicboy no ping

eager fern
#

@wind patio your post in #showcase needs its link removed

wind patio
#

Oh, are links not allowed?

ocean quartz
#

Also why do you have 2 spigots and 1 paper api in your dependencies? xD

wind patio
#

I suppose that may count as advertisement, my apologies

wind patio
#

Always in a rush due to constant lack of time due to studies lol

obtuse gale
#

oh my god, Paper added API for TriState permission checks ๐Ÿ™ ๐Ÿ™ ๐Ÿ™

static zealot
#

ok.

onyx loom
#

ok.

static zealot
#

not ok anymore.

static zealot
#

like dual state but with tri state. ya know

old wyvern
#

Dofensmertz evil inc.?

#

๐Ÿฅด

obtuse gale
#

lol

#

tristate permissions, true/false/not-set

static zealot
static zealot
obtuse gale
#

๐Ÿคจ

ocean quartz
old wyvern
#

Ah

prisma wave
#

Maybe ๐Ÿ˜Œ

potent nest
#

Maybe Boolean

old wyvern
#

Maybe [Int]

#

Maybe [IO Int]

wind patio
#

possibe?

prisma wave
#

...

#

bro dont even try

sweet cipher
#

What is crypto?

#

Darn it

obtuse gale
#

oh man

#

what did i miss

sweet cipher
#

They were advertising a crypto discord server with the chance to win 25k!
They did not want people to miss out on the opportunity!

#
<groupId>net.citizensnpcs</groupId>
<artifactId>citizens-main</artifactId>
```would become
```groovy
    compileOnly 'net.citizensnpcs:citizens-main:VERSION'
```right?
obtuse gale
#

yessir

sweet cipher
#

Thanks

#

That means I'm doing something else wrong lol

#

Welp invalidating caches worked lol

obtuse gale
#

usually you don't need to invalidate caches

#

with gradle you can just do this

sweet cipher
#

Oh

#

I definitely knew that was a thing

obtuse gale
#

or ./gradlew build --refresh-dependencies if you're one of the cool kids

sweet cipher
#

I guess I am not one of the cool kids then

wind patio
#

2 stars ๐Ÿฅฒ

obtuse gale
#

hm?

half harness
wind patio
#

famous

#

๐Ÿ˜Ž

half harness
#

i got 2 stars too

#

๐ŸŽ‰

wind patio
#

lessgo

half harness
#

๐Ÿ˜Ž

#

we famous

wind patio
#

I'd give you a star but it's written in kotlin

#

๐Ÿ’€

half harness
#

;-;

#

kotlin good

#

change my mind :)

wind patio
#

easy

#

kotlin bad

#

spigot good

#

paper bad

half harness
#

๐Ÿ‘€

wind patio
half harness
#

well you see-

#

i meant

#

bedwars sucks

#

:)

wind patio
#

yeaaaa.. sure

half harness
#

mhm

#

you have no proof that i meant otherwise ๐Ÿ˜ค

#

:D

wind patio
half harness
#

FAKE

#

FKAE

#

kFA
Ek

#

FAKE

wind patio
#

nah

#

you're fake news

half harness
#

show link

#

:D

wind patio
#

bugged

half harness
#

๐Ÿคจ

wind patio
#

can't send links in discord

half harness
#

๐Ÿค”

wind patio
#

new update

half harness
#

_ _

#

ah you're right

#

interesting

#

_ _

#

_ _

wind patio
#

[redacted]
here you go, if you insist

half harness
#

๐Ÿ‘€

#

๐Ÿ˜ถ

wind patio
#

on discord update side of things

#

thoughts on the youtube integration

half harness
#

yt integration?

wind patio
#

yea

half harness
#

whats that ๐Ÿ‘€

wind patio
#

haven't seen it?

half harness
#

nope

wind patio
half harness
#

๐Ÿ‘€

wind patio
#

I'd drop the link, but it doesn't work

obtuse gale
wind patio
half harness
obtuse gale
#

that is the reason why they killed music bots

#

for a stupid partnership

sweet cipher
#

You may also see ads during Youtube videos

wind patio
#

basically w2g.tv or twoseven.xyz

half harness
wind patio
#

yeah, the reason they killed the bots is that they don't get any revenue from it

#

time to get that cash from ads

urban sleet
#

You also can't watch age-restricted videos iirc inside the integration

wind patio
#

cool

#

nfsw voice channels when

obtuse gale
#

ugh, caffeine fist

#

turns out cache entries aren't removed when they expire, they are "marked as expired"

#

it's smart

#

i hate it