#dev-general

1 messages ยท Page 212 of 1

heady birch
#

Need some kite libraries ๐Ÿ˜„

prisma wave
#

elara/config ๐Ÿ™‚

heady birch
#

What is a lib that needs making?

frail glade
#

KB OS

ocean quartz
#

Matt Monopoly
kek

heady birch
#

The return of N.java

prisma wave
#

no

#

no

umbral mica
#

ok let me be a hypocrite and try to dive into a major API with a lang I've spent 2 minutes with

prisma wave
#

not that

umbral mica
#

F

prisma wave
#

if you know java kotlin is easy

heady birch
#

N.of(...)

umbral mica
#

lemme see if I can get a working JDA bot in kotlin

heady birch
#

N.kt

umbral mica
#

shouldn't be too hard
I hope

ocean quartz
#

Do some stuff and we can do some code review and you'll learn a lot of things that are super cool in Kotlin, that's how most of us learned

surreal quarry
#

kotlin took like a couple days to pick up and start using and then i leared a ton from there as long as you have a decent java background you should be good

umbral mica
#

Yeah I've been doing java since last nov

ocean quartz
#

I started with Kotlin in January, don't like going back to Java anymore

surreal quarry
#

yepppp

umbral mica
#

definitely noticing code completion is slower

ocean quartz
#

It wasn't slow like that but it kinda became for me too after 1.4

prisma wave
#

it's somewhat slower although I can't usually notice a difference

ocean quartz
#

It's been noticeably slow for me

umbral mica
#

this is milliseconds vs like 5 seconds for me

ocean quartz
umbral mica
#

yeah

#

point java

surreal quarry
#

mines a bit slower too, but its not to bad

ocean quartz
#

Yeah something to do with 1.4

surreal quarry
#

i usually know the idea of what the method is gonna be called so i just start yping it and it pops up eventually

ocean quartz
#

Got better in 1.4.1 though

umbral mica
#

hmm got an IDE error as well

prisma wave
#

that's rare

umbral mica
#

(why is sendMessage nullable wat)

ocean quartz
#

It's the text channel that is nullable

umbral mica
#

no before the queue

prisma wave
#

yeah because nullability falls through

ocean quartz
#

Since the text channel could be null, you need to null safe everything after too

prisma wave
#

if a is nullable then a?.b() is also nullable

umbral mica
#

hmm interesting

ocean quartz
#

Normally you can do val channel = getTextChannelById(id) ?: return and it'll no longer be null (if it is it'll return)

umbral mica
#

aight

surreal quarry
#

or give error messages and then return

#

using run { ... }

umbral mica
#

uhhh what did I do my caret is now a block

surreal quarry
#

?

prisma wave
#

insert key?

umbral mica
#

ah yes that fixed

#

dafuq is the point of that lol

prisma wave
#

to insert stuff i guess

frail glade
#

Wow. 11, I just realized how big the copy of your avatar you sent me was.

#

That downscaled very nicely.

umbral mica
#

yeah discord defaults to 2048^2 for avatar links

frail glade
#

Yeah and it came out perfectly at 64x64.

umbral mica
#

sweet

frail glade
#

I haven't even leaked in this Discord what the new project is ๐Ÿ‘€

umbral mica
#

I'll remove that message then ๐Ÿ˜›

#

but trust me glare's new thing is fucking amazing

frail glade
prisma wave
#

ahah

#

that looks pretty cool

surreal quarry
#

thats awesome

umbral mica
#

rocketeer go brr

ocean quartz
#

Oooh that's pretty cool Glare!

prisma wave
frail glade
#

Soonโ„ข๏ธ

#

Was able to weed out a lot of servers by making it Paper + Forks 1.16.3 only KEKW

umbral mica
#

hehe fuck 1.8

prisma wave
#

@aj

umbral mica
surreal quarry
#

yupppp

#

extension functions are amazing

umbral mica
#

now let me experiment with java interop

frail glade
#

Just need to fix the problem where it only faces North KEKW

prisma wave
#

omg

#

i love it

#

could you do it packet based where it always faces the player?

obtuse gale
#

:0

frail glade
#

It currently is somewhat packet-based. I just need to get the axis right to always render in the direction the player is facing.

prisma wave
#

ah great

#

looks very cool

frail glade
#

Uses redstone particles so it's fairly lightweight.

umbral mica
prisma wave
#

FileNameKt.jda

umbral mica
#

wait I'm a moron, I was trying to reference it without a method

#

๐Ÿคฆโ€โ™‚๏ธ

#

that's why it wasn't working

ocean quartz
#

Actually it'd be FileNameKt.getJda()

umbral mica
#

now that I actually have a main method in the java class, it's working a lot better lol

frail glade
#

Off the top of oyur head elara, what's the equiv in Java for sortBy, is it just sort with the comparator?

prisma wave
#

Yeah I guess so

#

you'd make a comparator with that util method

#

I can't remember what it is

#

Comparator.comparingBy ?

umbral mica
#

so how do I reference my extended method in java? Or not possible?

frail glade
#

I don't think comparaingBy is a function in Java

ocean quartz
#

FileNameKt.sendMessageToChannel()

old wyvern
#

Extensions are just static functions with the extended type as the first argument _11

umbral mica
#

ah ok

prisma wave
#

@frail glade my bad it's Comparator.comparing

#

eg Comparator<Employee> employeeNameComparator = Comparator.comparing(Employee::getName);

frail glade
#

Yup that was it

heady birch
#

comparatoring

frail glade
#

Think we've given them long enough to speak up? Initial testing showed it working okay.

