#dev-general

1 messages · Page 552 of 1

hot hull
#

Tokens?

mild rose
#

Ah whoops wrong channel

hot hull
#

Oh bungeeguard

mild rose
steel heart
distant sun
#

do add a bungee server I need to restart the whole network, right?

static zealot
#

nah. just the bungee

distant sun
#

....

static zealot
#

welp that still kicks everyone

#

soo xD yeah

#

thought you meant like restart every single sub server

distant sun
#

no lol

#

but that's annoying

static zealot
#

👍

forest pecan
#

Never heard of that one

#

That doesn’t have many of the methods tho for Stream

prisma wave
#
public Future<ResultSet> query(String query, CheckedConsumer<PreparedStatement> initializer) {
        return Future.of(() -> Try.withResources(dataSource::getConnection)
                .of(con -> con.prepareStatement(query))
                .andThenTry(initializer)
                .mapTry(PreparedStatement::executeQuery)
                .get());
    }
``` this might be the coolest library ever
#

that's a full sql wrapper with no try/catches needed in 5 lines

potent nest
#

what about closing the resources? Seems like you need to handle that on your own

prisma wave
#

Try.withResources seems to do that for me

#

and closing a connection also closes any resultsets iirc

#

although i might be wrong

#

we'll see once i get it working

potent nest
#

ah yeah might work, depending on how the future deals with it

timber oak
#

What are the advantages with git bash?

prisma wave
#

what

#

as opposed to what...?

timber oak
#

Well cmd lol

prisma wave
#

oh

#

well

#

it's bash

#

it's about as close as you can get to a linux shell without installing WSL

timber oak
#

hmm

#

Wait buildtools doesn't also build craftbukkit after 1.13?

#

It only builds spigot jar

hot hull
#

Why in the actual fuck would you want craftbukkit

sly sonnet
timber oak
#

NMS?

sly sonnet
#

import spigot not spigot-api

static zealot
#

from maven local

timber oak
#

How can I specify a build.gradle file?

#

If there's multiple

hot hull
#

Why would you have multiple build.gradle files :what:

steel heart
#

you can use the apply if you wanna import a.gradle into b.gradle

lunar cypress
#

build.gradle is one name

#

you can't have two build.gradle files in one directory

#

so you need to clarify

timber oak
#

To build the jar

lunar cypress
#

I'm more confused now

obtuse gale
#

wat

forest pecan
#

what

timber oak
#

nvm

tranquil crane
#

has nobody ever heard of a multi module build before or something

#

though I'm not sure if that's even what he was talking about

forest pecan
#

Lmfao

tranquil crane
#

I can be hopeful at least

steel heart
forest pecan
#

I use spider

half harness
prisma wave
#

🤢

#

Come on

half harness
#

lol

steel heart
#

you code yaml

#

pro dev

prisma wave
#

Oh no

#

I need to setup Emacs with wakatime

#

Then I can get everything that isn't java on the graph

half harness
#

🤣

steel heart
#

hopefully we'll see Oak on the graph

prisma wave
#

🤨

#

Java -1?

atomic swan
#

hello

#

someone know really god processors for dedicated server?

old wyvern
#

How about poseidon 3500XR

prisma wave
#

🥲

half harness
#

🥲

static zealot
#

that post is made for you dkim xD

half harness
#

-_-

half harness
#

thonking interesting

obtuse gale
#

yes

tranquil crane
#

u b u n t u

static zealot
#

u t n u b u ?

steel heart
#

Am I the only one who forks repos just to save them in case the original repo might get yeeted lol

timber oak
#

Can someone give me a like really quick explanation of the different dependency types? Like compileOnly and implementation etc.

steel heart
#

myes

#

compileOnly means you only have it on your compile classpath

#

thus you also imply that the dependency is already provided at runtime

#

for instance placeholderapi

#

its fully loaded when a server runs

#

you never load it

timber oak
steel heart
#

so you only need it at compile time

#

no

#

uh

#

im terrible at explaining this

#

tried 3 times before lol

timber oak
#

Nono you're doing good, I think lol

steel heart
#

IMPLEMENTATION -----
but anyways

#

for instance mf gui

#

its a library not a plugin

timber oak
#

ye

steel heart
#

it doesnt get loaded automatically or well, not by anyone else (kinda)

#

and that means we should have implementation for it

#

because it will most likely be us who provide it at runtime

#

if you use shadowJar, it will get shaded (as well as added into your jar when building one)

timber oak
#

wait so you're talking about implementation now?

steel heart
#

yes

timber oak
#

Alright

steel heart
#

I edited

timber oak
#

yup

#

hmm okay

#

I can see how they work, but not what difference it makes

#

Like when the server runs

#

What the difference then is

steel heart
#

then we have runtimeOnly, compileOnlyApi, api and some others which you in theory dont have to concern about for now

#

they dont make any difference in ide

#

because they're both added to the compile classpath

#

its how and who's providing them which makes the difference

#

or maybe not how

#

but yeah

timber oak
prisma wave
#

Not necessarily

steel heart
#

yes BM take it from here

prisma wave
#

if you compileOnly some external library you'll get a ClassNotFoundException

steel heart
#

I suck at explaining this officially

prisma wave
#

like, I can't just pull the classes for that library out of nowhere

timber oak
prisma wave
#

what?

#

That doesn't happen at runtime does it?

timber oak
#

No idea lol

prisma wave
#

well no it doesn't

#

If you have some jar then the only stuff in that jar is gonna be the stuff in the jar

#

Gradle is a build time tool, it changes nothing about your program at runtime

timber oak
#

runtime being when the server is running right?

lunar cypress
#

Dependencies are needed in two different places. When you use some.library.Class in your code, first the compiler needs to know this class in order to validate that you're using it correctly. That's a compile time dependency.

In 99% of situations, when you use a class in your source code it is also needed when the program is executed. That would be a runtime dependency. Now, runtime dependencies are loaded dynamically through the classpath system, meaning you don't have to put literally every class you use in your jar. For example, the standard library is always in the classpath. Or if you're working in the Spigot environment, the Spigot server and API are also already in the classpath.

You use compileOnly for dependencies that are already in the classpath at runtime, implementation for dependencies that are not

prisma wave
#

Or more generally, whenever any program is running

#

Not necessarily a server and / or plugin

obtuse gale
#

Then there's runtimeOnly.. we don't talk about that one here lol

timber oak
#

So how do I know which are in the classpath at runtime? lol

lunar cypress
#

well, you need to know what your environment will be

#

And what you expect to be there

#

If you're writing a plain java application, nothing except the standard library should be expected to be present

prisma wave
#

it's pretty much common sense

timber oak
#

So really only spigot?

#

When creating a spigot plugin

prisma wave
#

for a plugin yeah

#

And also other plugins sometimes

#

kinda

#

I'm not sure if they're literally on the classpath or spigot makes it work somehow

timber oak
#

Hmm alright

#

I'm asking this because I'm trying to migrate an old project from maven to gradle

#

But I can't get the dependencies to work

#

Not even the Spigot one

prisma wave
#

well that's a whole other issue

timber oak
#

I need to set up the environment right?

#

Somehow

prisma wave
#

"it doesn't work" isn't really enough information for us to be able to diagnose the issue and suggest a solution

timber oak
#

Tried invalidating caches but that's really all

prisma wave
#

Is the project registered as a gradle project?

timber oak
#

No, I need to change that

#

But not sure how

#

Well I got this menu

#

So maybe it is?

prisma wave
#

So yeah it is

#

Send your buildscript

#

But also hit that circle arrow icon

timber oak
#
C:\Users\Valdemar\IdeaProjects\fncore>gradle build_vald
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all dependencies for configuration ':compileClasspath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'MVdW Public Repositories(http://repo.mvdw-software.be/content/groups/public/)' to redirect to a secure protocol (like
 HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more det
ails.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

timber oak
timber oak
prisma wave
#

probably

#

that error kinda says the issue though

obtuse gale
#

http 🥴

prisma wave
#

^

#

http bad

timber oak
prisma wave
#

well yes

#

it also tells you how to fix it

timber oak
#

Not sure what to switch it to?

#

I don't think the plugin has a gradle repository lol

prisma wave
#

just change http to https

#

there's no such thing as a gradle repository

#

it uses maven formats

timber oak
#

Ohhhh

#

Oh wow, fixed that but got 7 new errors, nice

steel heart
#

why does java not have the walrus operator

obtuse gale
#

the what now

old wyvern
#

:=

prisma wave
#

golang operator

#

😌

old wyvern
#

😌

steel heart
#

im genuinely confused how java missed to add it

old wyvern
#

What would java do with it?

prisma wave
#

why would it need it

#

^

steel heart
#

why not

old wyvern
#

why not what?

steel heart
#

less lines = better code

#

as we all know

old wyvern
#

Not neccessarily

prisma wave
#

im confused

#

what do you think it would replace?

old wyvern
#

This has nothing to do with less line anyway

steel heart
steel heart
#

yeah the less lines was a joke but I mean why would you have it then?

old wyvern
#

I wouldnt particularly care if they added it

lunar cypress
#

what

#

why

steel heart
#

oh right

lunar cypress
#

why would you add it

#

the assignment operator exists already

old wyvern
#

exactly

steel heart
#

okay if its unnecessary why does a language like py have it

old wyvern
#

1-2 languages having it does not make it useful everywhere

lunar cypress
#

well what does it do in python

steel heart
#

true

lunar cypress
#

other than assignment

old wyvern
#

First make them add currying in java

#

then we'll talk

steel heart
#

basically assignment within expressions

old wyvern
#

wdym?

steel heart
#

x= 1
print(x)
is equivalent to
print(x:=1)
sorta

old wyvern
#

You already have that

steel heart
#

ye in python

old wyvern
#

no

#

in java

lunar cypress
#

in java too

steel heart
#

:=

old wyvern
#
int a;
System.out.println(a=5);
lunar cypress
#

also that's a terrible feature imo and you shouldn't add it even if it didn't exist

steel heart
#

yes but that would declare the variable above

prisma wave
#

so you want System.out.println(int a := 5)?

old wyvern
#

Whats the point of that

steel heart
#

uh I guess that would be the equivalent

#

idk

prisma wave
#

that's evil

steel heart
#

lol

old wyvern
#

Like how would you even scope it

lunar cypress
#

wow what a great feature

old wyvern
#

😌

lunar cypress
#

no one would ever use it

steel heart
#

okay but why does some languages have it?

prisma wave
#

how about something like ```hs
let a = 5 in print a

