#dev-general

1 messages Β· Page 376 of 1

obtuse gale
#

I even tried Clicking it tho

half harness
#

what?

surreal quarry
#

if they hit no, it starts again. if they hit yes, it starts again.

half harness
#

uh

#

no

forest pecan
#

if they hit no, jumpscare them. if they hit yes, jumpscare them

half harness
#

._.

#

._._._._._.

#

ill just close program if they hit 'no'

#

or ill just put like "Close" button

#

and stop the rest of the code

#

idk

forest pecan
#

Dkim's size: .l.
Everyone else:
l
.l.

surreal quarry
#

if they hit no,

while (!false) {
    new ChromeTab().openNow();
}```
forest pecan
#

Everyone Else: :-----------

#

Dkim's: :-

surreal quarry
#

Haha funny guy made penis joke

forest pecan
#

8====D

#

after circumsizing

#

8====l

lunar cypress
#

what is this

#

6th grade recess

obtuse gale
lunar cypress
#

ah, same thing

obtuse gale
#

Classic

half harness
#

how do I use Future<>?

surreal quarry
#

#complete

#

no matter what

half harness
#

no how do i make one

forest pecan
#

good question

surreal quarry
#

hey google

lunar cypress
#

context?

ocean quartz
half harness
#

.

#

Future is an interface

#

soooo

surreal quarry
#

CompletableFuture

#

implement

#

Future

half harness
#

thx

forest pecan
#

why do you use Future tho lol

obtuse gale
#

most of the time you'll use an ExecutorService for it or create one with a CompletableFuture

forest pecan
#

use CompletableFuture

half harness
#

ok

#

this is first itme

#

making future

#
    public static Future<Boolean> method() {
        return new CompletableFuture<>();
    }
```like this?
forest pecan
#

no

obtuse gale
#

Uh...... what

forest pecan
#

why are you returning Future

jovial warren
#

oh btw, Fefo, one last problem

forest pecan
#

lmfao

jovial warren
#

when I actually press tab, it puts the argument right next to the command

half harness
obtuse gale
#

Do you still start at 0?

jovial warren
#

no clue

#

I use the builder it provides me now

obtuse gale
#

Ah

jovial warren
#

okay, well adding 1 to the start sent in the packet seems to work

#

buf.writeVarInt(matches.range.start + 1) ez hax

obtuse gale
#

Oh god okay lol

steel heart
prisma wave
#

Async<T>

#

let main = async {
do! printfn "Hello"
}

#

does not compile

#

return ()

surreal quarry
#

F

prisma wave
#

I do not understand this

#

It's kinda clever though

#

Similar to coroutines but you can make it work with your own type

#

clever

surreal quarry
#

some of the coroutine stuff works with generics i believe

half harness
#

swing is so ugly

forest pecan
#

you havnet even customised any settings

#

lmfao

#

search up stuff like colors, getting rid of borders

half harness
#

im not used to all this

#

im used to making it with a gui

#

making a gui with a gui

onyx loom
#

MCServerCreator ERROR

obtuse gale
#

Γ—

prisma wave
#

ERRORRRRR

half harness
#

better?

forest pecan
#

nope

surreal quarry
#

hideous

forest pecan
#

^

hot hull
#

Why don't you handle the error instead

half harness
#

this is my way of handling the error

forest pecan
#

its like a reinstalling thing

#

installation failed? retry

#

like how discord updates

hot hull
#

Giving the user 0 info on what went wrong? good job

surreal quarry
#

users are stupid

#

just force retry :)

half harness
forest pecan
#

i wasnt talking to you

#

i was talking to frosty

half harness
#

oh

#
    public static boolean prompt(final String error) {
        final JFrame window = new JFrame("MCServerCreator ERROR");
        // create ui
        final int result = JOptionPane.showConfirmDialog(window, "An error has occurred: \n" +
                        error + ".\n" +
                        "Do you want to retry?", "MCServerCreator ERROR",
                JOptionPane.YES_NO_OPTION);
        return result == JOptionPane.YES_OPTION;
    }
#

i might change it later
to give more info

ocean quartz
half harness
forest pecan
#

wait seriously? i didnt know that

#

lol

#

tbf, it makes sense tho

#

swing was back in the old days

onyx loom
#

back in the old days

forest pecan
#

Yeah that's the reason why lol

#

JavaFX didn't exist in the 2000s

ocean quartz
#

Yeah IJ is pure swing

onyx loom
#

it actually amazes me that IJ is so old still - 2001

forest pecan
#

also you shouldnt use the built in swing components if you want to make them pretty. You should extend certain components and customise them as so

onyx loom
#

IJ rewrite using tornadofx + kotlin when

prisma wave
#

They should rewrite in rust

#

To improve performance

surreal quarry
#

yesterℒ️day

onyx loom
#

😌

half harness
#

how can i have 2 buttons on top of each other?

#

on javafx

surreal quarry
#

why would you want that

#

how would you click one

half harness
#

so that i have a next and cancel button

prisma wave
#

Fact: rust can run as fast as C but with 0% chance of memory leaks or unsafe memory access

stuck harbor
#

they should rewrite rust in rust to improve performance

forest pecan
#

did you give up swing dkim

#

lmao

half harness
prisma wave
#

No they should rewrite rust in C

half harness
stuck harbor
#

and y'all know how much torvalds loves C

half harness
#

why do people have blank usernames...

jade kraken
#

how come part of my file is not syntax highlighted, and also some other files arent syntax highlighted? (in eclipse)