steel heart
ocean quartz
#

Conclure you're realling wanting to start a crusade aren't you?

steel heart
#

No reason not to when yโ€™all ijs are my enemies

ocean quartz
#

It's legit impossible to like Eclipse more than IJ kek

steel heart
#

Wrong

#

Itโ€™s the opposite

ocean quartz
#

Also jesus christ, gson's serializer calls toJson like 5 times before getting to the main one

steel heart
#

Lol

#

Eclipse would solve it

ocean quartz
umbral mica
steel heart
half harness
#

how do u use try and catch?

ocean quartz
#

You try then you catch it

half harness
#

thx

onyx loom
#

@umbral mica thats literally everyone in this discord ๐Ÿคฃ

half harness
#

but

#

isn't kotlin just a whole different language?

onyx loom
#

it is yes

prisma wave
#

yes and no

#

it's a different language but compatible with java

onyx loom
#

it runs on the jvm and is interopable with java still

remote goblet
lavish notch
#

@remote goblet what's the url

remote goblet
#

the url wasn't the issue

lavish notch
#

How so?

remote goblet
#

Sending messages to discord using webhooks

#

not having message content made it unhappy

lavish notch
#

Oh.

half harness
#

Is there a decompiler where you can simply download the decompiled folders/files?

#

don't ask why I'm trying to decompile ๐Ÿ˜„

#

I can't find any online ๐Ÿ˜ฆ

obtuse gale
#

Tried googling "java decompiler online"?

half harness
#

I did

#

but they just show the files

#

but won't let you download

obtuse gale
half harness
#

will they let u download?

#

no that wont let u download

#

just shows u

#

._.

obtuse gale
#

It does let you download

half harness
#

wHat

obtuse gale
#

Because I use it every now and then

half harness
#

how do u download?

obtuse gale
#

... you give it the jar, select the decompiler.. and click download?

half harness
#

I can't find download button ๐Ÿ˜…

obtuse gale
#

-_-

#

It lets you download either individual files or everything as a zip iirc

half harness
#

oh

#

its still decompiling for me

obtuse gale
#

"oh"

#

Well

#

Wait

#

What the hell are you trying to decompile.....

#

The minecraft jar?

half harness
#

xD

obtuse gale
#

Defo

#

You are

half harness
#

im not

#

im not a criminal

#

im just checking a jar file to make sure it has no bad thingies ๐Ÿ™‚

#

ok its done

#

finally

#

hmm

#

ok

#

thx

#

i downloaded ๐Ÿ™‚

obtuse gale
#

It has an arrow

#

Pointing down

#

Like

#

EVERY single download button

half harness
#

rly?

#

oh

#

im used to just "download"

obtuse gale
#

๐Ÿคฆ

half harness
#

sorry

#

is there a way to open it in intellij?

#

bc the decompiled files dont have a pom project classpath or gradle file

#

nvm

obtuse gale
#

Just.... open it?

half harness
#

u can do that?

#

๐Ÿ˜ฎ YOU CAN!

#

thx thx thx

obtuse gale
#

Isn't there a button in IntelliJ that reads something like "Open existing project" or something

half harness
#

i just pressed open

#

hm

#

whys it taking so long?

obtuse gale
#

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

#

Indexing everything probs

half harness
#

uh

#

?

#

AH

obtuse gale
#

Idk never seen that

umbral mica
#

Decompiling isn't that difficult, all you need is WinRar or another unzipping program, and IDEA. Just unzip the jar and dump the contents into a folder, then open that folder in IDEA. IDEA has a built in decompiler for .class files

half harness
#

wut

#

rly?

obtuse gale
#

Yea

half harness
#

._.

#

btw u dont need winrar

#

but how do u decompile with IDEA?

#

do I just open? or...

obtuse gale
#

btw u dont need winrar
Not exclusively winrar.

umbral mica
#

Just open the folder in IDEA, then open the .class like you would a normal non-compiled class

half harness
#

Not exclusively winrar.
@obtuse gale All you need is an app to open files such as file explorer ๐Ÿ˜„

obtuse gale
#

Any archive explorer does it

half harness
#

bc a jar and zip are the same

obtuse gale
#

I know...

umbral mica
#

Yeah as long as it can take the files out of the JAR and spit it into a folder, that's all you need

half harness
#

just different extensions and uses

obtuse gale
#

Omg

half harness
#

๐Ÿ™‚

#

then

#

file explorer can extract

#

theres an extract button ๐Ÿ™‚

umbral mica
#

yup

half harness
#

and most file explorers have that

umbral mica
#

extract to folder, rclick folder -> Open folder as project in IDEA

#

then just browse around the file tree in IDEA like normal

#

do keep in mind that decompilers aren't perfect though, especially if the devs have taken efforts to make it difficult

half harness
#

extract to folder, rclick folder -> Open folder as project in IDEA
@umbral mica cant find

umbral mica
#

Then just open the folder as a project normally

half harness
#

wat

#

how do u get to that

#

for me it just opens the project

umbral mica
#

File -> Close project

#

(Deleted cause I still somehow managed to leak my name despite redacting the entire projects pane lol)

half harness
#

thx

#

welp

#

but it was blurred

#

๐Ÿค”

umbral mica
#

no I was hovering over a project and it shows the full path name

half harness
#

oh

#

rip

umbral mica
#

actually nothing I even needed to redact in there lol

#

actually no one thing

half harness
umbral mica
#

yeah well IDEA does a lot of stuff under the hood