steel heart
#

like python lol

#

idk if python is good for reference but just curious

old wyvern
#

Some languages having something

lunar cypress
#

Java's assignments are already expressions...

old wyvern
#

doesnt make it useful everywhere

#

^

steel heart
#

yeah right, is it useful in python, maybe asking this to bm since he kinda likes py

old wyvern
#

"Oh js has some cursed coersions! Why doesnt java have that!"

prisma wave
#

it's a nice bit of syntax sugar but it's not game-changing

old wyvern
#

🥲

prisma wave
#

it's more useful in python because of truthiness and falsiness

#

with like ``py

#

lol

lunar cypress
#

again it's useless, it doesn't add anything and makes code more confusing honestly

old wyvern
#

lol

prisma wave
#
if some_var := some_function():
  print(some_var.blah())
#

there's no real equivalent to that in java

#

but yes

#

as johnny said

steel heart
timber oak
prisma wave
timber oak
prisma wave
#

that's...

steel heart
#

not same

prisma wave
#

a different url

old wyvern
#

lol

timber oak
#

Wait what, on the plugins spigot site it said to use that url....

#

Bruh

steel heart
#

lmao

prisma wave
#

seems unlikely

old wyvern
#

Classic mvedwe guy

steel heart
#

did he die btw? Ik there was some rumors about that