prisma wave
#

torvalds eats babies tho

stuck harbor
forest pecan
stuck harbor
jade kraken
#

bruh

half harness
#

its just eclipse being eclipse

jade kraken
#

great

prisma wave
#

"The new Linux kernel version will bring a number of imp- sniff is that a baby? I've got to go"

  • Linus Torvalds, 2014 interview
half harness
stuck harbor
#

hehe

surreal quarry
#

wow that looks true

#

i believe it

stuck harbor
#

"Fuck you nvidi... oh that sounds like a baby"

prisma wave
#

almost as evil as James gosling

jade kraken
#

"we will make america gre- brb there is beby"

prisma wave
#

πŸ˜–

stuck harbor
#

mhm sounds like torvalds alright

half harness
#

had to use StackPane

prisma wave
#

classic torvalds

prisma wave
half harness
stuck harbor
#

torvalds is a famous right wing populist

#

not an immigrant or whatever

#

naah

prisma wave
#

Ben Shapiro

jade kraken
#

why is eclipse like this

stuck harbor
#

cause its eclipse

onyx loom
#

OUTDATED software

stuck harbor
#

man i would rather use xcode

surreal quarry
#

ben shapiro = linus torvalds = joseph biden = donald trump = james gosling

obtuse gale
#

Microsoft Windows Notepad

jade kraken
#

word

stuck harbor
#

google docs

#

on light theme

obtuse gale
#

Why are you using eclipse haha

jade kraken
#

i prefer coding on paper

obtuse gale
#

Use intellij

surreal quarry
#

i code in my mind

hot hull
#

That's pfp and name is sad

surreal quarry
#

and then telepathically send it to my computer

hot hull
#

You got nothing better to do?

stuck harbor
#

i use punchcards, which i write in java bytecode

jade kraken
#

ok fine ill use intelij

prisma wave
#

thanks

stuck harbor
#

merci

obtuse gale
#

:) intellij*

jade kraken
#

i will give 0 dollars to whoever can guess which one is the L, Il

hot hull
#

You 12?

#

@ocean quartz Have you tested it yet?

jovial warren
#

lol

stuck harbor
#

first one is obv the I

half harness
#

i will give 0 dollars to whoever can guess which one is the L, Il

stuck harbor
#

if u can't tell that then u blinde

#

actually dkim

#

no need

half harness
#

lol

jovial warren
#

what did I miss lol

stuck harbor
#

the I is slightly smaller than the l

#

and thiccer

#

just slightly

#

but with eyes like mine

#

its noticable

forest pecan
#

Il

stuck harbor
#

i have great eyes ofc

#

totally

half harness
#

intellij is suddenly giving a billion "unused" errors thonking

#

even though the variables are clearly being used in the next line

obtuse gale
#

ok

jovial warren
#

omfg no way

#

guess what

#

JProfiler gave me a key for profiling Krypton

half harness
#

while(true) or while (true)?

jovial warren
#

latter

half harness
#

hm

#

ok

surreal quarry
#

while ( !false)

obtuse gale
#