half harness
#
    static byte[] encryptedContent() throws MalformedURLException {
        final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
```can this be malicious
#

wait

#

whats that code do?

ocean quartz
#

Define malicious

half harness
#

"accessing a web or something that is not something because this plugin doesn't use the web or any external thingy"

#

or "messes with files"

#

anywa

#

ima delete that class :p

umbral mica
#

OutputStream
That's writing something somewhere

half harness
#

uh

#

๐Ÿ˜ฌ

umbral mica
#

and given the exception, it's probably somewhere on the web

#

did you get given a free anticheat to test or something?

half harness
#

lol I didnt put in spigot jar and I have 2.3k errors

#

everything.. for now I'll keep secret ๐Ÿ™‚

obtuse gale
#

and given the exception, it's probably somewhere on the web
Or another jar

umbral mica
#

Curious what this is lol

#

true fefo

half harness
#

Or another jar
@obtuse gale ๐Ÿ˜„

#

this should be a trusted jar tho

umbral mica
#

i.e. the server jar

half harness
#

;-;

#

anyways

obtuse gale
#

i.e. the server jar and every other plugin jar lol

umbral mica
#

yeah just inject a tiny couple lines to download & run a plugin on every server start, you'd probably need to nuke the entire server to fix it

half harness
#

btw

#

I have a question

compact perchBOT
#

There is no time to wait! Ask your question @half harness!

half harness
#

a very debatable question

#

(maybe)

#

Should I...

#

use plugman...

umbral mica
#

No.

half harness
ocean quartz
#

Dont

umbral mica
#

burn it.

half harness
#

lemme restate the question then

#

should I
make a backup then use plugman...

#

to figure out what plugin is causing random chat messages in my server?

ocean quartz
#

Like legit burn plugman, don't even mention it

half harness
#

its just blank messages

#

;-; in this case it can be useful

ocean quartz
#

It is never useful

half harness
#

as it takes over 5 minutes for the server to startup

#

and 90+ plugins

ocean quartz
#

Don't test plugins on a huge server

half harness
#

its not out for release

#

bc of thiss

#

i uh

#

may have used plugman to uh

#

disable every single plugin then enable.. and the issue was gone

#

and so that took out half of the plugins

#

and obviously I had made a backup beforehand ๐Ÿ˜„

#

idk if the backup was worth it tho

#

for a 2.1 GB size server

#

can plugman rly do any damage after restarting server?

surreal quarry
#

plugman can always do damage

half harness
#

so it was worth making a backup?

#

that's good

surreal quarry
#

its not likely but like if plugman breaks something permanent then yea it could break things permanently

obtuse gale
#

> if plugman breaks something permanent then yea it could break things permanently

#

10/10

surreal quarry
#

yes

#

big brain

remote goblet
#

Plug man is honestly never a good idea to use

half harness
#

๐Ÿ˜ฆ

obtuse gale
#

Especially on big servers

#

Especially in prod

half harness
#

its indev

surreal quarry
#

its only good on massive servers in prod

#

it usually causes no issues then

#

it causes the most issues on small dev environments

half harness
#

๐Ÿ˜•

steel heart
ocean quartz
#

Fabric good

steel heart
#

there is like 100 dependencies lol

ocean quartz
obtuse gale
#

Nyan cat progress bar

#

Epic

hot hull
#

Bruh what

ocean quartz
#

Best plugin for IJ

hot hull
#

What's the name

obtuse gale
#

Nyan cat progress bar

#

Lol

hot hull
#

bruh if only I wasn't a fucking pepega

quiet depot
#

a what

#

what is a pepega

hot hull
#

Was trynna figure out why two different instances share the same inventory, and then I forgot it was static ;C

quiet depot
#

k

hot hull
#

Now to figure out how to efficiently have them proc stuff

#

No

#

Forgot to release shift smh

#

yes

#

I code in Australian

#

Upside down

lavish notch
#

I code in Scottish

#

Right-side up

obtuse gale
#

.-.

elder mist
#

how can i get into contact with glare, he doesn't respond on spigot ๐Ÿ˜ข

hot hull
#

If it's anything urgent I can forward it, otherwise send him a FR here and ask him in DMs

elder mist
#

Alright ill send him a friend request thanks ๐Ÿ˜›

obtuse gale
#

hallo can i have halp login to mail on outlook on phone please kthx xoxo

onyx loom
obtuse gale
#

got it working thanking yous

dusky drum
#

nvm

#

fixed.

heady birch
#

@frigid badge Any way I can regenerate all primary keys on my database (move away from the hibernate way)

#

@frail glade Did you ever use Spring Data Jpa?

frigid badge
#

wdym?

#

you want to move away from hibernate as in id generation?

heady birch
#

Yeah

#

It's using a single auto increment value for all tables

frigid badge
#

then you donโ€™t need to regenerate a primary key

heady birch
#

Which makes 0 sense when some IDs are int,. some are long

frigid badge
#

just tell hibernate to use a different strategy

heady birch
#

And... that would work?

frigid badge
#

yes

#

GenerationType.IDENTITY

#

is what you want

heady birch
#

Yeah i'm aware of that... but switching halfway through ๐Ÿ˜ฌ

frigid badge
#

it uses SEQUENCE by default and that uses a value from information_schema.blabla.blabla

heady birch
#

Yeah.. which for some reason are all the same value. I would have expected it to keep sequence for each individual table

frigid badge
#

just query your entire dataset, and reinsert it

heady birch
#

sql

frigid badge
#

yup

#

you can use code

#

or pure sql

#

code is easier

#

but please use batch inserts btw

#

not one entry per query cause that is slow

heady birch
#

Cos eventually hibernate will run out of IDs

#

But then I also underestimate the true size of a long

dusky drum
#

why is php so stupid?

#
2020/10/29 13:47:36 [error] 62426#62426: *109 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: name in /var/www/html/comic/incl/upload.php on line 6PHP message: PHP Notice:  Undefined index: nsfw in /var/www/html/comic/incl/upload.php on line 7PHP message: PHP Notice:  Undefined index: release in /var/www/html/comic/incl/upload.php on line 8PHP message: PHP Notice:  Undefined index: algorithm in /var/www/html/comic/incl/upload.php on line 9PHP message: PHP Notice:  Undefined index: thumbnail in /var/www/html/comic/incl/upload.php on line 10PHP message: PHP Notice:  Undefined index: pages in /var/www/html/comic/incl/upload.php on line 11" while reading response header from upstream, client: +++++++++, server: *******, request: "POST /incl/upload.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "*******", referrer: "http://********.cf/addcomic.php"
      <form class="uploadcomic" id="uploadcomic" method="post">
        <span>Name of the comic</span> <input type="text" name="name" placeholder="Comic name" required>
        <span>NSFW rating:</span> <input type="number" name="nsfw" value="0" placeholder="0" required>
        <span>Should release:</span> <input type="checkbox" name="release" required>
        <span>Sorting algorithm</span> <input type="number" name="algorithm" value="0" placeholder="0" required>
        <span>Thumbnail picture</span> <input type="file" name="thumbnail" required>
        <span>pictures</span> <input type="file" name="pages[]" value="" multiple required>
        <button type="submit" name="button">Upload</button>
      </form>

=?=?

heady birch
#

Lol just use Spring

dusky drum
#

)=?ล 

frail glade
#

@heady birch I'll be honest, idk off the top of my head

#

I know we did some stuff with spring

#

Idk about jpa

frail glade
#

Might be less than 2 hours away from 1.16.4 ๐Ÿ‘€

distant sun
#

anything kool?

frail glade
#

If there's an NMS change.... Whelp ๐Ÿ˜‚

#

At least one of the Deluxe series plugins will be ready to go.

distant sun
#

none :^)

frail glade
#

Menus is already ready to go

distant sun
#

was hex fixed? I remember trying a dev build and it wasn't parsed

frail glade
#

Pretty sure it's fine

shrewd patio
#

have my messaje has been deleted?

frail glade
#

Yes.

#

You already asked in another channel.

#

Wait there.

frail glade
#

Whelp. They just pushed the update back to next week.

hot hull
#

kek

heady birch
#

Is it nms changE?

frail glade
#

Unsure.

heady birch
#

Look's like it might be

ocean quartz
#

Oooh this is cool, adding an enum, it'll work with any enum without needing to specify the class, will return the default if wrong enum is introduced
Used to be: Property.create(TestEnum.VALUE1, TestEnum::class.java)

obtuse gale
#

what?

ocean quartz
#

What what? xD

static zealot
#

Nice. I like that.

half harness
#

is it possible to get players from all bungeecord servers?

steel heart
#

yes

obtuse gale
#

ver 1.16.2

#

1.16.3*sry

ocean quartz
prisma wave
obtuse gale
half harness
#

is it possible to get players from all bungeecord servers?
how?

surreal quarry
#

google machine is insane

eternal compass
#

Anyone know of a server-side raytracting library/plugin, to prevent freecam/xray of entites?

half harness
#

im the worst at google searching ;-;

ocean quartz
#

Literally bungeecord all players will take you to what you need

half harness
#

uh

#

whoops

obtuse gale
#

Anyone know of a server-side raytracting library/plugin, to prevent freecam/xray of entites?
World#rayTraceEntities?

eternal compass
#

Does that work well?

#

And include glass

ocean quartz
#

As well as it can

eternal compass
#

Ok

obtuse gale
#

Why wouldn't it work

#

I mean

eternal compass
#

I meant like is it reliable

obtuse gale
#

Yes..?

eternal compass
#

Ok

#

Ty

obtuse gale
#

Why so doubtful lol

eternal compass
#

I was told I would need to write a raytracing engine :P

#

So i asked here first

ocean quartz
#

Can't trust spigot xD

surreal quarry
#

Can't trust spigot xD
thats a lie spigot is perfect in every way

ocean quartz
obtuse gale
#

IIRC it calls the same method vanilla uses to check if an entity is in another entity's line of sight

eternal compass
#

Does that work partially?

obtuse gale
#

"partially"?

eternal compass
#

Like if you can only see some of the player

#

Or they're sleepign, and you only see their legs

obtuse gale
#

It's based on the bounding box

#

And you can set a scale factor

eternal compass
#

Ok!

half harness
surreal quarry
#

it kinda ... explains it?

half harness
#

im confused

surreal quarry
#

you need a bungee plugin for plugin messaging to work, but just follow their tutorial exactly

#

and it will get you to the right spot

obtuse gale
#

You don't need a bungee plugin for those "response commands"

half harness
#

???

#

now im extra confused

ocean quartz
#

Is that what he wants though? Isn't it just BungeeCord.getInstance().getPlayers()?

half harness
#

I never used whatever these things are called ByteArrayDataInput in = ByteStreams.newDataInput(message);

surreal quarry
#

dkim are you writing a spigot or a bungeecord plugin

half harness
#

uh

#

idk

#

its for a bungeecord server

surreal quarry
#

what api are you using...

half harness
#

to get all players

#

on

#

im not in intellij rn

surreal quarry
#

bruh

obtuse gale
#

What kind of plugin is this

#

Where will it run

half harness
#

idk

obtuse gale
#

Where do you drop the jar

surreal quarry
#

is this plugin being placed in bungeecord plugins or spigot plugins

half harness
#

never made a bungeecord plugin

surreal quarry
#

then i would assume its spigot

half harness
#

just a command /players to see how many players are online the whole network

surreal quarry
#

it would probably be better as a bungeecord plugin then but if its spigot you will need to use plugin messaging

obtuse gale
#

That's going to be way easier as a Bungee plugin tbh

half harness
#

idk the difference

surreal quarry
#

one runs on bungee, one runs on spigot

half harness
#

never made a bungeecord plugin before, dont know how it works

surreal quarry
#

its basically the exact same

#

with some minor changes

obtuse gale
#

The BungeeCord API is highly inspired in Bukkit API

#

Of course there are differences, but you'll find it somewhat familiar

ocean quartz
#

Good inspiration dios

obtuse gale
#

XD

#

It's md5

#

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

half harness
#

uh

#

whats md5

normal talon
#

omg

half harness
#

?

normal talon
#

the creator of spigot

ocean quartz
#

Encryption method

half harness
#

oh

obtuse gale
#

My room smells weird

normal talon
#

weed ?

ocean quartz
#

Stop farting

obtuse gale
#

Actually cozy is right XD

For legal reasons this is a joke fingerguns

surreal quarry
#

your pc saw your code and shit itself

#

its normal

#

For legal reasons this is a joke fingerguns
too late already called to cops

obtuse gale
#

Oh no

#

โ˜น๏ธ

#

Oh

normal talon
#

what is the number ?

#

911 or 112 ?

surreal quarry
#

42

normal talon
#

rlly

#

that short

surreal quarry
#

oh 911

obtuse gale
#

999 in some weird places on Earth

#

Pff

surreal quarry
#

tf

obtuse gale
#

Brits

#

Amirite

surreal quarry
#

999 999 9999

#

for a good time

prisma wave
#

999 in some weird places on Earth
@obtuse gale you've got some nerve

obtuse gale
#

LAFF

surreal quarry
#

just move to america lul

prisma wave
#

999 is consistent

#

911 is dumb

surreal quarry
#

999 is wack

#

imagine typing the same number three times

steel heart
#

I just made the best code

surreal quarry
#

oh boy

ocean quartz
#

Make the police number 420

surreal quarry
#

conclure i bet mine is better

steel heart
#

nah

surreal quarry
#
println("Hello World")```
#

no bugs

#

ill sell it to you

steel heart
#
"Hello World" <- print
surreal quarry
#

-1

steel heart
#

mine is better

surreal quarry
#

no

steel heart
#

late operations exist in mine

#

not urs

surreal quarry
#

mine has syntax highlighting tho verycool

steel heart
#

just jealous

normal talon
#

System.out.println("Bye World");

surreal quarry
#

hey BM call 999

#

he needs help

steel heart
#

int main() { cout << "isnt c like this"; return 0; }

surreal quarry
#

yea i think so

steel heart
#

@obtuse gale

obtuse gale
#

@steel heart

steel heart
#

Is that valid c code?

obtuse gale
#

no

steel heart
#

whats valid then?

surreal quarry
#

using namespace std;

obtuse gale
#
#include <stdio.h>
int main(){printf("this is c");return 0;}
#

damn

#

look at all those colors

steel heart
#

is it C# then that has the cout and cin

surreal quarry
#

c++

#

right?

steel heart
#

idk

#

@obtuse gale

obtuse gale
#

yeah c++

steel heart
#

ok @obtuse gale

obtuse gale
#

std::cin and std::cout

#

@steel heart ok

surreal quarry
#
#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}```
#

cOLOr

steel heart
#

aa nice @obtuse gale

obtuse gale
#

@steel heart

#

intellij or eclipse

steel heart
#

stop pining @obtuse gale

#

intellij

#

eclipse fucked me up

obtuse gale
#

@steel heart ok

steel heart
#

@obtuse gale pls stop

obtuse gale
#

@steel heart no

steel heart
#

@obtuse gale u have chosen death

obtuse gale
#

@steel heart yes

steel heart
#

@obtuse gale then die

obtuse gale
#

@steel heart โ˜น๏ธ

steel heart
#

@obtuse gale stopthecap

steel heart
#

me trying to code something:

obtuse gale
#

OMG

#

SO TRUEE

#

totally ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

#

that's meeee

#

๐Ÿ’ฏ๐Ÿ˜‚๐Ÿ˜ญ

steel heart
#

sadly me as well

obtuse gale
#

duuuude

#

that gif is OOOLD

steel heart
#

this one as well?

obtuse gale
#

omg

#

trip to the past

dawn hinge
#

what did the table do to him :(

obtuse gale
#

you don't want to know

dawn hinge
#

yeah probably

obtuse gale
#

4.12 in the morning

#

Could be better

night canyon
#

what is the best code editor to use for a newbie? except notepad++

regal gale
#

Depends

#

VSC is one of the common out there

obtuse gale
#

depends what code ur editing lol

distant sun
#

^

quiet depot
#

what is the best code editor to use for a newbie? except notepad++
@night canyon sublime text

normal talon
#

yes

#

What I heard it can handle more players

gilded basin
#

none, I use both on different servers - with the updates Leaf added to Paper, paper is pretty close now. I do not have large numbers and both work really really well

obtuse gale
#

at this point, tuinity is just testing grounds for paper lol

#

dk, never used it so ยฏ_(ใƒ„)_/ยฏ

prisma wave
#

that's the point

#

it's for high playercounts

lavish notch
#

Needing a little help here... (Java)

final Map<Material, Map<Short, Integer>>[] soldMap = new Map[]{new EnumMap<>(Material.class)};

I'm wanting to change Material to ItemStack but I have issues when doing so, might someone know what to do?

obtuse gale
#

what on earth is that

lavish notch
#

A map of sorts

obtuse gale
#

an array
of maps
that maps materials
to maps
that maps shorts to ints

#

w h a t

#

what are you trying to do in the first place, what is that even for

lavish notch
#

Material Name, Material Damage and Material Quantity

hot hull
#

Please don't do that

#

Just please don't

lavish notch
#

How else am I meant to do it?

hot hull
#

Make an object or some shit

lavish notch
#

You think I have the brain capacity for that?

hot hull
#

Takes less effort than with that fuckery

lavish notch
#

Show me

hot hull
#

I don't spoon feed ๐Ÿ˜Ž

lavish notch
#

How's about a PR?

oak coyote
#

Just learn how to do object based coding please

#

That hurt to read

umbral mica
#

if you're having to nest that many things, you're probably doing it wrong

lavish notch
#

I'll make a very bold statement - I learn through spoon fed code.

oak coyote
#

Or if you are lazy just have a few maps which all rely on keys to get the information you need

#

Nobody gets actually taught by spoon fed they get taught by the actions they take after the speed feed or not that is why we avoid it

umbral mica
#

Give a man a fish, and he has food for a day. Teach a man to fish, and he has food for life

static zealot
#

Teach a man how to fish and he's going to die hungry because he doesn't have with what to fish ....

#

Spoon feed the man you lazy people xD

oak coyote
#

No

#

Actually you know fine

#

We will make an object for him

#

He wonโ€™t know how to use it but fine

static zealot
#

it was a joke sad_fingerguns

lavish notch
#

I bet 10$ I'll work out the spoon fed code within 10 minutes

#

...unless you intentionally make it hard to understand

oak coyote
#

public class MyItems {
private Material material;
private short damage;
private int quantity;

public MyItems(Material material, short damage, int quantity) {
this.material = material;
this.damage = damage;
this.quantity = quantity;
}

ocean quartz
#

The problem is not the code itself, it's the effort to learn the process to get to the point of the spoon feed
If you take a shortcut you will get there earlier but won't know the right way to what you wanted to do then soon enough you'll be back asking a very similar question that could have been solved by learning instead

oak coyote
#

This is sudo code cause I wrote it on my phone

#

You will have to create the getters yourself

#

And I take his bet idrc if you fully understand object based coding from my one sooon feed I will pay you $10

obtuse gale
#

bet you $10 that you won't pay me $20

ocean quartz
#

Funny how damage is a short and quantity is an int, while damage tend to be more than 1k and quantity tend to be capped at 64, oh minecraft kek

oak coyote
#

Yeah it really is stupid ngl

hot hull
#

bruh it took me 3 fresh starts to get a menu working perfectly

oak coyote
#

Oof what was up with it?

static zealot
#

you know what they say. Third time's a charm

oak coyote
#

My third relationship was the worst one so I wouldnโ€™t be so sure

hot hull
static zealot
#

hey at least you got to 3 relationships

hot hull
#

Not really an "ayy" Blitz

#

The less the better fingerguns

oak coyote
#

So frosty I presume that just stops you picking up certain items?

hot hull
#

mhm

oak coyote
#

That is nice I do like stuff with QOL in mind

hot hull
#

It goes by material right now so might have to change it so stuff like potions and shit like that can also be toggled

oak coyote
#

Damage values ๐Ÿ˜‚

#

Enjoy that there is only a few

#

You could make submenus for that frosty @hot hull and have it go orange if some of those materials sub items are blocked but others arenโ€™t

hot hull
#

ew that'll probably be even more fuckery

#

Cause right now I have to handle all the menus stuff myself cause mfgui doesn't support what I'm doing

oak coyote
#

Itโ€™s better than having a 25 page list to go through surely ๐Ÿคทโ€โ™‚๏ธ

#

I always handle my own menus so that isnโ€™t really something I consider

#

I hate relying on others code

hot hull
#

Yea nah I don't have the patience to fuck around with spigot's fuckery

normal talon
#

with what then ๐Ÿ˜ฆ

lavish notch
#

How come this is true, when it's blank...

#

if(materialItemStack.getItemMeta().getDisplayName() != null) { CODE }

static zealot
#

you probably have set the display name to blank before?

lavish notch
#

Straight from the creative inventory

ocean quartz
#

"" != null

lavish notch
#

Ok

ocean quartz
#

Empty isn't null is what i am trying to say

hot hull
#

Check if length is 0

lavish notch
#

Good idea

ocean quartz
#

String#isEmpty

static zealot
#

bad idea

hot hull
#

or that

lavish notch
#

Same thing

static zealot
#

nope.

ocean quartz
#

God, Gson's serializer is so complicated has a bunch of futures and threads all over the place

prisma wave
#

Since when?

#

I thought it was all sequential

ocean quartz
#

Also uses concurrentmap so i'm assuming it does some async stuff somewhere else too

prisma wave
#

Huh

#

Unless it's just to make sure that the Gson object is thread safe?

#

I don't see how you could use multiple threads for serialization

obtuse gale
#

Hey Matt I remember you making a hex parser of some sort and you had it up on github, could you link me it if you are not busy?

static zealot
#

?mf

compact perchBOT
static zealot
#

probably referring to mf-msg

obtuse gale
#

I don't know I just remember him coding it and showcasing it a bit a while ago

static zealot
#

yep that's it then

obtuse gale
#

Imma check it then

static zealot
#

its not just rgb.

#

it adds text markdown like discord's one

light venture
#

itโ€™s very cute

obtuse gale
#

Yeah I just needed the gradients part and I just remembered he coded it a while back

static zealot
#

yep that's where you find it then

obtuse gale
#

Damn that is quite a structured plugin

static zealot
#

well its not rly a plugin. Its a library to add to your plugins

obtuse gale
#

Yeah I mean that, the classes are well organized

static zealot
#

we'll we're talking about matt here xD

obtuse gale
#

It's so much I am still trying to find the part I am interested in haha

ocean quartz
#

What part do you need? @obtuse gale

hot hull
#

@prisma wave FJ no more fingerguns

prisma wave
#

๐Ÿ˜Ÿ

#

Wdym?

remote goblet
#

no more fj??

hot hull
#

:))

remote goblet
#

why SadCat

distant sun
#

Lol

prisma wave
#

wtf

#

I spent like an hour converting some of that to kotlin

#

And it was all for nothing ๐Ÿ˜ญ ๐Ÿฅถ

hot hull
#

Sucks to be you

prisma wave
#

why

past shoal
#

yo

#

help me

prisma wave
#

anyway what's the best alternative

past shoal
prisma wave
#

๐Ÿคจ

hot hull
#

I mean you can still use FJ lol, I just removed it from spigot cause I cba to maintain it

prisma wave
#

cba asked

#

Lol

#

Ok

#

I'm not sure it was working anyway lol

#

Join messages seemed unpredictable

hot hull
#

Nah it was you're just a 4head

prisma wave
#

Probably

onyx loom
#

deluxejoin is back ๐Ÿคจ

old wyvern
#

PixelJoins?

lavish notch
#

Ignore the fact I'm handling an event in the same class as onEnable... (I'm just playing around with things)