timber oak
old wyvern
#

What?

#

I remember seeing him in here a while ago

steel heart
#

oh nvm then

timber oak
#

I aint lying lol

prisma wave
old wyvern
#

or atleast a pr in one of papi's repos

#

somewhere

#

in the last month

steel heart
#

ah that answers it lol sorry if im being a bit rude now

timber oak
old wyvern
#

nah nah

timber oak
prisma wave
#

are you sure about that

timber oak
#

But with .com it works

prisma wave
#

yes

timber oak
#

Yup, the one you sent is working

steel heart
#

but uh yeah Valdemar there's a lot of outdated plugin wikis and shit on spigot

timber oak
#

Just not the http one that was on the plugin site

timber oak
prisma wave
#

mvdw bad

old wyvern
#

If it doesnt suppourt ssl you're just get a warning on the top left, not some error page

#

in the certificates toolbar

steel heart
old wyvern
#

He stopped updating that

#

Switched all his plugins to papi

#

I think, atleast

steel heart
#

sounds like a solid move

#

papi has monopoly anyways

old wyvern
#

hapi!

steel heart
#

🥲

old wyvern
steel heart
#

haskell api?

old wyvern
#

uh

#

yes

#

that

steel heart
#

lol

prisma wave
#

hpapi

old wyvern
#

hlaceholders hay pee aye

prisma wave
steel heart
prisma wave
#

hoogle 😌

old wyvern
#

Ya'll wanna work at google?

#

fuck that

#

we work at hoogle

prisma wave
#

hoogle > google

steel heart
#

lol true

old wyvern
#

!!

sly sonnet
#

heypapi

old wyvern
#

Someone is clearly too rich

prisma wave
#

lmao

#

that's like $5000/hour

old wyvern
#

lmao

obtuse gale
#

LOL that guy has to be joking

steel heart
#

kek ye

half harness
#

just saying in case ur not joking :)))

#

lol

flint cipher
#

oof

steel heart
#

you're awesome

mild rose
#

Heyo. Is there a way if the whole bungee network goes down, I can have a separate server as a fallback server if the whole network goes down?

steel heart
#

Wait wym?

#

Like a back up proxy?

mild rose
#

Like a backup server

#

Pretty much

#

Like if I need to restart the proxy, there would be a server players can get sent to that will be unaffected by the proxy restart.

jovial warren
#

no

#

the players are connected to the proxy, and so would need to reconnect to a different proxy

#

also, Velocity on top :p

steel heart
jovial warren
#

thinking about Velocity, I actually spent a bit of time the other day extending Steinborn's super fast var int writing method to 10-bit var longs lol

#

say goodbye to your ability to sleep at night

obtuse gale
#

implying i had any left lulw

steel heart
#

James!!!!

surreal quarry
#

this is what i come back to

#

lmao