while( ! false ){

jovial warren
half harness
#

uses high-end technology to remove blue blob

obtuse gale
#

Email address πŸ‘€

stuck harbor
#

coool

#

thanks

jovial warren
#

and yes, I manually painfully scribbled over that in Snipping Tool because ShareX automatically uploads to imgur lol

jovial warren
stuck harbor
#

time to add u to some buzzfeed mailing lists

half harness
obtuse gale
#

Ah okay

jovial warren
half harness
#

lol

#

what do u usually use?

#

or did u just not know that

#

._.

stuck harbor
#

snipping tool

jovial warren
#

ez

half harness
#

uses unblur tool

jovial warren
#

may or may not have uploaded the image with the key in it and had to swiftly remove that xD

half harness
#

in discord?

stuck harbor
#

lel

#

admins to logs please

half harness
#

staff looks in logs

stuck harbor
#

ill bribe you 0 ha'pennies

jovial warren
#

on imgur

#

it auto uploaded lol

half harness
#

how come?

jovial warren
#

maybe you're meant to edit before you make the selection

half harness
#

🀦

#

tip: press right click if u want to cancel

jovial warren
#

yeah ik

#

but once you select and let go, it's done

half harness
#

lol

hot hull
#

@remote goblet Stop saying dumb shit, thanks

errant geyser
remote goblet
half harness
#

aaaaa im going to have like 20+ variables lol

heady birch
#

Oh my

#

I just noticed a typo in a config file

jovial warren
#

lol

#

lol

heady birch
#

Java Base Data Connectivity

jovial warren
obtuse gale
#

Bata Dase

onyx loom
#

MongoBaseData

jovial warren
#

looks like Spring

#

application.yml?

heady birch
#

yeah lol

jovial warren
#

boom

#

lol

hot hull
jovial warren
#

there's something oddly satisfying about those two GIFs being exactly in sync with each other

surreal quarry
#

has much changed since then?

jovial warren
#

omfg

#

List<String> Lore

#

die

half harness
#

lol

surreal quarry
#

typealias Lore = List<String>

#

Lore lore =

onyx loom
#

first thing i see

#

...

half harness
#

dark reader makes add look so bright

#

along with the strings

#

lol

onyx loom
#

oh shit dark reader removes the line numbers on the side 😭

half harness
#

wait really?

#

lol

jovial warren
#
val rev1 = ItemStack(Material.ROTTEN_FLESH)
val revLore = listOf(
    "${ChatColor.DARK_GRAY}Revenant Horror I",
    " ",
    "${ChatColor.GRAY}Health: ${ChatColor.RED}5",
    "${ChatColor.GRAY}Damage: ${ChatColor.RED}15 ${ChatColor.GRAY}per second!"
)
```etc.
#

I cbfa to type out all those lines lol

#

listOf is probably one of the most useful Kotlin functions in Kotlin, I swear

onyx loom
#

ChatColor 😭

onyx loom
#

o

#

adventure?

jovial warren
#

yeah lol

onyx loom
#

still need to use that api

jovial warren
#

Component.text("Hello World!")

#

what the actual fuck

#

show me the arrow code

#

please

#

you know that's still a thing

obtuse gale
#

The fact you can register your own translations with adventure, that alone just makes it x1000 better

jovial warren
#

wait why is that unused

#

what the fuck

obtuse gale
#

Yeah

jovial warren
#

oh yeah, Adventure supports translation management doesn't it

obtuse gale
#

Love it

jovial warren
#

I still wanna add localisation support to Krypton at some point

onyx loom
obtuse gale
#

Component.text("ass", NamedTextColor.GRAY)

#

πŸ‘€

ocean quartz
#

@hot hull Apparently there is a remove method for nbt compound, though the lib doesn't have that, I can add it though

jovial warren
#

or what Fefo said

#

wait so how does Adventure's translation work?

onyx loom
#

what about &aHello World tho

obtuse gale
onyx loom
#

i havent checked the docs :kekw:

obtuse gale
#

There's a LegacyComponentSerializer for that

#

That transforms it into a Component

jovial warren
#

LegacyComponentSerializer.legacyAmpersand().deserialize("&aHello World!")

onyx loom
#

lol

obtuse gale
#

Which for obvious reasons is not suggested lol

ocean quartz
jovial warren
#

nah m8

onyx loom
#

msg?

ocean quartz
#

Yeah

jovial warren
#

Adventure > mf msg

#

facts

onyx loom
#

ok 😍

ocean quartz
jovial warren
#

I think they have different purposes though

#

mf msg does Markdown doesn't it?

#

and Adventure does chat components

ocean quartz
#

Yes that returns an .. guess what .. adventure component lol

obtuse gale
#

mini message does markdown too lol

surreal quarry
#

mf-message-adventure

jovial warren
#

ah, yes

onyx loom
#

😭

remote goblet
onyx loom
#

there are still reasons that would make u switch

remote goblet
#

idk what other word to use

jovial warren
#

build tool

onyx loom
#

build tool

remote goblet
#

whatever

jovial warren
#

also, Gradle is better than Maven, that's just a fact of the universe

remote goblet
#

as much as I prefer gradle, its not required to switch

#

people should use what they want EmiCool

jovial warren
#

none of this "opinion" rubbish lol

remote goblet
#

Like yes gradle is better

#

but like

heady birch
#

if it aint broken

#

dont fix it

onyx loom
#

maven is broken πŸ₯²

jovial warren
#

^

#

also I now hate you Niall

onyx loom
#

everything can be improved, having the "if it aint broken dont fix it" mentality is just bad

heady birch
#

I like gradle I am just too dumb to use it πŸ™ƒ

remote goblet
#

I know but im just saying

jovial warren
#

"if it ain't broken, don't fix it" is literally the reason why developers can't be assed to fix bad code

#

and it pisses me off

remote goblet
#

Why switch to gradle when the person who made the plugin doesnt know it

jovial warren
#

is it just me or do developers have literally 0 design skills

onyx loom
ocean quartz
heady birch
#

Thymeleaf seed starter was once the driving force behind the global agriculture industry...

jovial warren
#

lol

remote goblet
#

no

obtuse gale
#

I just know it exists lol

remote goblet
#

My original point was that it doesn't need to be in gradle

#

not that there isnt any reason

ocean quartz
#

Mine top, mini bottom

remote goblet
#

he pulled that out of his ass

half harness
ocean quartz
#

Yeah became his resets on format change

obtuse gale
#

It's using legacy colors lmao

#

Why tf

ocean quartz
#

What is using legacy?

obtuse gale
#

Mini's rainbow gradients

#

Or are those not?

#

"legacy"

#

"Named text color" lol

ocean quartz
#

It isn't, it's just that since it resets it doesn't spread the colors far enough

onyx loom
jovial warren
#

NamedTextColor isn't legacy

#

it just has a legacy backing code

#

they are still RGB colours

obtuse gale
#

I know

remote goblet
#

of course

obtuse gale
#

I just instinctively say "legacy" when seeing that crap lol

ocean quartz
#

Understandable lmao

jovial warren
#

oh btw, Krypton 0.15 is pretty much ready

obtuse gale
#

Literally instinct

jovial warren
#

just gotta write the whole changelog

#

πŸ₯²

half harness
#
+ added some stuff
- removed some other stuff
ocean quartz
#

Nah

- Changed shit
surreal quarry
#

git commit -m 'changes'
git push --force

lunar cypress
jovial warren
#
- Overrode permission checks for the console to force them to always succeed, as we are god
  and permission checks are for peasants :)
```what a changelog entry
#

lol

surreal quarry
#

why 2017

onyx loom
#

is that luck?

surreal quarry
#

looks like it

obtuse gale
#

Yeah lol

half harness
#

best ui ever

onyx loom
#

lol

ocean quartz
#

Ayy luck is one of us

obtuse gale
#

He used to use Lombok tho πŸ₯²

#

Not anymore fingerguns

jovial warren
#

yeah luck is definitely one of us

surreal quarry
#

πŸ₯²

jovial warren
#

he's one of the nicest popular developers I've ever spoken to

half harness
ocean quartz
#

A mere mortal

#

Agree yeah
Most devs are bunch of dicks

half harness
jovial warren
#

and he said Krypton was cool πŸ₯°

ocean quartz
half harness
#

lemme see

#

i thought i was in their discord

ocean quartz
#

Don't btw lol

#

Was just an example

jovial warren
#

thinking about changelogs, I've just remembered one of the best changelogs I've ever seen lol

half harness
#

lol they have a role for offline server users

jovial warren
#

look at that last one kekw

lunar cypress
#

I wonder if that's real

#

I've seen it before

ocean quartz
#

Why? Lol

jovial warren
#

lol

#

@prisma wave @tranquil crane πŸ™‚

tranquil crane
#

!

jovial warren
#

lol

#

man, 16 stars now

old wyvern
#

humongous commits tho

jovial warren
#

oh actually, @old wyvern might be good if you review that too

onyx loom
#

1 commit, 30 files changed lmfao

old wyvern
#

Split the commits up πŸ₯²

onyx loom
#

never heard of that

jovial warren
#

yeah I try to

#

but it varies

onyx loom
#

clearly

old wyvern
#

How does a 1 commit 30 files changes vary xD

#

Split up small commits with reasons for change so its easier to review

jovial warren
#

I mean, it's only 368 additions and 54 deletions

#

that's not that bad for one commit

#

idc about how many files were changed lol

old wyvern
#

Its more of the places of change that ussually end up confusing

#

Especially for someone who doesnt know each and every corner of the project

#

So what a snippet is supposed to do is add a minor description that helps

jovial warren
#

you know this is just the "make it work" part of the project btw right?

#

the "make it work well" and "make it look good" parts are yet to come

old wyvern
#

That has to do with the project dude

jovial warren
#

next commit will be small I swear

old wyvern
#

Alright

jovial warren
#

I wanna add support for BungeeCord

#

and maybe Velocity too

#

and no, they don't just work out of the box

old wyvern
#

Also I think the project is at a stage where you properly plan out stuff than just go for "make it work" changes

#

Otherwise you'll end up needing to refactor too much

jovial warren
#

true

#

but I'm not a "if it's not broken, don't fix it" kinda guy

#

idm refactoring everything to make it better lol

old wyvern
#

When it gets large enough, you'll not want to refactor anymore

#

Lazyness

onyx loom
#

pastebin tho

#

ew

jovial warren
#

"Nbtentity is a class" well nah no shit sherlock, I thought it was a banana

#

xD

#

oh btw, Krypton 0.15 will be the start of the test server

old wyvern
#

πŸ‘

jovial warren
#

I need at least one approving review first though

#

and hopefully BM doesn't take all week

cinder flare
jovial warren
cinder flare
#

Awe yeee

jovial warren
#

I mean, it'll be buggy, but it might work

#

still gotta fix a bug with chunk loading

cinder flare
#

Bro I'm so down for like messed up chuck generation and stuff! It'll make the world more interesting πŸ™‚

compact perchBOT
#

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

jovial warren
#

and this is a pregen world, so ik it's not missing data

ocean quartz
#

@cinder flare New pfp ;o

cinder flare
#

We can roleplay that the world is collapsing beneath our feet

cinder flare
jovial warren
#

no serialisation iirc

ocean quartz
#

Yeah

jovial warren
#

right, lemme actually throw up the test server lol

#

using my local JAR rather than one from the CI

cinder flare
#

Maybe you'll actually get 20 TPS!

jovial warren
#

wdym maybe

#

you mean definitely

ocean quartz
#

21 or quit!

jovial warren
#

you won't know if it's 21 or not lol

cinder flare
jovial warren
#

you know me and Yugi fixed it earlier btw right?

cinder flare
#

Oh really? What was wrong

jovial warren
#

I just switched to a scheduler because the overhead of Thread.sleep was causing issues

#

there's about a 10ms overhead

half harness
#

how do i make a list of numbers 3-32 in java without a big for loop?

cinder flare
#

Well that's probably a good change regardless lol

half harness
#

i cba writing a for loop

#

i feel like theres a better way

#

maybe not

#

but im just asking here :p

ocean quartz
obtuse gale
#

The crash happened outside the Java Virtual Machine in native code.

😬

cinder flare
#

I mean you can just instantiate it yourself with squiggly brackets and list all the numbers you want

obtuse gale
#

brooo your pfp

half harness
obtuse gale
#

epic

ocean quartz
cinder flare
half harness
#

i dont want to rewrite my code

obtuse gale
#

do it

ocean quartz
#

Do it

half harness
#

no

cinder flare
#

Do it

#

You can have partial parts of your code be Kotlin and others still be Java

heady birch
half harness
#

IntStream.range(3, 32).boxed().collect(Collectors.toList()) ez

ocean quartz
#

Ew

obtuse gale
#

boxed

#

go fuck urself wtf

#

why would you

half harness
#

hey it works

cinder flare
#

That's uh... Kinda ugly

half harness
#

lol

#

still looks a bit ugly

#

i just noticed the MOTD is gray

jovial warren
#

you can come and see it in a minute if you want

cinder flare
#

You should've just used a web front-end lol

#

JavaFX big lame

#

You know, like LP

ocean quartz
#

Or electron

cinder flare
#

Ooh yeah even better! Electron apps look cute af

jovial warren
#

I might put LuckPerms and spark in here as well

onyx loom
ocean quartz
#

Or elixir like discord

onyx loom
#

kotlin ftw πŸ₯Ί

jovial warren
#

(3..32).toList() ez

#

or something like that

half harness
#

how do i change the background πŸ€”

cinder flare
#

23? More like 25 eh

#

What is that box for actually lol

half harness
#

oh i forgot to label it

#

easy = difficulty

#

survival = mode

#

23 = view distance

cinder flare
#

Ah okay I got the first two lol

half harness
#

iirc view distance is how much of the world the server loads around the player.. maybe bardy would know more lol

cinder flare
#

...

#

I know? Lol

half harness
half harness
#

yea

#

afk

cinder flare
#

I guessed that those two boxes meant that based on what was in them

#

And why are you explaining view distances lmao

obtuse gale
#

hey can someone help me instal plugins to my server

old wyvern
obtuse gale
#

nice status bro

cinder flare
old wyvern
#

😌

onyx loom
#

Player#getCritChance, u can easily in kotlin 😌

old wyvern
#

Except youll still have to provide the config as an argument 😌

onyx loom
#

😌

#

why so

forest pecan
#

kotlin isn't gay

cinder flare
#

Np

onyx loom
#

that is indeed me and starmism

#

too far.

#

im going to kill myself now.

lunar cypress
#

wtf i love kotlin now??

forest pecan
#

so you are saying you like verbosity

#

lol

old wyvern
#

Haskell good kotlin bad

cinder flare
#

I dunno, you made an entire class whose sole purpose is to instantiate an entity poorly then do nothing. You definitely need some functional programing in your life

obtuse gale
#

can someone help me

cinder flare
#

Mhmmmm

#

Oh that's good

ocean quartz
old wyvern
#

Rewrite in Haskell

#

Haskell = satisfaction

cinder flare
#

Sounds like a job for Kotlin

old wyvern
#

Bad excuse

#

its always a great time to learn haskell!

onyx loom
cinder flare
#

I hate you syntax

onyx loom
#

how dare one not like kotlin syntax 😩

cinder flare
#

If you don't like kotlin syntax, good luck with a lot of new languages lol. Swift looks nearly identical, so no apps for you

old wyvern
#

React Native!!

old wyvern
#

Flutter!!

onyx loom
#

elara/android

old wyvern
#

elara/multiplatform

#

write once, run it on a clock

cinder flare
#

The whole point of Kotlin is that you can slowly replace any jvm code with it to make your life better

old wyvern
#

No

onyx loom
#

not made no

cinder flare
#

No lol its made for jvm

onyx loom
#

not even

#

kotlin can target js and native too

old wyvern
#

Kotlin is a separate thing to Android

#

Google just decided to use it

cinder flare
#

Google just happened to switch from Java to kotlin because it was so much better

onyx loom
#

kotlin is the first choice language for android

cinder flare
#

It's not only for Android lol

old wyvern
#

Android is not even a JVM πŸ₯²

cinder flare
#

Seems like I do considering you won't consider using it in plugin development when it's so nice to use

errant geyser
forest pecan
#

why is coc k a blocked word
but dick isn't

#

lol

onyx loom
#

funnycube be like

forest pecan
#

lol

obtuse gale
#

lmao

jovial warren
#

oml he's not joking

forest pecan
#

you didn't know?

#

lol

jovial warren
#

yo guess what

#

load up Minecraft 1.16.5 right now

cinder flare
#

bet bet

jovial warren
#

you lot should come check this out

#

doit

onyx loom
#

coming!

jovial warren
#

actually, before you come, I'm gonna run this outside of Docker lol

#

so I can access the console

#

right, server's back

#

wait wtf

#

lol

forest pecan
#

Oh

#

uhhhhh

jovial warren
#

the server just died for no reason

forest pecan
#

That may have been me

#

🌚

jovial warren
#

what did you do

forest pecan
#

i did /stop

#

lol

jovial warren
#

no idea how you succeeded that

forest pecan
#

i forgot no permission system?

#

or is it there

jovial warren
#

I have LuckPerms on here

forest pecan
#

o

jovial warren
#

back up now btw

cinder flare
#

lmao he just did /stop

#

my hero

jovial warren
#

idk how that worked

forest pecan
#

im just

#

im just built different

jovial warren
#

lol

forest pecan
#

lol

jovial warren
#

Yugi

old wyvern
#

yea?

jovial warren
#

come on the server

old wyvern
#

on which server?

jovial warren
old wyvern
#

Whats up?

jovial warren
#

come check it out

old wyvern
#

ok

jovial warren
#

first time I've ran a public test server since like 0.10 lol

forest pecan
old wyvern
#

nice

#

Have you implemented survival mode?

jovial warren
#

yeah

#

well, not all that much, but it technically works

#

there's no damage or block drops or entities or items or pretty much anything that makes survival, well, survival yet, but ya know

#

early stages

cinder flare
forest pecan
#

Ya

#

lol

obtuse gale
#

😩

prisma wave
#

what the hell

obtuse gale
old wyvern
#

Wo..w...

ocean quartz
#

Where did you find that gem?

obtuse gale
#

lol

#

non-static nested classes

old wyvern
#

GeneratorCreator itself is one hell of a name

obtuse gale
#

they need to be instantiated that way in the enclosing class lmao

old wyvern
#

Why are they non-static tho

obtuse gale
#

because they do stuff with the members of the enclosing class

old wyvern
#

their usage looks like a bad attempt to use static nested ones

#

@ocean quartz got a lot of the basic stuff done, it should now be able to download and load dependencies given a url and a name

obtuse gale
#

like

public class Outer {
  private int member = 0;

  public class Inner {
    {
      Outer.this.member = 123;
    }
  }
}
#

if Inner was static that can't be done without passing an Outer instance to Inner

ocean quartz
old wyvern
obtuse gale
#

If it didn't refer to any members in the outer one yes sure

old wyvern
#

Yea it seems to construct and ignore that one tho right?

#

Or does one of the nested ones return the outer class?

obtuse gale
#

huh?

jovial warren
#

inner class

old wyvern
#

Like does Type have any public function to retrive GeneratorCreator

obtuse gale
#

You can do return GeneratorCreator.this; to "go back" to the outer one, yes

jovial warren
#

imagine having to declare an inner class as static manually ew

old wyvern
cinder flare
obtuse gale
jovial warren
#

that... doesn't violate that

#

yeah

cinder flare
#

wait really

#

you can nest public classes wtf

jovial warren
#

you... didn't... know that?

forest pecan
#

^

cinder flare
#

how would I know that

forest pecan
#

classes could always be nested

cinder flare
#

i've never created an inner class before

forest pecan
#

Map.Entry

#

lol

cinder flare
#

I did not question that lol

obtuse gale
forest pecan
#

oh

old wyvern
#

fefo

obtuse gale
forest pecan
#

two interfaces nested?

#

lol

jovial warren
#

yeah I haven't created an inner class before either lol

obtuse gale
#

And then you "jump" between stages as they build the json

forest pecan
#

can you nest enums lol

obtuse gale
#

probably

jovial warren
old wyvern
#

But then why is a new GeneratorCreator created there to create the Type tho?

obtuse gale
forest pecan
#

well its mainly cause of the oop rule thing of how a class does 1 job

cinder flare
#

oh yeah I guess I've put an enum inside of a class before and that is technically nesting classes

old wyvern
#

Shuldnt you be using your global instance?

forest pecan
#

prolly reason why nesting classes is not as common

#

i forgot what the oop pillar was about how each abstraction

#

should have only one job

old wyvern
#

Single Responsibility Principle

forest pecan
#

Yeah that

cinder flare
#

it's like the unix philosophy for java classes lol

forest pecan
#

nested classes prolly violate that kind of

obtuse gale
old wyvern
#

Depends on the context pulse

forest pecan
#

true

forest pecan
#

you can also define classes/enums in methods

#

its quite useful in fact

obtuse gale
#

and in the "final" stage it'd just return the creator, or maybe the json idk, I'll have to think about that

jovial warren
#

that enum also seems to inherit the access modifier from its super

forest pecan
#

weird java

cinder flare
#

I mean for instance, you could static abuse

#

or name your main file Main

obtuse gale
#

You know in ByteBuddy you can like ByteBuddy#declareMethod and the return type is not ByteBuddy, but an instance of an inner class

#

then when you are done with that inner one, it "returns" the outer ByteBuddy instance

jovial warren
#

I can't even remember the last time I used the public keyword lol

cinder flare
#

how? lmao

jovial warren
#

Kotlin's default modifier is public lol

cinder flare
#

i guess if you're only making plugins?

old wyvern
#

Fefo, what I meant is like does Type expose stage or generator creator?

cinder flare
#

oh I see i see

forest pecan
#

wdym, a lot of people does static abuse lol

#

and name their class Main

#

xD

#

but is it good? nah

obtuse gale
cinder flare
#

cause I was gonna say, 99% of the shitty projects I have to do for uni I'm slappin public static on every method cause I ain't instantiating anything

jovial warren
cinder flare
forest pecan
#

lol

jovial warren
#
public final class Main {

    public static void main(final String[] args) {
        System.out.println("Goodbye");
    }
}
cinder flare
old wyvern
forest pecan
#

nice

obtuse gale
#

what kind of Kraken did I unleash..

forest pecan
#

ur mom

jovial warren
jovial warren
forest pecan
#

it is good

jovial warren
#
#include <stdlib.h>
#include <stdio.h>

int main()
{
    printf("Hello World!");
}
forest pecan
#

although, i'm just not familier with the patterns they use to handle dry code

#

because its a completely whole new world out there

cinder flare
#

header management is kinda fun ngl

#

and its pretty funky how you can declare stuff anywhere. like I had to declare something outside of the class and my java brain wouldn't let me until hours of trying had failed me

forest pecan
#

the only thing you can't declare : methods in methods

#

Java!!!

#

although idk if thats any good

#

lol

cinder flare
#

nah cause everything in java is a class. and it ain't in C++ lol

forest pecan
#

lol

jovial warren
#
float Q_rsqrt(float number)
{
    long i;
    float x2, y;
    const float threehalfs = 1.5F;
    x2 = number * 0.5F;
    y = number;
    i = * (long *) &y;
    i = 0x5f3759df - (i >> 1);
    y = * (float *) &i;
    y = y * (threehalfs - (x2 * y * y));
    return y;
}
```πŸ₯²
cinder flare
#

0x5f3759df πŸ‘€

forest pecan
#

oh yea i forgot pointers exist

#

lol

obtuse gale
# old wyvern Ah, lemme rephrase Is there an exposed method to get the instance of `GeneratorC...

Well there eventually will be, like my plan is this

// GeneratorCreator has a global JsonObject, see https://minecraft.fandom.com/wiki/Custom_dimension#Dimension_syntax
GeneratorCreator creator = GeneratorCreator
    .creator()  // returns GeneratorCreator.Stage.Type
    .type(DimensionType.THE_NETHER)  // saves the dimension type in the GeneratorCreator json, returns GeneratorCreator.Stage.Generator;
    .flat()  // saves the generation type in GeneratorCreator json, returns GeneratorCreator.Flat
    // ... other methods to create a world generator settings
    .build();  // return GeneratorCreator.this;
forest pecan
#

ooo

cinder flare
#

dude pointers kinda slap. i wish java had a way to reference type anything

forest pecan
#

thats why your project was named that

forest pecan
jovial warren
#

i = * (long *) &y this line is such a neat hack

cinder flare
#

it does?

#

no way

forest pecan
#

no well

#

its like the basic java stuff you know

forest pecan
#

lol

obtuse gale
jovial warren
#

0

cinder flare
old wyvern
#

Pointer

prisma wave
#

sounds kinda impure

cinder flare
#
  • means two different things
jovial warren
#

oh btw, for the uninitiated, that line converts the memory address of the float y to the address of a long so we can perform bit shifting on an IEEE 754 floating point number lol

old wyvern
#

Multiplication and Pointer

forest pecan
#

multiply

cinder flare
#

no it means two different things in regards to pointers

obtuse gale
#

and dereference πŸ‘€

forest pecan
#

lol

old wyvern
jovial warren
#

a pointer is really simple yet its application is kinda complex to grasp

cinder flare
#

yeah it means dereference and type of

jovial warren
#

it's just, well, a pointer

#

it points to somewhere else in memory

cinder flare
#

and we're using both of those in that line alone

obtuse gale
#

Fun fact: a de-referenced function pointer is implicitly converted to a pointer to itself again, so you can do shit like this:

int func(int);

int main() {
  int (*func_ptr)(int) = func;
  (****************************************func_ptr)(5);

  return 0;
}
cinder flare
#

what in the jesus christ

obtuse gale
#

Because dereferencing the function pointer implicitly converts it to a pointer to itself again, it's a pointer again, which you can dereference, and again and again and again

#

and that is no different than this

int func(int);

int main() {
  int (*func_ptr)(int) = func;
  func_ptr(5);

  return 0;
}
#

lol

jovial warren
#
section .data
    message db "Hello World!", 12

section .text
global _start

_start:
    mov rax, 60
    mov rdi, 1
    mov rsi, message
    mov rdx, 12
    syscall
    mov rax, 1
    mov rdi, 0
    syscall
#

lol

obtuse gale
#

clion go brrrrrrr

cinder flare
jovial warren
jovial warren
#

assembly greatest language

cinder flare
#

is the (int) what it returns?

obtuse gale
#

it's an object that points to a function

#

the first int is the return type

#

the (*func_ptr) is the name of the variable and indicates it's a ptr

#

and the (int) is the parameter type

cinder flare
#

ah okay see that's what got me

prisma wave
#

c++ is a functional programming language

old wyvern
#

🀐

old wyvern
#

Lmao

#

From some dudes whatsapp status

onyx loom
#

lmao

ocean quartz
#

@old wyvern What should the gradle plugin module be called?

half harness
#

@lime ember just saw #showcase, some suggestions at first glance:
a) getbukkit is illegal -_-
b) don't commit .idea to github, iirc it's just preferences
c) either put an email or don't put "Email:" at all ._.
https://prnt.sc/10xn38b