Any ideas why the PlayerDeathEvent isn't firing, or at least - I'm not receiving the message on death?
https://hastebin.com/lesasacuni.java

#

Server Version: 1.8

remote goblet
#

cus 1.8 stupid

lavish notch
inner umbra
#

Is you're onEnable method even running?

remote goblet
#

get with the times fool

lavish notch
#

@inner umbra Lmao, didn't notice that

#

(It hasn't loaded)

inner umbra
#

๐Ÿ‘

#

Check the plugin.yml for errors

lavish notch
#

My lord I must have been asleep, I didn't even make a plugin.yml

inner umbra
#

lol

past shoal
#

@lavish notch cute kitten

lavish notch
#

Mhm

past shoal
#

bitch wdym mhm

lavish notch
#

I was agreeing with your statement.

past shoal
#

oh

eternal blade
#

why vanilla items doesnt have displayname when i call the method it is returning ""

prisma wave
#

displayname is only for custom names

lavish notch
#

I already worked it out haha

inner umbra
#

You didnt register the event
Yes he did lol. He didn't have a plugin.yml

hot hull
#

Don't let me down boys.

#

E.

onyx loom
#

lara?

prisma wave
#

๐Ÿ‘

hot hull
#

No..

#

E

#

A

#

Sports

onyx loom
#

its in the game.

light venture
#

h out

obtuse gale
#

h in

light venture
#

s

#

shin, shout check mate

hot hull
#

@quiet depot :O

quiet depot
#

its 3 am and time to code

#

and accept prs

#

haven't worked on papi in yonks

hot hull
#

No papi contributor role, me sad

#

:O

obtuse gale
#

are images not allowed?

quiet depot
#

use imgur

#

=imgur

compact perchBOT
#
Uploading Images

Please use imgur to share screenshots and other images.
โ€ข Imgur

obtuse gale
#

will do

#

I just started out wanting to make a plugin and was following a tutorial, my java skills arent very good and im getting these errors on intellij https://imgur.com/BcgbgMD

quiet depot
#

do you need nms?

obtuse gale
#

i have ran bukkit buildtools but it didnt seem to fix it

#

yes

quiet depot
#

try using spigot instead of bukkit

obtuse gale
#

I'm trying to follow some tutorials on making npcs since citizens is just way too laggy

#

im using both, am I not supposed to do that?

quiet depot
#

no

obtuse gale
#

ah

#

im guessing spigot has bukkit integrated then

quiet depot
#

ye

obtuse gale
#

oh its working now

#

i feel so stupid, thank you and sorry for wasting your time

compact perchBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

obtuse gale
#

@obtuse gale

#

Hi

#

All g

#

I need

#

Uuh

#

Sleep

#

XD

#

No

#

I just need more

#

It's weekend so I guess I can give myself a treat

old wyvern
#

Dont

hot hull
#

Bruh all I hear you fucking say all the time is that you're sleeping or going to sleep

old wyvern
#

hes from the government, hes forcing you to sleep to keep you in the matrix

hot hull
#

Wake yo ass up @obtuse gale

old wyvern
#

Stay awake for a few months

#

You will wake up in the real world

obtuse gale
#

wat

old wyvern
#

Good for you

light venture
#

pog

obtuse gale
#

K bye

light venture
#

k

old wyvern
#

Go

#

Go

light venture
#

bless ya heart your from the uk i assume too

#

wales?

#

scotland?

#

ireland?

#

oh but uk is 8 so i thought

#

oh i thought you saying itโ€™s 8 rounding up what people normally do

onyx loom
#

germany

hot hull
#

it's 9pm for me as well

#

Und ich spreche deutch zer gut

#

I'm not from Romania

onyx loom
#

damn, he just said ur german sucks kek

hot hull
#

I took a class 1 year

#

Barely passed it, that was like 6 years ago

#

No

#

Is the third time the charm or are you gonna miss again?

onyx loom
#

bulgaria Kappa

#

slovakia @hot hull ๐Ÿ˜„

#

no its not

#

its not

static zealot
#

england

hot hull
#

Wrong

#

Close, but wrong

#

Slovenia*

onyx loom
#

SLOVAKIA

hot hull
#

Kali you're dumb

#

Just beyond help dumb

onyx loom
#

i know its slovenia ๐Ÿ˜

#

but SLOVAKIA

hot hull
#

What's up with slovakia?

static zealot
#

how is england close to slovenia?

hot hull
#

Who said it was close?

static zealot
#

you said frosty. Unless the message was not ment for mea

#

me*

hot hull
#

It wasn't no

#

Blitz is from Romania

static zealot
#

ye I do.

#

I live across the street

#

from you

#

I've been living there for 2 years now. Got tapes with you going home every day

#

I used to live home

#

but now I'm homeless xD

#

So germany bascially

#

6 hours of flight you mean

#

is google maps your friend?

old wyvern
#

phhh

#

1 second teleporting

static zealot
#

A wild yugi appears out of nowhere.

#

so you want to teleport into the void huh? xD

old wyvern
#

Teleport the human to mars

#

Better yet, out of the visible universe

static zealot
#

nah. we ded if we go there

old wyvern
#

How would you know tho?

#

There may be viable planets out there

static zealot
#

mars is a human destruction bomb waiting to detonate.

old wyvern
#

There maybe weird aliens made of uranium 236 out there

#

god knows

#

Yes it does efefury, I just teleported out of quarentine with that

light venture
#

i have an opa

#

efe opa

#

opa?

old wyvern
#

Coffee

light venture
#

grandad

old wyvern
#

Coffee for dayz

light venture
#

yes

#

i have a opa

old wyvern
#

Ola

#

Whats opium then?

#

Grandpium

light venture
#

heโ€™s old fashion german not old old but very stubborn type of old

#

my opa is my step grandad from germany

#

nah all i know is opa and chiss chiss i definitely butchered the spelling but bye bye

hot hull
light venture
#

how do you spell bye bye in german

#

i can pronounce it just not type it

hot hull
#

Au something

old wyvern
#

There you go frost

hot hull
#

Poggers

old wyvern
#

๐Ÿ˜‚

light venture
#

hands up in the air some times singing ayyo but not today yo

hot hull
#

Anyhow I'm going to sleep

#

Bye

light venture
#

donโ€™t let blitz in

#

he maybe cuddly but he shall kill

old wyvern
#

let blitz = in

light venture
#

yes but he is the man who killed john wick

old wyvern
#

No semicolons in elara

#

Kill em

#

There we go

light venture
#

๐Ÿค”

#

she / he is not elara mittens

old wyvern
#

Who is?

light venture
#

@prisma wave

prisma wave
#

good day

old wyvern
#

lmao what?

light venture
#

good night

old wyvern
#

xD

light venture
#

yugi has been brain twisted

prisma wave
#

๐Ÿ‘€

#

uk

light venture
#

wales

prisma wave
#

gross

light venture
#

yes

#

but you are from wales

old wyvern
#

she / he is not elara mittens
@light venture
Elara identifies as a "program" rather than he / she

#

Dont assume

light venture
#

turin program

old wyvern
light venture
#

uk no long eu

prisma wave
#

but you are from wales
@light venture absolutely not

light venture
#

longer

#

what part of uk

prisma wave
#

england

#

sorry to be boring

light venture
#

what county

old wyvern
#

Alex is in my basement

prisma wave
#

yep

#

isle of wight

old wyvern
#

Kidnapped him a week ago

light venture
#

oh near kent

prisma wave
#

idk

#

let me go please ive been working on elara for 36 hours straight

light venture
#

iโ€™m by the isle of man

prisma wave
#

ah yes

#

um

#

im not sure kent is that close

light venture
#

isle of man = a place where they buried people who had the plague

prisma wave
#

intriguing

light venture
#

yes

old wyvern
#

let me go please ive been working on elara for 36 hours straight
@prisma wave
You shall stay in the basement till its complete

light venture
#

sit stand in

prisma wave
#

^ every country

steel heart
#

Idk but it's not always easy to just close everything.

old wyvern
#

Meanwhile they lock me up in a hotel for 2 weeks

prisma wave
#

same here in a few days

steel heart
#

I mean Sweden is playing risky

#

They barely care about the pandemic more than we should wash our hands

light venture
#

uk is going into a 1 month lockdown

prisma wave
#

boris is saving christmas

light venture
#

boris is saving families

static zealot
#

I love sucking on onions.

prisma wave
#

i LOVE boris GREAt man

static zealot
#

They taste like my life.

steel heart
#

@ocean quartz ngl but fabric is the definition of OP

ocean quartz
#

Pretty simple explanation for that

#

@steel heart Ikr

light venture
#

old meme

obtuse gale
#

I'm trying to use NMS to create NPCs, the player entities show up in tab but not in-game sad_fingerguns

#

onions
@obtuse gale agreed

#

Yes

#

And I'm back

#

Somewhat yeah

#

It's like

#

18.10 xd

#

18.10 xd

#

6pm

umbral mica
#

what tz are you in lol

obtuse gale
#

Imagine using 12hs format

umbral mica
#

2:10pm go brr