steel heart
jovial warren
#

kek

obtuse gale
#

that's a lot of tier 6 in a single chat

#

wowza

jovial warren
#

I'm trying to start on world generation rn in Krypton lol

half harness
#

hi

#

some more tier 6

surreal quarry
#

werent you doing world generation like months ago

jovial warren
#

all these octaves and amplitudes and scales and randoms and lowest frequency value & input factors are making me go crazy lol

#

luckily, I have vanilla as a reference

jovial warren
steel heart
#

James I await an update for terrible plugin!

jovial warren
#

(it was a joke request btw, I was just bored)

surreal quarry
#

i would love some new contributions

#

i even set up a jenkins job for it lmao

steel heart
#

Oh nice effort

jovial warren
steel heart
#

Holy cow

jovial warren
#

if you could still sleep at night before that, you definitely can't now

half harness
#

I understand 1% of that code

half harness
#

wait kt has a and keyword?!

jovial warren
#

yes, it's the same as &

half harness
#

and or?

steel heart
#

It got all the good stuff

jovial warren
#

well, not a keyword, it's an infix function

half harness
#

😮

#

oh

#

D:

jovial warren
#

it used to be a keyword before infix functions existed

half harness
#

wait wat

jovial warren
#

back in the early days, before I started using it lol

steel heart
#

What’s an infix function, educate me bbg!

half harness
#

function without the . and ()

steel heart
#

Oh

jovial warren
#

it's a function that can be written in infix notation

#

a.k.a between two things

surreal quarry
#

its a function that is infix

half harness
#

welp

#

or that

#

:))

steel heart
#

Hmm right no arguments then?

half harness
#

no u have to put arguments

#

i think

surreal quarry
#

one argument

steel heart
#

Oh I’m dumb

jovial warren
#

so ```kotlin
infix fun Int.plus(other: Int) = this + other

// Without infix
1.plus(2)
// With infix
1 plus 2

surreal quarry
#

yea that

steel heart
#

Ah

#

What’s the benefits?

jovial warren
#

just looks a bit cleaner in some cases

surreal quarry
#

it runs 25% faster because there are no . or ()

steel heart
obtuse gale
#

looks very groovy-ish to me :MonikaPeek:

jovial warren
#

so you don't end up with ```
(((3.and(7).or(5)).shl(7).shr(42)).xor(Int.MAX_VALUE))

surreal quarry
#

i think that looks nice

steel heart
#

Ah lol yeah good point

#

I would like this in Java frankly lol

jovial warren
#

Kotlin is literally the Yatopia of programming languages, but if Yatopia was actually good

half harness
#

wdym?

jovial warren
#

they steal most of their stuff from other languages, improve on the syntax, and put it all in one place

half harness
#

oh

jovial warren
#

for example, extension functions are from C#

half harness
#

wait whaT

#

c# has erxtension functions?

jovial warren
#

yes

half harness
#

😮

jovial warren
#

I believe there are some Rust-inspired things in Kotlin as well

lunar cypress
#

like what