Lightshot

Captured with Lightshot

cinder flare
#

why even list spigot as a prereq lol

half harness
#

idk

cinder flare
#

everyone knows you need a spigot derivative to download plugins

half harness
#

also put the stuff in files in src/main/resources

sweet cipher
#

What is getbukkit

#

Oh nvm

#

I see the link

old wyvern
#

Hmm, maybe just gradle-plugin

#

@ocean quartz

ocean quartz
#

Gotcha

lime ember
#

I forgot the email thing

half harness
#

lol

#

also use DI

#

not PlayerTracker.getPlugin()

lime ember
#

Why is getbukkit illegal?

half harness
#

paper isn't illegal because it downloads mc jar when the server starts

#

same with tuinity etc

#

but spigot u have to run buildtools

#

arrow code.. and line 31 is a bit.... 😬

lime ember
half harness
#

use UUID not Player, since the Player object can become "invalid"

sweet cipher
#

Also the spaces between brackets { { {.

lime ember
#

Ok
But when I want to get the name of the player from the Uuid... How can I get it?

half harness
#

there are also other spots where u can improve arrow code and stuff, but i wont bother too much since u said it was ur first plugin

ruby craterBOT
#
@Nullable
public static Player getPlayer(@NotNull UUID id)```
Description:

Gets the player with the given UUID.

Returns:

a player object if one was found, null otherwise

Parameters:

id - UUID of the player to retrieve

lime ember
#

Ah ok thx

half harness
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaa

lime ember
half harness
#

okay

lime ember
half harness
#

line 13 - do getString, not cast to string

#

then below that

#

use a switch - ill give example, 1 sec

#

or actually just do this:

lime ember
#

No I know how to use that

half harness
#

use a try and catch with BarColor.valueOf

sweet cipher
#

Or you can do EnumUtils#isValidEnum();

#

And if it is not, default to white

lime ember
#

I will try tomorrow

errant geyser
half harness
#

@errant geyser

ocean quartz
ocean quartz
obtuse gale
#

Modified*

#

That's the key

ocean quartz
#

If distributing a jar compiled with BT was legal spigot would do it instead of actually giving the buildtool

obtuse gale
#

Im making a program where you select a shape, enter the dimensions and then it tells you the area. I want it to be easy to add new shapes, whats the best way to do this

#

Just allow for triangles and hexagons

#

And Gabriel's Horn

#

what

#

it needs to allow at least circle rectangle and triangle

#

even if its not easy to add new shpaes whats the best way to handle this

#

This is what i wantm y layout to look like

static zealot
#

why give some info like why or what to use instead

obtuse gale
static zealot
#

but usually decompiling works for messages as well

obtuse gale
#

Decompiled code looks like that for deprecated stuff

static zealot
#

hmm

obtuse gale
#

Unless you have the sources jar yeah gl lol

static zealot
#

oh I see. I didn't know that

obtuse gale
# obtuse gale

Mm would they be just regular polygons of N sides or other things too?

sweet cipher
obtuse gale
#

best way to handle the form where you input the dimensions

#

since each shape will need different parameters

sweet cipher
#

What language is this?

obtuse gale
#

visual basic lmao

sweet cipher
#

Oh I'm not sure how that works

obtuse gale
#

What do you mean by "dimensions" btw? Like actual spacial dimensions? Like, I can define a cube and you project it?

#

Or what?

sweet cipher
#

I'm assuming you store the formula somewhere, I would store the amount of numbers that need to be inputted in the formula.

obtuse gale
#

only considering square, circle and triangle for now, like how long each side is

#

Oh

#

Well, picture this, imagine a circle and you "lie" N points evenly spaced on the circle (N being the # of sides) you do some sine and cosine funcs to get the coords based on the angle, then you join those sequentially with straight lines

I can't give an example because a) idk VB and b) I'm not on my computer rn so yeah

#

If someone can explain it better πŸ™‚

#

Like for example a square has 4 sides, lay 4 points evenly spaced on a circle and join them you have the square, that's the idea

#

My idea at least

#

what

sweet cipher
#

You would probably also have to have a way to set the distance from the center of the "circle" that each point needs to be, depending on the amount of sides.

#

When new shapes are added, are you providing the image through the code, or the person adds the image themself?

obtuse gale
#

how does that help me calculate the area

#

Like i know the formulas to calculate the areas for the shpae

#

I just dont know how to modify the second form to show the correctr input fields, and i dont know the best way to handle that

sweet cipher
#

Is the person adding the formula themself?

obtuse gale
#

no

sweet cipher
#

Or are you calculating it based on the shape inputted

obtuse gale
#

lets just pretend theres only 3 shapes for now

#

square, circle, and triangle

#

User clicks on one of these, a form is displayed where they can input the necessary side lengths

#

then it tells them the area of that shape

sweet cipher
#

Idk how visual basic works, but in Java you could have variables like sideOne, sideTwo, and the formula would be:
sideOne * sideTwo, and when the person inputs the numbers the variables are set to the values.

#

And once both are set, then multiply and show the area

obtuse gale
#

yeah but how do i know what input boxes i need to show

#

since square will be different to circle and traingle

sweet cipher
#

Like the amount of input boxes?

quiet depot
#

because they're clicking on a square?

#

and not a circle

#

if they click on a square, show the square inputs

cloud chasm
#

Anyone know how I can whitelist certain mods in my server but just don’t allow a person using a mod not in the whilelist in the server? I just want to allow mods like minimaps and optifine in the server. But ban exploit type mods like that auto building mod or the inventory rollback mod. @ me if you know how please and thank you

half harness
#

inventory rollback mod?

#

what's that supposed to mean πŸ‘€

#

I don't think mods can change their inventory (unless it's on the server too), or else hacked clients would be OP

ocean quartz
#

@hot hull Ping me later to remind me to add the removeNbt method

static zealot
#

=remindme in 5 hours "Remind frosty to remind matt to add removeNbt method"

compact perchBOT
#
New Reminder Set!
In 4 hours, 59 minutes, 59 seconds:

Remind frosty to remind matt to add removeNbt method

half harness
#

=remindme in 5 hours "Remind blitz to remind frosty to remind matt to add removeNbt method"

compact perchBOT
#
Reminders | Limit Hit

You've hit the maximum amount of active reminders for your tier!
You can currently only have 1 active.

half harness
#

=remindme in 5 hours "Remind blitz to remind frosty to remind matt to add removeNbt method"

compact perchBOT
#
New Reminder Set!
In 4 hours, 59 minutes, 59 seconds:

Remind blitz to remind frosty to remind matt to add removeNbt method

cloud chasm
# half harness inventory rollback mod?

I’ve seen people using it to dupe on multiplayer servers. They basically have a book & quill that saves their inventory and they can put the items in chest then after a relog they have their items in the chest and in their inventory basically duping it, but besides that, would you happen to know a way to whitelist mods?

hot hull
#

@ocean quartz wakey wakey

#

Can y'all fix your sleep schedules already goddamn it, it's 8:30, 7:30 for y'all, stop slacking

hot hull
#

Why is this deprecated??

#

huh?

dawn hinge
#

Yeah definitely

quiet depot
#

@obtuse gale how do u make it so the popup terminal thingo doesn't cover the sidebar?

hot hull
#

ayy finally fixed the nbt stuffo

hot hull
#

Spot the issue