#dev-general

1 messages · Page 377 of 1

hot hull
#

Was trynna figure out why it doesn't work ffs

onyx loom
#

man the fuck u mean, 7:30 on a SUNDAY no less is so EARLY

hot hull
#

I've been awake since 6am bruh

cinder flare
#

it wants you to use entitypickupitemevent instead of playerpickupitemevent

hot hull
#

Yea but qol tho

cinder flare
#

¯_(ツ)_/¯

jovial warren
#

Lol open your eyes

hot hull
#

Bardy, QOL!

jovial warren
#

QOL?

hot hull
#

quality of life

jovial warren
#

Yeah I thought that was it

hot hull
#

no reason for it to be deprecated ;C

jovial warren
#

Yes there is

hot hull
#

Why tho

jovial warren
#

Because it's been replaced with something better

hot hull
#

Yes, but when your only target case is the player it'd be nicer to have a player specific event

jovial warren
#

Unnecessary though

errant geyser
#

Or you could use a single if statement on the other event

hot hull
#

Yes, but still, qol!

errant geyser
#

You have no QoL

jovial warren
#

That's like saying you want one of those events per entity type just because you want to target each type individually

#

EggPickupItemEvent lol

hot hull
#

Nah that wouldn't make sense

jovial warren
#

You could say the same about having a separate player event

#

Also, with a separate event, how would you call them? Not call the entity one for players? Call both of them?

hot hull
#

shush, no need to discuss the semantics of it

jovial warren
#

The former doesn't really make sense, and the latter is wasteful

jovial warren
tropic mountain
#

Hey, I'm in need of help

#

so I'm getting this error when running the plugin

#

I renamed it but for some reason when I run the plugin it gives me an error

cinder flare
#

is it your own plugin?

oak coyote
#

Don’t rename plugins

tropic mountain
#

yeah

cinder flare
tropic mountain
#

o

#

thanks

jovial warren
#

morning all

#

well, afternoon already somehow

cinder flare
#

nah 5 am wdym

jovial warren
#

it's 12 PM for me

#

12:05

cinder flare
#

imagine being bri ish

jovial warren
#

the clocks went forward today, so we lost an hour lol

onyx loom
#

much rather be british than american

#

ah yes. BST gang

jovial warren
#

ikr

#

UK good US bad

cinder flare
jovial warren
#

oh btw, I've been thinking, since apparently, Trello offers licenses for open-source projects, and I think it's much better than GitHub projects, I might switch to Trello

onyx loom
#

oh nice

#

go for it

old wyvern
#

de bri ish real good innit

jovial warren
#

actually, they don't, but it's free

cinder flare
#

awe dude I love trello!

jovial warren
#

they don't offer licenses, it's just free for all lol

cinder flare
#

even better!

old wyvern
cinder flare
#

not even a week ago lmao

old wyvern
#

lol

jovial warren
#

yeah I was

#

I'm stupid though lol

#

also, this has reminded me that I still gotta make a website for Krypton

old wyvern
#

Krypt.on

jovial warren
#

because "This is a test!" ain't gonna cut it

#

might use Spring on the backend and either plain JS or TS on the frontend

#