jovial warren
#
public string append(this string val, int arg1) {
    return val + arg1;
}
```not the greatest example, but iirc that's the syntax
obtuse gale
#

string 🥴

jovial warren
lunar cypress
#

I can't really think of anything

obtuse gale
#

well just think

#

Think Johnny, think!

lunar cypress
#

head empty

prisma wave
jovial warren
#

Scala just has weird syntax overall imo

prisma wave
#

Didn't kotlin come before rust?

jovial warren
#

actually, probably

prisma wave
#

Rust didn't seem to get relevant until a few years ago

jovial warren
#

neither did Kotlin

#

well, actually, it was like 2017 when they had stable release iirc

prisma wave
#

kotlin 1.0 released sometime in 2015 iirc?

onyx loom
#

2015 sounds about right

jovial warren
#

yeah sounds about right actually

prisma wave
#

Possibly 2014

jovial warren
#

2017 was when Google announced first-class support in Android, which is when it blew up

steel heart
#

Weird question

#

But

#

🥲

#

Is this the smiling with tear?

prisma wave
#

what

steel heart
#

The emoji

prisma wave
#

y...yes...?

steel heart
#

Ok thank you life savior honorable functional programmer

prisma wave
#

😌

obtuse gale
#

lol

lunar cypress
#

Rust has a bit of a history actually

#

but it changed quite dramatically in its early years

prisma wave
#

rust has always existed, just as an idea. Like america, it was always a holy land, just out of reach from most

#

the rustacean dream

steel heart
lunar cypress
#

Rust is a higher power. It is the higher power

jovial warren
#

also, I can see we have another Spigot plugin "developer" who can't code to save his fucking life, what a surprise

obtuse gale
#

lmao

steel heart
#

Jxyy

#

He went on rampage after he found out the terrible truth his plugin was badly coded sorta

forest pecan
#

lol

jovial warren
#

is he just talking out of his ass then?

#

also, I learnt something new today

#

I learnt that java.util.Random uses a linear congruental algorithm for pseudorandom number generation

steel heart
#

Is that same for ThreadLocalRandom?

#

And the other one

#

Uh SplittableRandom

jovial warren
#

ThreadLocalRandom is just a java.util.Random that's local to a specific thread, so yes, and splittable random, maybe, probably a faster version though if it does

steel heart
prisma wave
#

weeb

steel heart
#

You’re the weeb mitten

#

Remember?

prisma wave
#

proof?

steel heart
#

Yes

prisma wave
#

No

steel heart
#

Uh wait

prisma wave
#

I don't remember anything

steel heart
#

I have a screenshot

jovial warren
#

yes

prisma wave
jovial warren
#

what you gonna do? hack his PC and delete it? lol

eternal compass
prisma wave
#

how could I delete something that doesn't exist?

onyx loom
jovial warren
prisma wave
#

Most readable java code

eternal compass
#

I knew this would happen!

prisma wave
#

No you don't

eternal compass
#

I do not have a screenshot.

prisma wave
#

Correct

steel heart
#

Proof

eternal compass
#

Lmao

prisma wave
#

😳

eternal compass
#

Caught in 4k

prisma wave
#

Damn they've got the edgy font and everything

steel heart
#

Yes the quality is bad but that’s the best one I could find

#

Lmao

brazen narwhal
#

wow you guys all talk here this server is like at the bottom of my server list

eternal compass
#

@prisma wave you're not gonna like this

steel heart
#

Sadge

#

Should move it up

eternal compass
#

I wasn't kidding

#

lmfao

prisma wave
forest pecan
#

nerd

prisma wave
#

The tag is different

eternal compass
#

@BM Explain Yourself

prisma wave
#

It's not the same brister mitten

eternal compass
#

nitro happened smh

prisma wave
#

I'm not sure what you're talking about

eternal compass
#

its from May

#

you boosted the server since then

#

BM#0001

prisma wave
#

nope

#

no sir

eternal compass
#

lies

steel heart
#

LOL OH yeaaaaaaaaaa Weeeeb mitten

eternal compass
#

a fake and a fraud

prisma wave
#

Come back when you've got actual proof ☺️

eternal compass
#

wait wait I can prove its from a long time ago

#

since thats the old profile design

#

before banners

#

and stuff

prisma wave
#

But that user could be anyone

#

There's no proof it's me

#

😶‍🌫️

#

\😶‍🌫️

#

😮‍💨

eternal compass
#

lies

#

its you

#

you know it

prisma wave
#

🦿

eternal compass
#

admit it, you're a weeb at heart

prisma wave
#

👨‍🏫

eternal compass
#

I'm the only sane one left ;-;

prisma wave
#

👩‍🎨

eternal compass
#

you draw anime?

#

;p

half harness
#

🤣

prisma wave
#

🎩

#

🐯

#

🪐

#

🍒

#

🍥

#

🍥

#

🤸

onyx loom
#

please stop spamming.

prisma wave
#

I wasn't

eternal compass
#

oh weeb mitten was spamming

#

normal bm wasn't

onyx loom
#

oh ok 😁

eternal compass
#

I get it

prisma wave
#

If u aren't careful I will go back to the java bad kotlin good phase

half harness
#

Don't be careful plz

eternal compass
#

uh oh

half harness
#

:))

eternal compass
#

everyone shut up

half harness
#

noo

#

kotlin good

prisma wave
half harness
#

😈

steel heart
#

Monad Mitten 😌

eternal compass
#

dkim is cringe

#

@sirsquare can we have xp boost kthx

steel heart
#

It’s cringe to say cringe

eternal compass
#

awe right as he goes offline

half harness
eternal compass
#

sirsquare

prisma wave
obtuse gale
#

I have some

eternal compass
#

@prisma wave heres a ss of you as a weeb

#

🪞

prisma wave
#

No you don't

#

Leave me alone

eternal compass
steel heart
prisma wave
#

Oh my

steel heart
#

This is your future waifu

#

Congrats

eternal compass
#

lol

steel heart
#

No lol

prisma wave
#

Lmao bitch phone has got some nerve

steel heart
#

Lmao

#

Hit that sleep (:

onyx loom
#

go to bed

prisma wave
#

fine

#

only for you babe

#

Bye

steel heart
#

haskell will be in your dreams (:

eternal compass
#

@prisma wave have nightmares java

steel heart
eternal compass
steel heart
#

TS and Kotlin good

#

JS can go to hell

eternal compass
#

surrounded by bad

#

:p

steel heart
#

Oh I see

#

Traitor

eternal compass
#

hey I like typescript

#

js is awful

steel heart
#

Indeed

#

Altho JS can be nice for short stuff

#

And when you aren’t doing something particularly large that is

eternal compass
steel heart
#

Then we got python

#

The best language of all times

prisma wave
#
   private void levelUp(User user) {
        user.setLevel(user.getLevel() + 1);
        Option.of(xpConfig.get().levelUpSound())
                .peek(levelUpSound ->
                        user.getPlayer()
                                .peek(player ->
                                        player.playSound(player.getLocation(), levelUpSound, 1f, 1f)));
    }

vavr is my favourite library ever

#

literally looking like desugared haskell over here

jovial warren
prisma wave
#

vavr came first 🙂

#

probably

jovial warren
#

before Java or before Kotlin?

#

or before arrow?

prisma wave
#

before arrow

#

and before kotlin too

prisma wave
#

it's hot isn't it

cinder flare
#

im still really sad about my bar

steel heart
#

lol ye

prisma wave
#

😌

#

is there a way of turning this into normal files

#

self-hosted gitlab files btw

distant sun
#

Question, is possible to show a "virtual" entity to a player and make it have gravity then despawn it after a few seconds? Like, to simulate a mob that was spawned from a spawner that is placed in air (and obvious it is affected by gravity)

old wyvern
#

packets?

distant sun
#

Yes, im just asking if it would be possible

#

I just need it for an animation

old wyvern
#

Yea should be

obtuse gale
#

Hello

old wyvern
#

Hi

obtuse gale
#

i need help

compact perchBOT
#

There is no time to wait! Ask your question @obtuse gale!

obtuse gale
#

I need an phone number to verify my account

#

Please

old wyvern
#

Try 999

obtuse gale
#

No not like that

pallid gale
#

A discord account?

prisma wave
#

69420

obtuse gale
#

Noo

#

on an discord server

pallid gale
#

Use your own phone?

quiet depot
#

search "mock phone number <insert country>"

#

fool proof

old wyvern
#

@obtuse gale
No need to dm me

#

Ask what you want in any channel

obtuse gale
#

Ok

#

I want..

#

A phone number just to verify

#

my account on another discord server

pallid gale
#

Use your own phone?

old wyvern
#

Wait. For. Your. Parents.

obtuse gale
obtuse gale
old wyvern
#

Then dont bother

quiet depot
#

ask your grandpappy

obtuse gale
cinder flare
old wyvern
#

Probably very young

obtuse gale
obtuse gale
#

Bye

#

then]

#

😦

pallid gale
#

Yeah not sure we can assist with getting around a ban :/

ocean quartz
#

That was a fun interaction lol

static zealot
#

Stupid ass. Why did you not provide link? Now you're stuck with the same problem. Dumbass

crimson tusk
#

yo like a file called access.txt or something appeared on my desktop, it had like a login a website and a password or something, i deleted the file in the recycle bin

prisma wave
#

ok

cinder flare
#

good for you 🙂

crimson tusk
#

e

prisma wave
#

f?

steel heart
#

hilarious pfp btw lol

crimson tusk
#

thanks lol

static zealot
#

@cinder flare u around?
I've seen you work on the essentials expansion to add the baltop feature. Do you have a build or anything for it?

static zealot
#

the code on your github as well?

#

so I can see the placeholders

#

nope its not. ty tho.

cinder flare
#

no just a little local boi

#

guess I could make a branch on the essentials expansion page

static zealot
#

yeah u could. but its fine. I just want to test something that's all. welp when I get a bit of time

cinder flare
#

ty lol

#

i made cube test it a little

#

gave it to one guy

static zealot
#

you could also put it in #placeholder-api btw when you want. and just ping me to pin. like lleave a message saying it will only work with 2.19 builds and its a test build as well.

cinder flare
#

oh yeah I mean bet

static zealot
#

alright. pinned. can u maybe move the placeholder list to the same message?

#

so when they read pinned it actually explain what it is?

cinder flare
#

oh I was just showing you that

static zealot
#

ohh xD

#

lmao

#

alr ty

#

welp will leave it pinned anyways

cinder flare
#

you can do a big consolidated announcement if you want lol

#

cleanup my formatting and all

static zealot
#

to lazy and busy for that. xD

#

will do later tho

steel heart
#

@old wyvern separate version for the maven plugin?

old wyvern
#

yea

#

Im thinking of separating the repos

#

some people seem to be confused by the different versioning

steel heart
#

oh well I will make this as a subproject for now

#

but new versioning

old wyvern
#

👍 👍

steel heart
#

does slimjar have a discord

old wyvern
#

Not yet

#

👀

ocean quartz
#

Yes, it's HelpChat ;p

steel heart
#

lol fair

old wyvern
#

😌

static zealot
#

Matt u making IJ plugins by any chance? XD

steel heart
#

matt monopoly!

ocean quartz
#

I did work on one once, why?

old wyvern
#

mf-ij

static zealot
#

when you crate a new project

#

and this is how a conversation between me and HELLSHOWERS aka Terfs aka Adam aka LagClear goes.

old wyvern
#

Intellij already has that blitz

static zealot
#

oh?

old wyvern
#

yep

static zealot
#

name please?

old wyvern
#

Its built-in

static zealot
#

cry

static zealot
old wyvern
#

one sec, lemme open up ij so I can find exact where it was

#

Its somewhere in the right click menu in the heirarchy

ocean quartz
#

Yeah pretty sure IJ does it

static zealot
#

ty ty ty

old wyvern
#

right click a directory -> new -> .ignore file -> git ignore

#

Then select the idea template, java template and gradle template

static zealot
#

k. ty. will try a bit later. ty ty ty

old wyvern
static zealot
#

ugh

#

right click a directory? what directory? bcz I can't find .ignore file

#

anywhere under New

#

oh

#

you need the .ignore plugin lmao

prisma wave
#

@quiet depot hi pig guice expert, how do you like to handle registering listeners with guice? like, no other class depends on them, but they still need to be instantiated. i was thinking about binding them all as eager singletons, unless you have a better idea?

old wyvern
static zealot
#

nope it does not

#

at least not for me

old wyvern
#

Are you on community edition?

static zealot
#

oh yeah

old wyvern
#

Yea that might be why

#

Im pretty sure it comes with ultimate atleast

#

Because it was always there for me

#

never manually installed it

prisma wave
#

nah

#

im not using classpath stuff for this

half harness
#

[Service] Discord Bot Developer
[Request] Virtual stocks creator (stock market game to convert to money in minecraft)
[Description] Thats all!
what's the point of a description if he's not going to put any description thonking

surreal quarry
#

you figure out everything about how it works on your own and just make it happen

#

thats not the clients job idiot /s

stuck harbor
#

that hit

steel heart
#

what happened to efefury btw

#

guy's a goner

#

?

forest pecan
#

Underage

steel heart
#

oh uetf

forest pecan
#

Yea

steel heart
#

whats the age limit btw

#

always forgetting that one

onyx loom
#

16 in germany

forest pecan
#

For Germany it’s like 16

onyx loom
#

he was only 15

forest pecan
#

Yeah

steel heart
#

oh

#

feels like half of discords user base are underage then

onyx loom
#

🥲

#

its only a handful of countries that have difference age laws tho, like most of the world will use 13 as the minimum age

steel heart
#

ah

forest pecan
#

^

#

You see

#

If I was in Germany

steel heart
#

then u'd be banned?

forest pecan
#

Yes

#

But I’m not

steel heart
#

you're 15?

forest pecan
#

I’m AMERIXAN

steel heart
#

lol

old wyvern
#

Visit efe and join the banned gang

forest pecan
#

Nop

old wyvern
#

trumph-flag

steel heart
#

lmao

#

@serene cave

#

you there!!?

static zealot
#

guess not

#

btw who's alt is that again? I Forgot

steel heart
#

blitz you owe me one!

static zealot
steel heart
#

add to deluxemenus or ban

static zealot
#

why do I owe u one?

steel heart
#

why not?

ornate edge
#

I really suck at this stuff, can someone help me change my server from 1.17 to 1.13?

obtuse gale
#

wh- why would you do that

prisma wave
#

oh my god

#

someone that isn't us posted a kotlin meme

#

it's actually pretty funny as well

surreal quarry
#

lmfao

distant sun
#

lmao

static zealot
#

Wait what. 118 members?

#

Lmao. Reddit requires you to type in passeord to be able to disconnect

#

From their mobile app

#

Password*

onyx loom
static zealot
#

Ic the community js growing and improving xD

prisma wave
#

who are these people

onyx loom
#

who knows

#

just some more kotlin fanboys i suppose 😌

quiet depot
#

no point making them singletons as the instance will never be accessed again via guice, by you

prisma wave
#

ah so yeah classpath scanning

#

I'm not sure I can be bothered to set that up just for a single thing

#

eager singleton seems to work

fallow remnant
#

So minecraft sends the map-image via a byte[], with the size of 128*128, right

#

Does anyone know how i convert color to a byte / get the closest matching byte for a given Color

forest pecan
#

You have to use dithering algorithms

#

there are many types of algorithms out there, like floyd steinberg dithering, filter lite

#

choose one, apply it to the pixels of an image

#

etc

#

i have some examples

fallow remnant
#

yeah i get that there are limited colors, and dither would add "fake" color depth
but my problem starts sooner

forest pecan
#

What about it

fallow remnant
#

i have trouble converting even those colors that can be displayed in a single pixel

forest pecan
#

wdym?

#

coudl you elaborate

fallow remnant
#

I have a R, a G, and a B value

forest pecan
#

Yes

fallow remnant
#

and i somehow need to create a value between 0 and 255 from that, right?

forest pecan
#

Uhh

#

what does that mean

#

you talking about combining it to an integer?

#

all rgb colors

#

what "value" are you creating here

fallow remnant
#

The texture, in the PacketPlayOutMap

#

is being sent as a byte array

forest pecan
#

Yea?

fallow remnant
#

every pixel, is a byte

forest pecan
#

Mhm

fallow remnant
#

i have the R G B value for every pixel

fallow remnant
#

Thanks ill take i a look at it

forest pecan
#

np

timber oak
#

When does a paste get deleted?

#

Helpchat paste ofc

obtuse gale
#

I don't think they do

timber oak
#

Ehhh seems a bit weird

obtuse gale
#

¯_(ツ)_/¯

#

the very first message of a helpch.at paste on this server still exists

forest pecan
#

mmmmm

#

Sneaky

obtuse gale
#

Anyone good with system administration? I’m kind of killing myself over it.

obtuse gale
lavish notch
obtuse gale
lavish notch
#

Why not just install the OS directly on the old computer?

obtuse gale
#

@lavish notch So, I ran the command ssh -p 2200 alexersion@localhost.

#

That works, yet when someone replaces the localhost with my IP, it doesn't.

lavish notch
#

Did you portforward?

half harness
#

btw ubuntu isn't required for a server thonking
It's usually used because it has better performance than windows iirc, but if you're using a VM, the vm will probably slow it down anyways

Also the VM might be the one messing up port forwarding
¯_(ツ)_/¯

#

at least i think thats why its used

#

¯_(ツ)_/¯

obtuse gale
obtuse gale
lavish notch
obtuse gale
#

Haven't tried.

lavish notch
#

Assuming what you're saying is ssh doesn't work when using your external IP, then port forward 2200.

obtuse gale
#

@lavish notch New error.

#

ssh: connect to host [ip] port 2200: Connection refused

lavish notch
#

*What OS is the old computer

obtuse gale
lavish notch
#

What version of MacOS?

obtuse gale
#

Catalina 10.15.7.

#

@lavish notch.

lavish notch
cinder flare
#

Took me like 3 days to get something working out of it

obtuse gale
#

lol

#

Got it finally working.

#

My stupid problem was that I did 127.0.0.0 instead of 0.0.0.0 lmao.

#

This is why I should not be in charge of system administration.

forest pecan
#

This is so funny lmfao

steel heart
#

Lol

static zealot
#

material ui is gone?

#

oh that's a review

#

lmao

#

I can see very well guys. I Definitely don't have focus and visual problems

prisma wave
#

package private is kinda underrated

potent nest
#

hide those implementations!

prisma wave
#

yeah

obtuse gale
#

package private = poor man's jigsaw

prisma wave
#

like

#

you can have mutable pojos but hide the mutator methods and then provide public manager types that wrap them

#

it's sick

cinder flare
#

bm... likes oop?

prisma wave
#

well im not gonna be making functional plugins

#

sadly

cinder flare
#

😦

prisma wave
#

but sure oop is fine as long as you don't go crazy

cinder flare
#

clojure plugins?!

prisma wave
#

🤢

#

i think i've actually come to the conclusion that i prefer java over kotlin

#

with modern versions and a few libraries java is really nice

cinder flare
#

until you have to code a plugin for a 1.7 server

prisma wave
#

i'd rather die

obtuse gale
#

mood

prisma wave
#

idk theres something about java where it heavily encourages you to write clean code

#

whereas with kotlin i still try but it doesnt feel quite as organised and well structured

obtuse gale
#

This is one of the things I keep saying why I don't like Kotlin, Java is very constraining in syntax (and overall ways you can do something) whereas Kotlin is really open about it to the point I don't know if what I'm doing is right or wrong

prisma wave
#

yeah I agree - the tools kotlin gives might be more productive on paper but they also introduce a lot more complexity and are easier to abuse

#

extension functions for example are nice until you try and make them work with dependency injection

cinder flare
#

maybe I'm not using the right libraries but Kotlin's syntax feels so much cleaner and more expressive than I've ever seen from Java

#

especially related to like functional stuff

prisma wave
#

sure the syntax is nicer in a lot of places

#

but i don't think it "scales" as well, there's something about the language that means it usually develops into a mess with larger codebases

cinder flare
#

I mean you can still follow the Java-style for your code in most cases

prisma wave
#

yeah you can, but it doesn't feel quite the same

#

i really can't put it into words

obtuse gale
#

You wouldn't code in Kotlin to write java, would you

prisma wave
#

^

cinder flare
#

Maybe you just have stockholm-syndrome for the heavy chains of Java

prisma wave
#

maybe lol

#

there's just something about kotlin that doesn't feel as nice with larger codebases

#

i think it's because of the temptation to use the syntax sugar-y stuff everywhere

cinder flare
potent nest
#

It's way easier to write messy code with Kotlin imo

prisma wave
#

yeah

cinder flare
#

Well of course

#

That's part of freedom

#

Java is one of the most restrictive languages in existence

#

And it produced enterprise code that we all groan at

prisma wave
#

constraints create freedom

#

freedom creates constraints

potent nest
#

for me, Kotlin is more like for prototyping, quick implementations of simple things etc

cinder flare
#

Are you a GPL supporter now as well BM?

prisma wave
#

no

cinder flare
#

That's the same argument