or I could use Vue and make a SPA (another thing I've said I'm against, but now don't really mind the idea of lol)

#

could use the LuckPerms site for inspiration

cinder flare
#

god LP is a wonder of technology ain't it

jovial warren
#

I mean, the site is open-source under MIT, so lucko won't care

#

oh btw, other than the chunk section bug, can anyone think of any other bugs they found?

cinder flare
#

have we gotten past no changes being saved yet?

old wyvern
#

Use elara/web

jovial warren
#

that's not a bug Starmism

cinder flare
#

👀

jovial warren
#

it's a not yet implemented feature

#

bugs are things that don't behave as you expect them to

cinder flare
#

hmm okay, well that's like, probably priority number one to achieve a real functioning server

#

maybe you'll fix the chunk bug along the way!

jovial warren
#

yeah I'm adding that under features to do

#
cinder flare
#

Working on: Nothing

#

lmao

quiet depot
onyx loom
#

😫

cinder flare
jovial warren
#

I'll add it to possible features

dawn hinge
#

"Possible" angry_fingerguns

jovial warren
#

basically really low priority but could happen

cinder flare
#

as soon as I learn how Krypton works, I'll make a PR for PAPI ;)

jovial warren
#

lol

#

I'm just going through en_us.json rn and removing all the single player keys to make it easier for me to reference lol

#

and maybe also implement in Krypton so keys work for the console

quiet depot
#

should've just implemented papi 3's api in krypton

#

ez

cinder flare
#

stupid internationalization, just hardcode every message in the jar!

jovial warren
#

too Java-like lol

#

I mean too far towards Java

#

for my Kotlin Minecraft server xD

#

I mean, if I add localisation to these things, maybe single server ban plugins would become useless 👀

#

or join plugins

#

also, not having to agree to a EULA just to run a Minecraft server is a good thing for this I guess

#

means you are free to run your server how you want to run it

cinder flare
#

ah, all the big networks will swap over to Krypton to bring back those sweet, sweet, microtransactions lol

jovial warren
#

lol

#

still don't know if Mojang will say anything about the project if it gets popular

#

I don't think the registry files are copyrighted so I should be good there

old wyvern
#

There are many other implementations

#

dw

#

Theres even a client implementation

#

It* supports normal the server protocols, so it can be used to play like with the normal client

quiet depot
#

yugi your sentences are all over the place today

jovial warren
#

lol

#

"it supports normal the server protocols"

old wyvern
#

Yea multi tasking 😅

#

I seem to have trouble concentrating for a few days now

#

Sleep schedule is a bit fucked

forest pecan
#

my eyes are fucked up rn

steel heart
#

Why

jovial warren
#

right, time to work on persistence 🥲

#

gonna make a backup of my world lol

#

just in case I fuck something up

#

which is pretty likely tbh

forest pecan
jovial warren
#

wish me luck lol

forest pecan
#

🥲

onyx loom
#

have u tried sleeping

forest pecan
#

i have, but i woke up early today at 8

#

well its not that early, but i don't sleep until like 12 am

#

lmao

old wyvern
#

I slept at 4 and woke at 7

#

🙃

onyx loom
#

yikes

jovial warren
#

would any of you lot here have a clue how I can turn an array of 4 integers into a UUID?

old wyvern
#

Where are you getting those from?

jovial warren
#

player data files

#
UUID: ints(
    725319716,
    1448298038,
    -1492849656,
    -1397684120
)
#

apparently it's ordered from most to least significant

lunar cypress
#

I wrote something like this

#

you just need to shift and use the UUID constructor that takes 2 longs

#

hold on

old wyvern
#

UUID(arr[0].toLong() lsh 32 and arr[1], arr[2].toLong() lsh 32 and arr[3])

jovial warren
#

ah, cheers

old wyvern
jovial warren
#

guess what guys

#

you bet yo boi got player data persistence

onyx loom
#

whos my boi

half harness
#

this was patched

#

at least it was in the latest mc version

steel heart
#

Bet he uses normal minecraft server jar

half harness
#

it was patched in normal minecraft server jar

steel heart
#

I don’t recall

cloud chasm
half harness
#

paper has mc jar in it.. so yes

steel heart
#

Yes it’s patched there

cloud chasm
#

Ok thanks

half harness
#

since if u have a book with a billion unicodes

#

it'll be too big to save in time

#

so it just reverts the inventory

#

making a dupe

#

although i think its patched

steel heart
#

You think?

half harness
#

Before you comment: Yes, this is slightly patched with the latest version of Spigot. But it's not really a full patch, more like a crappy band-aid. Books that hold lots of data can't be written anymore. Existing books will continue to work. My guess to get around this patch is to write books just below the new book data limit, though it will require more books.

#

maybe just spigot 🤷

#

but i'm 90% sure its patched with vanilla mc

steel heart
#

I don’t recall whatsoever

half harness
#

do you look in every changelog thonking

steel heart
#

Unless you can link some proof

#

No

half harness
#

found it

#

oh

steel heart
#

I will look into it later Ig

half harness
#

so only paper

#

patched it

steel heart
#

Yeah

half harness
#

paper ftw

steel heart
#

Not vanilla

#

As I thought

jovial warren
#

Paper patched it yeah

half harness
#

lol

jovial warren
#

because Paper are the only ones that really care about that

steel heart
#

Dkim next time look up your facts Gasp

half harness
#

-_-

jovial warren
#

Krypton has player data persistence now

half harness
#

look up your facts

#

🙂

steel heart
dawn hinge
#

No ?learn-kotlin thonking

forest pecan
#

?learn-java

compact perchBOT
#
FAQ Answer:

Oracle Docs:
You should start with this, breeze through this(skipping stuff that doesn't seem relevant like bitwise operators), then hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Online Courses:
If you want some free online courses, you can find them on Coursera. Yes they are paid but you can chose to take them for free with the only disadvantage being the fact that you don't get a certificate at the end. Some of the best courses can be found Here.
You can also take a look at Udemy but from what I've seen most of those courses are paid.

Other services:
Some other cool services that will help you learn java are SoloLearn, W3Schools and JetBrains Academy.

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

onyx loom
#

soon™️ brister mitten's tutorials will be on that embed

surreal quarry
#

soon™️

tough gull
#

o//////////

#

how we doing

stuck harbor
#

good good

#

hbu?

tough gull
#

Im aiggggght

tough gull
half harness
#

lol

tough gull
#

:(

half harness
#

howd u even find their website thonking

tough gull
#

pfp -> connections -> github -> link in bio

half harness
#

o

stuck harbor
#

ah

#

well yes

#

its actually quite annoying

#

nginx is down

#

:((

#

and i cba ssh'ing into my server to look at the logs

errant geyser
#

peasant

half harness
#

pEaSaNt

forest pecan
#

why when i see people's profiles they have like less than 100 commits on gh

#

lol

half harness
#

what about me

forest pecan
#

send link

half harness
forest pecan
#

305 still rookie numbers

half harness
#

time to commit every line change from now on

half harness
onyx loom
#

May was when i first started coding btw ^

half harness
onyx loom
#

gaming took over

stuck harbor
#

man my commit history

onyx loom
#

yeah i wouldve been playing the new COD then

stuck harbor
#

its funny

#

i commit in chunks of data, rather than dripping commits

#

like a peasant

forest pecan
#

nah conclure

#

ur good

#

400+ is good

steel heart
forest pecan
#

less then that == bad boy

white bear
#

Hi, anybody good at Python here?

#

How do I add a dictionary to a list of dictionaries?

forest pecan
#

dictionaries are basically maps right?

#

yea

jovial warren
#

yeah

steel heart
#

iirc immutable ones

white bear
#
employees = [
    {
        "email": "christine5663.howard@gmail.com",
        "employee_id": 201,
        "firstname": "Christine",
        "lastname": "Howard",
        "title": "Mrs",
        "work_phone": "(03) 7465 4973"
    },
    {
        "email": "paula592.campbell@gmail.com",
        "employee_id": 202,
        "firstname": "Paula",
        "lastname": "Campbell",
        "title": "Mrs",
        "work_phone": "(02) 2128 4700"
    },
    {
        "email": "steve5806.bird@gmail.com",
        "employee_id": 203,
        "firstname": "Steve",
        "lastname": "Bird",
        "title": "Mr",
        "work_phone": "(03) 3199 8017"
    }
]
steel heart
#

Or nvm mb not

white bear
#

Like if I wanna add a new person there

jovial warren
#

update

white bear
#

employees.update?

jovial warren
white bear
#

Thanks!

jovial warren
#

yw

hot hull
#

cursed shit

half harness
#

what is that

#

ive seen a plugin that does that

#

along with some other stuff

#

like elevators

onyx loom
#

what in the world

#

this is defying the laws of minecraft

#

delete this

half harness
onyx loom
#

last time i checked

#

ladders do not fall

pale shell
#

something ain't right, I'm getting messages here at 16:41 but it's 15:41 thonking

half harness
#

speaking of falling blocks

hot hull
#

Nah that's actual ladders

half harness
#

lmaoo

#

how do i make every block fall?

#

or certain blocks?

#

since i can't do like setBlock(0.5

#

do i do World#spawnEntity?

#

or something

pale shell
#
            FallingBlock block = event.getPlayer().getWorld().spawnFallingBlock(event.getPlayer().getLocation(), Material.LAVA, (byte) 0);

?

half harness
#

d;spigot fallingblock

ruby craterBOT
#
public interface FallingBlock
extends Entity```
FallingBlock has 7 super interfaces, 1 extensions, and  6 methods.
Description:

Represents a falling block

half harness
#

im not on ide rn so i couldn't try

pale shell
#

forgot to add

            float x = (float) -1 + (float) (Math.random() * ((1 - -1) + 1));
            float y = (float) -5 + (float)(Math.random() * ((5 - -5) + 1));
            float z = (float) -0.3 + (float)(Math.random() * ((0.3 - -0.3) + 1));
            block.setVelocity(new Vector(x, y, z));
#

soz i couldn't do good format

half harness
#

hm

#

o

#

wha

#

what does that do

pale shell
#

it adds the falling logic

half harness
#

wait but why do u have to modify the x and z?

#

also will it automatically turn into regular block?

#

or would i have to add that logic too

pale shell
#

it should turn into a normal block

pale shell
#

because you have to make a new vector for it

#

idk it's how the api works

half harness
#

why not just like block.setVelocity(new Vector(block.getX(), y, block.getZ())

obtuse gale
#

getVelocity(new Vector...

half harness
#

aaaaaaaaaaaaa tinyprotocol is so hard/complicated to use

obtuse gale
#

Just use ProtocolLib noob

forest pecan
#

tiny protocol isnt hard

half harness
forest pecan
#

bruh

#

dkim moment

#

-2 -> -3 braincells

half harness
#

😦

forest pecan
#

lol

obtuse gale
#

Tell me one server than doesn't have ProtocolLib

steel heart
#

Mine

forest pecan
#

Mine

dawn hinge
#

Mine

half harness
#

Mine

obtuse gale
#

Conclure not even you join your server so stfu

forest pecan
#

lol

half harness
#

join my server 🙂

obtuse gale
#

No

steel heart
#

Lol 😂true

forest pecan
#

No

#

also

#

TinyProtocol isn't hard

half harness
#

also my ip changed yesterday when my internet when out

#

🙂

#

so now no one knows my ip

obtuse gale
#

Ok?

half harness
steel heart
#

Intriguing dkim

#

Gotta write that one down

half harness
forest pecan
#

what's wrong with tinyprotocol tho

#

it isnt that hard

steel heart
#

Packetevents duh

forest pecan
#

🥲

half harness
#

#

what are packetevents

steel heart
forest pecan
#

its an api

forest pecan
steel heart
#

It’s a packet wrapper lib

half harness
#

🥲 \🥲

forest pecan
#

correction i meant library

#

lol

#

made by retropper

steel heart
#

Hehe

half harness
#

1.7

#

nice

steel heart
#

Retrooper is kinda mifo

forest pecan
#

what

steel heart
forest pecan
#

what's mifo

#

lol

steel heart
#

Idk

forest pecan
#

he follows me

#

😇

half harness
#

how do i get 1.6 spigot jar

forest pecan
#

you cant

#

unless you use

#

like

half harness
#

wot

forest pecan
#

|| getbukkit ||

#

lol

half harness
#

oh

#

did buildtools only exist 1.8+?

forest pecan
#

dkim your braincell count has dropped by 1

#

-3 -> -4

half harness
#

ok

steel heart
#

Lol

half harness
#

||idc||

forest pecan
#

Correction: -5

half harness
#

ok

steel heart
#

Dkim brain cell counter is a thing now lmao

half harness
#

afk

obtuse gale
#

"gtg"

pale shell
#

in gradle is it best to do
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
or
compileOnly 'org.spigotmc:spigot-api:latest'
?

forest pecan
#

depends

onyx loom
#

first

steel heart
#

I never use latest

#

It can fuck stuff up

#

Real badly

pale shell
#

And just keep updating when new spigot vers come out?

steel heart
#

Yes

forest pecan
#

for spigot specifically, probably 1

pale shell
#

ok ty

#

i'm trying to keep away from that version

forest pecan
#

from 1.16.5?

pale shell
#

no 1.8

half harness
#

back

steel heart
#

Good boy

half harness
#

why did u guys react with 🥲

steel heart
#

Also I’ve dropped support for spigot now huhuhuHAHAHA

pale shell
half harness
#

wot?

pale shell
#

but

steel heart
#

Come to realize paper is clearly superior

pale shell
#

paper is fast

half harness
#

rip ur download count

steel heart
#

Who cares

half harness
#

10 -> 1

pale shell
#

download count?

half harness
#

nVm

#

gtg

#

afk

forest pecan
#

bruh I see premium plugins go for 8 bucks at 100kb

pale shell
forest pecan
#

but my plugin is literally 400kb of straight up hard code

#

no libs

pale shell
#

Just curious, if I was to release a premium enchant plugin what works decently (unlike one of which shall not be named) what is a good price for it

forest pecan
#

well that would depend

errant geyser
#

£999.99

steel heart
#

Ecoenchants

obtuse gale
#

$€¥£¢844793744837

forest pecan
#

ddddddd

pale shell
#

it'll contain a bunch of helpful prison enchants

dawn hinge
#

19.99

forest pecan
#

19.99

steel heart
#

I barely play prison

dawn hinge
#

1.69 dollars maybe

pale shell
#

I was thinking of 9.99 max 😅

forest pecan
#

ewg's reviews are so shit lol

pale shell
#

I don't like taking money idk why

steel heart
#

Prison is quite unilateral odin so might be worth to aim for some more general purpose enchants

pale shell
#

i mean the enchants what i'm gonna add you can't exactly use it out of prison

errant geyser
#

Write it in Elara instead

pale shell
#

whats Elera

forest pecan
#

ask bm

#

lol

errant geyser
#

Odin.... I can't believe I used to like you

forest pecan
#

Odin.... I can't believe I used to like you

pale shell
#

i've been out of the circle for a long time

errant geyser
pale shell
#

Last updated Jan 30th thonking

#

bm scares me, he just keeps making new languages

errant geyser
#

100/10 the best language ever made tho

#

Impossible to write bad code

obtuse gale
#

That's literally what you said when you tried to make me move to Kotlin

pale shell
#

I could never really learn Kotlin.

#

yeah it seems cool but i don't think i could make a whole plugin using it

steel heart
#

It has uses outside spigot

errant geyser
pale shell
#

I guess if I knew how to do kotlin better then maybe I'd enjoy it more but atm no 😦

steel heart
#

I mean java works more than fine

forest pecan
#

someone teach me react

#

and js

#

lol

steel heart
#

Okay

forest pecan
#

pls i wanna learn

#

teach me

steel heart
#

But then react and ts

forest pecan
#

dady

steel heart
#

Not fucking js

hot hull
#

Whos kotlinjerking again

forest pecan
#

dw, i jerked on ur mom last night

#

I meant like

#

I ate beef jerky

hot hull
#

You twelve years old?

forest pecan
#

next to your mom

#

yea

pale shell
forest pecan
hot hull
#

came*

forest pecan
#

lmao

obtuse gale
hot hull
#

Isn't your first language english you uneducated swine

forest pecan
#

who

hot hull
#

Yours

forest pecan
#

oh

#

yes

#

lol

hot hull
#

Lmao

forest pecan
#

frosty have you ever noticed

#

your pfp is white face

#

right

#

but

#

where did the white

#

come from

hot hull
#

bruh

forest pecan
#

tell me

ocean quartz
#

Frosty, did you test the PR?

hot hull
#

Yes

ocean quartz
#

It worked?

hot hull
#

Well sort of

#

I think I introduced an issue, need to double check

#

hold with the merge for now

ocean quartz
#

Cuz i was gonna do a reflection for the remove method instead

#

NBTTagCompound#remove

#

Which i think is better since it's a map

hot hull
#

Sure you can add that instead

pale shell
#

10 lines of kotlin instead of like 30 lines of java pog

steel heart
#

Lines isn’t all

forest pecan
#

why is angular so ass?

steel heart
#

It’s not

#

But it’s object oriented

hot hull
#

If it's coke lines then lines are everything Conclure

steel heart
#

And like imperative

#

Which may not be a suitable approach in some scenarios

forest pecan
#

what course did u take

#

to learn

#

tell me lol

#

js

#

ik a tiny

steel heart
#

I taught myself

forest pecan
#

like it has some similariites to kotlin

#

with ==, ===

#

and there are no types really

#

you just define it

steel heart
#

Yeah that’s strict comparison and just comparison

forest pecan
#

yea

steel heart
#

Typescript

#

Idiot

forest pecan
#

o

#

was kt based off that?

steel heart
#

Idk

#

That will get u started

forest pecan
#

ty

ocean quartz
forest pecan
#

oh lol

static zealot
#

yo @hot hull I know its late but tell Matt to add the removeNbt method. And yeah I know he added it already

forest pecan
#

Oh god no

#

Baldi

#

dont kill me!

onyx loom
#

dont u just love commit messages

static zealot
#

I do. that's why I never use them

#

OMG. This is a miracle. I've just remembered that for the main project I was working on I actually uploaded it to github in a new branch because I was experimenting with cli and branches

dawn hinge
#

That's great news 🎉

hot hull
#

@ocean quartz Lemme know when you've made the method so I can copy paste

jovial warren
#

I think it's time for another Krypton public development test

#

anyone here up for it?

hot hull
#

Does it work outside of IJ yet?

jovial warren
#

oh you bet

#

I'm gonna run it on my test server though

#

that's what I meant lol

hot hull
#

Send me ci link again, I'll throw on mine

jovial warren
#

that's not the build I'm going to open for testing though btw

#

this is my local build fingerguns

#

I'm testing player data persistence

#

also known as <player>.dat files

onyx loom
#

whats the ip again

jovial warren
#

it should remember your position when you reconnect

#

among a few other things

steel heart
#

Hmm I have come to the thought, why isn’t the hashCode stored in something like UUID, everytime it’s used in an hashmap etc it would essentially have to recompute the hash right?

static zealot
#

oh you bought kryptonmc? nice

jovial warren
#

technically, inventories are persisted, but you can't update the content of your inventory on the server's end yet, since the packets ain't supported

jovial warren
#

I bought the domain when we settled on the name lol

static zealot
#

the domain

#

ah I didn't know

jovial warren
#

fair

onyx loom
#

guys dont join krypton servers

#

they are malware

jovial warren
onyx loom
#

it hack my pc

#

pc burnt to flames

jovial warren
#

lol

hot hull
#

no more pc, no more worries

onyx loom
#

u make a fair point

jovial warren
#

most of those are unused, but that's what it saves atm

#

(that's the Minecraft Development plugin's stringified NBT)

onyx loom
#

👍

jovial warren
#

you see that brain btw?

#

guess what I called that in code

onyx loom
#

oh yeah what is that

jovial warren
#

EmptyBrain lol

onyx loom
#

named after dkim ofc

#

ic ic

jovial warren
#

because players don't have any memories

#

also, tf does ic mean btw

onyx loom
#

i see

jovial warren
#

ofc

#

@half harness lol

half harness
#

?

onyx loom
#

🙂

half harness
#

😦

oblique heath
#

wouldn't all that stuff normally be stored in the player file

jovial warren
#

yeah it is

half harness
#

don't ping me just to say that

jovial warren
#

that's where I'm storing it lol

oblique heath
#

ah alright

jovial warren
#

<UUID>.dat

#

by Mojang conventions

oblique heath
#

very good

#

and the insides are compatible with vanilla servers right 👀

jovial warren
#

I'm hoping that vanilla will look at that half complete player.dat file and just go "meh" and fill in all the missing details itself

oblique heath
#

lmao

#

you should test it

jovial warren
#

good idea

oblique heath
#

i'm actually curious to see what happens

half harness
#

in my mc server creator app thing.. i have all these values, should i have an enum or is that pointless

#

then the enum can have like getDefaultValue, getValue, getNode, getRawKey, etc

#

so that i dont accidentally make a typo

jovial warren
#
data class ServerProperty(
    val type: ServerPropertyType,
    val value: Any
)

enum class ServerPropertyType(val default: Any) {

    SPAWN_PROTECTION(16)
}
```etc.
half harness
#

i'm using java btw (javafx) 😦

jovial warren
#

@oblique heath as I suspected, just goes "meh" and fills in all the details

oblique heath
#

nice

jovial warren
#

barely bats an eye

#

I don't even wanna look at whatever kinda mess this is lol

oblique heath
#

i wonder if vanilla will also choose to ignore / not overwrite any custom data you put into the dat file

jovial warren
#

the NBT serialisation and deserialisation logic is one of the messiest parts of this entire project

#

also, multi-world support soon™️

#

after player data persistence will be world data persistence

#

region data persistence is gonna be a nightmare

ocean quartz
#

@hot hull Doesn't seem like it removes the tag at all >.<

hot hull
#

I'm setting the component to null but I think that removes all of the tags

#

Can you just test my method with multiple tags rq

ocean quartz
#

Yeah I'll test

#

Wut

[18:43:24 INFO]: Before
[18:43:24 INFO]: {mf-gui:"974ac510-22e6-4b7e-89c1-35b3860ae519",display:{Name:'{"extra":[{"text":"Name"}],"text":""}'}}
[18:43:24 INFO]: After
[18:43:24 INFO]: {display:{Name:'{"extra":[{"text":"Name"}],"text":""}'}}

It removes but I can still click on it which means it's not removing thonking

hot hull
#

Don't you store the data in a map?

ocean quartz
#

Nah

hot hull
#

I got dementia then

#

Also, I mean considering items are stackable, it's removing it?

ocean quartz
#

Ah i know why

jovial warren
#

that looks like a mix of JSON and SNBT lol

ocean quartz
#

Huh it's something to do with the ItemMeta thonking

jovial warren
#

makes sense why it looks like SNBT then

#

unquoted keys makes me think SNBT lol

ocean quartz
#

Yeah works now Frosty, need to set the meta to the itemstack, remove the NBT, set the builder's meta from the new ItemStack meta and then re set the meta when building the final ItemStack

hot hull
#

What in the fuck

jovial warren
#

welcome to NMS xD

ocean quartz
jovial warren
#

Bukkit at its finest

#

I might make ItemStacks immutable in Krypton tbh

hot hull
#

Link me the commit which adds that so I can copy paste ze code

ocean quartz
#

Will commit in a sec

hot hull
#

I will commit in a second as well

jovial warren
#
val item = ItemStack(ItemType.OAK_PLANKS, 64)
val newStack = item.copy(meta = item.meta.copy(displayName = "Hello World!"))
ocean quartz
#

Fuck it i'll commit now, i'll add setModelData later

jovial warren
#
item {
    amount(64)
    meta {
        displayName("Hello World!")
        lore(listOf("Lorem", "ipsum", "dolor", "sit", "amet"))
    }
}
```ez
#

not a bad DSL tbh

onyx loom
#

not bad at all

ocean quartz
jovial warren
#

better than Bukkit's

#

much better

#

and might have that backed by an Adventure-style builder for Java compatibility

#

also, when your code is almost as messy as Mojang's

stuck harbor
#

oh my

#

that's illegal

#

mojang don't understand java

jovial warren
#

did anyone here know there's rain levels?

#

I guess you do now lol

#

look at the sky colour changes lol

hot hull
#

I've not seen any of those before

jovial warren
#

me neither lol

#

I looked at that and I was like "wait wtf? you can get blood and acid rain in vanilla?"

#

lol

oblique heath
#

wooot

#

that's a thing?

hot hull
#

bruh

#

please don't tell me I actually have perms for that

jovial warren
#

perms for what

hot hull
#

TTS

half harness
#

oh no

jovial warren
#

lol

#

try it

#

only heard by people focused on the channel anyway

half harness
#

it doesn't tell me the exception -_-

hot hull
jovial warren
#

lol

#

I wanna see you try it now

hot hull
#

There's no option on mobile, that might not even be tts

jovial warren
#

/tts?

hot hull
#

Nah

frail glade
#

Mfw I pushed player expansion to 1.8 in October of last year but never released it on the eCloud.

hot hull
#

Lmao

onyx loom
#

kekw

onyx loom
#

i was thinking of that the other day actually glare, i remember u merging some prs

#

just release it on ecloud now no balls

frail glade
#

I am about to because I just fixed something else.

#

I don't know all the change logs so I'm just going to put the thing I fixed.

onyx loom
#

wait

frail glade
#

Damn, I'm pretty smart.

jovial warren
#

👏 👏 👏

frail glade
#

Wonder if there were any others I never released. Oops.

onyx loom
#

i think i still have some PRs open in some of the other expansion repos fingerguns

ocean quartz
hot hull
#

I think I still have v3 player/server expansion to finish, oh wait I got time till 2030

onyx loom
#

ah yeah thats an important one actually

hot hull
#

Kill me Kali

#

They're closing the entire state starting 1st for like 10 days

onyx loom
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

hot hull
#

Still not sure what the fuck their goal with that is

onyx loom
#

so do u have to go to school then still?

hot hull
#

I have to go to work

onyx loom
#

o u working now?

hot hull
#

Well, depends on what they mean by closing the entire state

frail glade
#

I swear the amount of people that have reported issues lately and it all turns out to be from Mohist is crazy. I think I've counted 3 today alone. They must've changed something lately that broke shit.

hot hull
#

Nah Kali, internship

frail glade
#

We don't even support Mohist

#

¯_(ツ)_/¯

onyx loom
#

ah

hot hull
#

What even is Mohist Glare

onyx loom
#

never heard of it either

frail glade
#

It's like a forge bukkit hybrid

onyx loom
#

o

hot hull
#

Why would you even concern yourself with it then?

frail glade
#

Because people whine.

#

It shuts them up.

hot hull
#

Just ignore lol

#

If they can't read, their fault

frail glade
#

I made the only change I was willing to do. From now on, if they have problems, they contact Mohist support.

hot hull
#

Neato

ocean quartz
#

Oh i heard of it, apparently it's very buggy

stuck harbor
#
iprintf("\x1b[10;0HFrame = %d",frame);
``` oh my jesus
#

when did i write that

#

was i insane?

#

did i go mad?

jovial warren
#

lol

jovial warren
#

and they always break things

#

thinking about Forge actually, that might be one to add to the possible features list

ocean quartz
#

Forge-Krypton? thonking

stuck harbor
#

ive never once bothered using forge

ocean quartz
#

Why would you do that?

stuck harbor
#

i thought krypton was supposed to be good

#

but forge?

#

pfft

jovial warren
#

no, I mean being able to have client-side forge mods talk to server-side Krypton plugins

#

I'm not adding support for the Forge API on the server's end lol

#

it's only a few additions to a few packets anyway

#

and I'll need to make a few changes to some packets to support BungeeCord, so I might as well lol

old wyvern
#

We gettin there 😮

ocean quartz
#

Ayyy!!

jovial warren
#

slimjar?

old wyvern
#

yes

ocean quartz
#

Slimjar, is not my love

old wyvern
#

is that a mj song reference?

ocean quartz
#

Yeah xD

old wyvern
#

lmao

stuck harbor
#

o shit

#

death time efe

#

death time

forest pecan
#

Wait guys

#

for react

#

why does it feel like i can place semicolons in some places if i want them

#

like

#

like ik they aren't necessary but my ide doesn't warn me like in kotlin?

#

lol

onyx loom
#

are u using intellij for js too?

forest pecan
#

No

#

WebStorm

onyx loom
#

hm

forest pecan
#

oh god i would never use intellij for web dev

#

lol

onyx loom
#

meh if ur just messing around then it wouldnt be too bad but yeah

forest pecan
#

yea

onyx loom
#

maybe its just heavily discouraged in kotlin or smth idk

#

no biggie anyway

forest pecan
#

Yeah prolly why. Btw, is bootstrap good?

onyx loom
#

not a clue

#

i havent dabbled in js any more than i have for college, which is just basic data types etc

#

to answer the question tho, probably

forest pecan
#

Oh lol

unkempt tangle
#

How can I incerase heap size for all java apps?

stuck harbor
#

oh noes

unkempt tangle
#

Stop being a meany

#

let him code as much as he likes

stuck harbor
#

sadge

#

u been bayyted

onyx loom
#

is he reviewing ur code, or rewriting it?

#

its not really a review tho

#

if hes doing it himself, hes not giving u any tips

stuck harbor
#

nobody would steal my code

onyx loom
#

if u fully understand it then sure

stuck harbor
#

nobody would understand it

#

too much clojure involved

onyx loom
#

just pushed like 10 commits at once, that felt good pog

jovial warren
#

lol

old wyvern
onyx loom
#

congrats

#

whats ur repo efe

#

is it public

#

aw

old wyvern
#

My guy publically posting every message from the dude here

#

xD

#

You might as well invite him here and talk here

onyx loom
#

efe do be speaking highly of him by the sounds of it

#

gn

stuck harbor
#

man efe took a covid test

#

pffft

#

I've taken 4 in the past 2 weeks

forest pecan
#

ohhh sheet

#

i got a comment from someone new

#

on my github repo

onyx loom
#

pog

old wyvern
#

Anyone wanna review some code?

unkempt tangle
#

😭

old wyvern
#

?

prisma wave
forest pecan
#

Yeah

stuck harbor
#

bootstrap

#

not enough php

#

pls fix

half harness
#

lol why did intellij java -> kt converter add 51 unused imports ._.

prisma wave
#

It does that to me sometimes too

#

Bit weird

forest pecan
#

yea same

half harness
#

it does that to me all the time

#

;-;

prisma wave
#

Now imagine it in every file in a 100+ file project 🥲

half harness
#

🥲

#

i have a separate branch

#

for tornadofx (im converting javafx -> tornadofx)

#

this is gonna take a whileeee

obtuse gale
#

Why you tryna convet a 100+ file project to java 🤔

half harness
#

just starting from the bottom up

obtuse gale
#

From?

onyx loom
#

java -> kotlin

obtuse gale
#

O

#

Idk why I thought it was the other way around

half harness
#

is it bad if my pc blue screened 3 times in the last 4 hours

errant geyser
#

If you have more than a singular brain cell you can figure that one out yourself dkim

#

I know it might be hard for you, but you can do it

obtuse gale
#

Can he?

errant geyser
#

We're about to find out

half harness
#

😦

old wyvern
#

Probably not a good idea ig

ocean quartz
#

I'm gonna be honest i don't think i understand what's going on in there xD
Never really messed with classloader before

old wyvern
#

So currently we have 2 types of Applications

#

Appendable and Injectable

#

Injectable uses a diff class loader and has all child classes loaded by that

#

Appendable only works on a URLClassLoader and just appends the dependencies to that

#

So if you were to implement AppendingEntryPoint on some class, it would load the interface and then its nested class first (might actually need a reference to that class inthe interface tbh), and so the static block would be called on loading the interface which then uses the appendable application to inject the dependencies into that class's classloader assuming it is a URLClassLoader

#

btw the rest of the library is pretty much complete

#

Just need to do some work on the download path

#

rest is working rn

old wyvern
#

That class is not being used xD

forest pecan
#

🥲

old wyvern
#

Do you have time to review the rest of the lib?

forest pecan
#

slimjar?

#

btw nice name

#

100% of Americans will definately use your library now

#

lol

#

dkim do you not get the joke

old wyvern
#

xD

forest pecan
#

dkim

#

your braincell count has dropped twice

#

-5 -> -7

half harness
#

.

old wyvern
#

Let me know if you have any suggestions for change

obtuse gale
forest pecan
obtuse gale
#

meanwhile steam be like brrrrr 6.0 MB/s

forest pecan
#

like @NotNull and @Nullable

#

It's not a requirement, but it helps with debugging in the future

old wyvern
#

Oh yea true

obtuse gale
#

epic

old wyvern
#

I havent added jb annotations to deps yet

#

will do tmr

forest pecan
#

hahahah there is. areason why

#

i dont put my picture

#

on my github repo

#

lol

old wyvern
#

lol

obtuse gale
forest pecan
#

Meanwhile

#

Yugi's github status:

#

Studying B.Tech in CSE w/ spez. in Gaming Tech. -Around 5 years experience in Java -Learning Kotlin, C#, Go -Looking into Game Dev. Discord: Yugi#1829

obtuse gale
#

none of y'all have seen my colored eye tho 👀

forest pecan
#

lol

old wyvern
#

wha xD

#

oh you meant as in to change the status

forest pecan
#

you can create a repo called Yugi

#

i meant

#

lol

#

then add a readme to it

old wyvern
#

I really just dont know what else to put in the status tbf

forest pecan
#

oh lol

obtuse gale
#

same

old wyvern
#

Not good at wording things

obtuse gale
#

just do like everyone
👋 Hi there, I'm blah blah

blah blah blah computer science blah blah
algorithms blah blah
Spigot blah

forest pecan
#

my github md profile is so heavy certain elements wont load at times

#

lol

old wyvern
#

xD

#

Oh yea I still havet added the github profile readme thing

#

gotta do that at some point

errant geyser
#

My readme is actually impressively shit

old wyvern
#

Looks fine katsu

obtuse gale
#

Connect with me

#

sexy

forest pecan
#

my top languages are embarrasing

errant geyser
onyx loom
#

wait, u guys actually have readmes?

old wyvern
#

My top lang was "JS" for a long time on github. Know why? BOOTSTRAPPPP

#

xD

errant geyser
#

Ya gamer

forest pecan
#

In order: Java, Processing, Kotlin, HTML, CSS, Python, Shell (like wtf lol), and then finally PHP

old wyvern
#

I had to delete all repo's I used bootstrap in to fix that

errant geyser
old wyvern
#

lmao

ocean quartz
old wyvern
#

Yea that is probably the right way to go, and we would need to extend Shadow as well I believe?

#

btw let me know once you have decided a format for the dependency file, so I can adjust the DependencyReader to use that

#

Current implemented one is just an array of Dependency where each one contains a url and a name

ocean quartz
#

I wonder if Gradle tells you in which repository the dependency is, that's make it much easier

old wyvern
#

Didnt it also specify the link when you tested earlier? or was that just the artifact and group id?

ocean quartz
#

Was just the artifact and group id and version

old wyvern
#

ah

#

Should we have them specify the directory for download in the gradle plugin or* just use a env variable and a default value at the download point?

ocean quartz
#

configuration.incoming.resolutionResult.allDependencies will return a list with every single dependency the project has, without any specification of if it's transitive or not, then dependency.from.dependents shows the parents, which is super odd xD
And maybe both? If nothing is specified default to the latter?

old wyvern
#

Alrighty, so each dependency would be like

{
  'name': "FILE_NAME"
  'url': "DOWNLOAD_URL"
  'directory': "DOWNLOAD_DIRECTORY"
}

ig

ocean quartz
#

Hopefully it gives the attached url to download
I'll dig a bit more

forest pecan
#

for download url

#

is it a direct link to the dependency jar file?

#

cause for maven, you can construct a link automatically if its hosted at the central repository

old wyvern
#

Actually, we might need to host a mirror like bm did

ocean quartz
#

Also testing gradle plugins is horrible (the only way i know at least)
You have to publish to local then add it in another module/project to just test it

old wyvern
#

People in the Kyori discord were talking something about it

ocean quartz
half harness
#

css ftw

#

lol

onyx loom
#

i remember someone in here saying that u should call Bukkit.getOfflinePlayer(String) async to prevent blocking the main thread -
https://www.spigotmc.org/threads/thread-safe-method-of-getting-an-offline-player-from-a-string.478294/ instead of using the deprecated method tho, what about going with what this guy is saying and looping getOfflinePlayers() to compare a username or would u say there is a better way? if i do loop, would u say its necessary to make it async too?
havent done anything async so im not sure whats best

prisma wave
#

Loop and getOfflinePlayer would do slightly different things

#

Afaik getOfflinePlayers will only give you the players who've joined at least once before

#

Whereas getOfflinePlayer makes a mojang API request to get the details if they've never played before

onyx loom
#

yeah thats all i need anyway, i have no need to query mojang api

prisma wave
#

Probably doesn't even need to be async then

onyx loom
#

i guess this is a case of pre-optimising hmm

#

cool then 👍

prisma wave
#

yea don't optimise until you have to

ocean quartz
#

Lmao 36k ms ago

obtuse gale
#

36k??

deep rock
#

matt how long does it take for @compact perch to update buyer list? I need the dev version for autosell ASAP

obtuse gale
#

36 MILL

ocean quartz
#

Oops yeah Mill, my bad

ocean quartz
deep rock
#

oof

obtuse gale
ocean quartz
#

Nice indeed

deep rock
#

🤣

obtuse gale
#

I personally suggest Meathook and The Only Thing They Fear Is You 🙂

hot hull
#

Wakey wakey @ocean quartz

#

Where Triumph Chat

oak raft
#

it's done

ocean quartz
hot hull
#

Well yea, I mean progress wise

ocean quartz
#

Rewriting a few things, found a few bugs when testing

oak raft
#

so matt

#

if I ask you what a certain part of ur code does, you'd be able to explain it to me? thonking

ocean quartz
#

Yeah

hot hull
#

Imagine documenting code

cinder flare
#

I could never

oak raft
#

so ur saying that you didn't copy any code

cinder flare
#

The mark of a true software engineer is the ability to know what code to copy because you know what it does

#

Shitty devs will just copy code blindly and not know what it does

hot hull
#

Exactly, same with knowing what to google

cinder flare
#

Just had an assignment in my easy Java class. We're making an RPG kinda thing about heroes and villians. Luckily for me, I just finished She-Ra, so I had a lot of inspiration ;)

cinder flare
#

Which made it like, 80% less painful

ocean quartz
#

I mean i might have copied some parts, but they're likely so modified that won't even look the same, copying code is a normal thing to do
I still can explain exactly what it does though

cinder flare
#

damn helpchat kinda quiet

simple kestrel
#

Yeah

onyx loom
#

well yes, expected at 6am my time/ midnight in usa on a school/work night

prisma wave
#

fellow

hot hull
#

Fellow Brit*

distant sun
#

Where is that from?

cinder flare
#

MagenPurp lmao what a name

lime ember
#

Would it be possible to link a discord bot to a Minecraft client?
So that it detects things like block breaks and explosions?

stuck harbor
#

stonks

obtuse gale
cinder flare
#

bruh

#

though same

hot hull
#

Link to the commit

stuck harbor
lunar cypress
#

this may be very useful for me

jovial warren