#dev-general

1 messages · Page 64 of 1

remote goblet
#

ngl

floral basin
#

Then you try running it and going into the creative menu

#

I just tried it with only that one mod, and this is the first time using it on the twitch launcher, and it still went 🔻

remote goblet
#

still sounds like a you issue

floral basin
#

:l

steel heart
#

Okay what about a plugin that can make new plugins

remote goblet
#

Why though

steel heart
#

i don’t know

remote goblet
#

exactly

steel heart
#

I ALR SAID I GET USELESS STUFF IN MY HEAD

remote goblet
#

If you come up with dumb ideas for plugins that dont need to exist

#

but do

floral basin
#

thats literally like skript

#

people diss skript

remote goblet
#

thats how you end up with a dumb plugin like CraftHolograms

steel heart
#

Or

#

If

#

I remake a spigot har

#

Jar

#

For pvp performance

remote goblet
#

remake the entire of Bukkit and spigot

steel heart
#

Etc

#

Yes

#

Remake java

remote goblet
#

okay have fun

steel heart
#

Thanks

remote goblet
#

remake binary

steel heart
#

Remake universe

remote goblet
#

remake atoms

steel heart
#

Remake my brain instead

remote goblet
#

remake electrons and neutrons

steel heart
#

Hm

remote goblet
#

Remake minecraft

steel heart
#

Let’s just make something like better command api or smtng

remote goblet
#

and then you can remove 1.9 combat and then people would use the latest version as it has 1.8 combat ;P

#

no more 1.8 developers as they'd have no reason to be in 1.8

steel heart
#

I am

#

I’ve made cannon jars etc

#

It involves 1.7 and 1.8

#

Not saying it went well

#

But 1.8 devs isn’t ded

remote goblet
#

1.8 devs should be tho

frail glade
#

Alrighty you're getting muted, again.

remote goblet
#

sadpepe

frail glade
#

First it's 300+ plugins now it's 1.8 dev talk.

steel heart
#

🤡

#

Okay first of all who doesn’t love 1.8 like srsly

#

Just amazing

remote goblet
#

1.8 pvp is great

#

everything else about 1.8 just sucks

frail glade
#

I mean only on 1.8 was NBT stuff throw issues yesterday. Caused me an extra couple hours of work.

#

That didn't English.

steel heart
#

No weird pvp cooldown and absolutely no elytra

remote goblet
#

Elytras are cool as hell

steel heart
#

It’s trash

remote goblet
#

its amazing

steel heart
#

Oh god

remote goblet
#

Free fly anywhere you want? thank you sir

steel heart
#

Maybe we should add op for no oppd players as wel

#

Like why

#

Elytra is too op

#

And like the crying obsidian

#

Work good stuff mojang

#

Jeez

remote goblet
#

Minecraft is now turning modded

#

and i honestly love it

steel heart
#

Yes which is horrible

remote goblet
#

I like it

steel heart
#

It will end up being something like terraria

remote goblet
#

People keep forgetting

#

Minecraft is a survival game

steel heart
#

Sandbox

remote goblet
#

Survival game first

#

sandbox second

steel heart
#

I mean c’mon

remote goblet
#

PVP, Plugins, Servers are all external parts of Minecraft, Microsoft's primary concern will very much be keeping the survival aspect of the game fun and fresh, They aren't entirely bothered about anything that comes with it

compact perchBOT
#
✳️ Global Multiplier Expired!

The global multiplier has ran out and has been reset!

steel heart
#

Why

remote goblet
#

sadpepe

steel heart
#

Would u add

#

Bees

remote goblet
#

1.15 was a bug fixing update

steel heart
#

Polar bears

#

Yeah ik

remote goblet
#

but they had to add something

#

Bees add more possibilities to redstone with the honey block

#

and a new food source

steel heart
#

Just make a patch version of 1.14 jeez

#

1.14.3

remote goblet
#

1.14.3 is already a thing

steel heart
#

Okay

#

But u get it

remote goblet
#

I don't tho

steel heart
#

1.14.5

#

I don’t know

#

Major.Minor.Patch

remote goblet
#

They needed a major bug fixing update and people had wanted bees

#

they might not be the most spectacular thing

#

but they're something that are very useful to have

steel heart
#

Adding fun stuff that involves math would be nice

remote goblet
#

With honey blocks, with crop pollinating, with extra food source, ect

steel heart
#

More red stone components

#

Atoms

#

Neutrons

remote goblet
#

more redstone components is needed

#

all sciency shit can fuck off tho

steel heart
#

And caves

remote goblet
#

minecraft is fairly complicated but it dont need to be that complicated

#

MC Caves suck

steel heart
#

That is like 50% minecraft

#

Needs a revamp

remote goblet
#

1.16 is a great update so far

steel heart
#

Something that makes it worth going to a cave whatever the circumstances are

#

It’s decent

remote goblet
#

Other than the pigmen being renamed and retextured

#

it's great

steel heart
#

Target block

remote goblet
#

thats useless

steel heart
#

They should fix nether portal connections as well

remote goblet
#

nether portal connections seem fine to me?

steel heart
#

U srs

remote goblet
#

yep

#

never messed with nether portal connections so I cant judge them

steel heart
#

Creating portal a

#

Then creating portal b

#

Then c

#

It will fuck up

#

U will end up in same in the nether

remote goblet
#

You mean you dont like the fact you need to do actual maths to figure out the real connections?

#

the one thing that you just said you wanted more of? Maths?

steel heart
#

Yes

#

I mean make it so each portal connects to nether seperatly

#

Well gn

remote goblet
#

You make no sense sometimes

steel heart
#

It makes total sense my man

topaz bay
#

@prisma wave ??

#

no

frail glade
#

Ooo. Been working on potion support for DeluxeMenus but I might scrap it. It apparently doesn't work on all versions.

#

Actually we dropped support for 1.8.8 so I might as well finish it.

remote goblet
#

fuck anything lower than 1.13

frail glade
#

😛

topaz bay
#

More like anything lower than latest

remote goblet
topaz bay
#

@remote goblet you should do that with the bubble particle

#

its very good for creating "wires"

remote goblet
#

You do it

#

PlayerParticles is free on spigot :)

topaz bay
#

I've used it to create mercy's beam

#

also ew...

#

public plugins

#

cant relate

rotund egret
#

Imagine hating plugins because they're publicly available and no other reason :^)

remote goblet
#

You see

#

public plugins are fine

topaz bay
#

Imagine thinking thats the reason

#

Not all of them

remote goblet
#

if they're Esophose plugins weSmart

topaz bay
#

A large majority are trash

remote goblet
#

A large majority are trash ye

rotund egret
#

No surprise there

remote goblet
#

esophose plugins are greattho

topaz bay
#

I feel like I know that name, and I do not agree

remote goblet
#

and im not only saying that because she's lowkey mom

topaz bay
#

skyblock?

remote goblet
#

Ex developer of Songoda 😅

#

that was a sad time in life

topaz bay
#

I'm already looking at the git repo lol

#

Its not bad

remote goblet
rotund egret
#

Kinda want to port this to sponge for personal use

topaz bay
#

Although I do hate the mixture of braced and non braced statements

#

Kinda bad

remote goblet
#

🤷‍♂️

#

they also made Songoda's UltimateTimber all by themself

#

I love her honestly, she encourages me to quit making that Skyblock plugin

topaz bay
#

How does this not throw exceptions on missing plugins?

remote goblet
#

couldn't tell you honestly

#

lul

#

it's apparently not entirely stable yet

topaz bay
#

Oh, its their own classes nvm

remote goblet
#

it's completely async

topaz bay
#

Is that supposed to be an achievement? xD

rotund egret
#

Async particles 🤢

floral basin
#

Found the issue

#

Vic's MW doesn't like any forge version above 2769

#

interesting

remote goblet
#

idk

floral basin
#

I guess forge updated their renderer or something and it broke

remote goblet
#

it can handle 1m mobs stacked into one and doesn't save all the data inside nametags unlike some people Cough UltimateStacker Cough

topaz bay
#

Thats...

#

?

remote goblet
#

🤷‍♂️

#

UltimateStacker saves all its stack data inside the nametags soo

topaz bay
#

holy shit omg

#

wait Im so lost

remote goblet
#

?

topaz bay
#

It saves EACH entity serialized?!?!?

#

for WHAT!??

remote goblet
#

I DONT KNOW HONESTLY

topaz bay
#

I'm talking about this one thats supposedly better?

remote goblet
#

Figure it out yourself

topaz bay
remote goblet
#

RoseStacker stores everything in sqllite

#

generally

topaz bay
#

This literally keeps every serialized entity in a list in memory

remote goblet
#

wait lemme find what nicole saida about it

topaz bay
#

which doesnt make sense at all

#

If they are being stacked, they should be the same entity, you could just clone the current one and call it a day

remote goblet
#

🤷‍♂️

topaz bay
#

That means nothing to me

remote goblet
#

neither does it to me

#

Anyway its 3:30am

topaz bay
#

I would say its even more cancer to store literal copies of the entity in serialized form

#

Thats like storing copies of an itemstack inside of itself for however much the amount of that itemstack is

#

Instead of just storing the number

remote goblet
#

I don't know honestly lol

#

I support any plugin or developer that dont support Songoda kekW

topaz bay
#

yikes...

#

thats..... not good

remote goblet
#

i don't know if I could support someone who endorses child predators

#

but that's personal preferences

topaz bay
#

I'm not speaking on whatever the hell that is specifically

#

Just the thought of support out of opposition, kinda yikes

remote goblet
#

their plugins are mostly good concepts but not entirely executed well as they're usually made within a day or two and then released with 40 updates following the initial release

topaz bay
#

Sounds like.... all the plugins on spigot

#

And the whole in a day thing is not really bad per se

#

I can do quite a bit in a day

#

xD

remote goblet
#

When you throw that factor with them being terrible people

#

it's like

#

eh

topaz bay
#

LOL

remote goblet
#

most developers on spigot are half terrible

#

but songoda are on a next level

#

and they're not even on spigot kekW

topaz bay
#

¯_(ツ)_/¯

wicked shadow
#

how do i get tokenenchat to work with deluxe menus on a 1.12.2 server

quick flume
#

ohhh new channel

#

If you want support, I think use #development @wicked shadow ?

#

more people will probably see it

wicked shadow
#

ok

ocean quartz
#

Oh didn't see this was made

frail glade
#

If your config is this long, I will personally make sure you get smited the next time I see you in MC.

rotund egret
#

👀

#

That has to be storage of some kind

frail glade
#

It's actually a debug command I made.

ocean quartz
#

How big is the file?

frail glade
#

31MB

kindred hatch
#

omg

frail glade
#

Lol

#

I got it up to 3GB

#

File corrupteed

obtuse gale
#

Is this the channel where everyones gonna argue why intellij is better lol

#

And why kotlin is better

#

Both of those are true btw ^

#

Prepare to get dunked on by sx

#

Lol, can this channel be moved above #minecraft its kinda triggering me cos im so used to seeing it with minecraft next to off topic lol

quiet depot
#

yay

#

awesome channel

steel heart
distant sun
#

Wew is still here

hallow tide
#

oooo

foggy pond
#

I was so scared that the channel would be removed within 12 hours

glad copper
#

o new dev channel

steel heart
#

@Override
public void onEnable(this::onDisable) {

}

@Overide
public void onDisable() {

}```
#

Imagine this

prisma wave
#

that is physically sickening

distant sun
#

Lmao

remote goblet
hot hull
heady birch
#

Someone tell me what it means 😦

remote goblet
#

what does what mean

heady birch
#

onEnable(this::onDisable)

#

Is it like inheritance of ondisble

remote goblet
#

@pallid gale which language is @quick lava monkaS

pallid gale
#

still nodejs

remote goblet
#

burn it

#

sadpepe

#

:o

pallid gale
#

@quick lava's sole purpose is just to aid barry with spigot linking

compact perchBOT
#

@pallid gale, Sorry, could you say that again?

pallid gale
#

shush

remote goblet
#

lol

#

then where has development barry gone monkaS

pallid gale
#

hes locally hosted

#

so he only shows up when we need him running to test stuff

remote goblet
#

he's my favourite barry :o

#

but then in the screenshot it shows the webhook that the bots create dedicated to that specific system monkaChrist

heady birch
#

I'd do it for 20

pallid gale
#

psshttt

#

Its really not hard

#

I'll even show you how ours works

#

=notify

compact perchBOT
#

@pallid gale

Notify Command | Invalid format!

=notify <alert/info/warn/reload> <title>|<message>
Alert - Unscheduled maintenance/disruption
Warn - Scheduled/upcoming maintenance
Reload - Service Restored/Updates
Info - General Announcement

remote goblet
#

Id do it for free

hot hull
#

I'd do it for 500

pallid gale
#

499 and ill do it

remote goblet
#

I'd do it purely for the fun of doing it

pallid gale
#

But yeah its super basic

#

loads the webhook, posts to it

remote goblet
#

I'd even spice it up a bit and add reactions 🤷‍♂️

pallid gale
#

wew

remote goblet
#

wewww

pallid gale
#

Anyone happen to know off the top of their head how to join to mysql tables

#

and lining up the data based on a column

heady birch
#

Yes you absolutely need spring framework

remote goblet
#

I dont understand how some antiswear plugins have players bypass it with spaces thonking

frail glade
#

Yeah it's f u c k I n g stupid

distant sun
#

¯\_(ツ)_/¯

rotund egret
#

Chat filters in general are hard to make work properly

#

Swear filters*

#

View the Scunthorpe problem
Legitimate name, would get blocked by a regular filter.

runic flume
#

And when would someone say that in game? x)

desert horizon
rotund egret
#

It's an example, not a literal "find a way around this one word"

#

You could take my minecraft name for example

#

Something that would be said ingame
"AsexualDinosaur"

ocean quartz
#

One example, when people block political words like you know, Trump, you can no longer say Trumpet

frigid badge
#

that name longg

rotund egret
#

Yeah, tab completion Is a nice feature

#

I just hate that /give doesn't automatically target the user running the command if no user is specified
Feelsbadman

frail glade
#

For what, essentials?

rotund egret
#

Just regular minecraft
Sponges essentials plugin doesnt overwrite that command

frail glade
#

Ahh

#

Oh you're Sponge

rotund egret
#

Yeah, probably the only sponge guy in here lol

#

I assume you get commissioned for plugins?

#

Ah fair enough

#

I do the same

#

Cant say I blame you.
Youd probably be underpaid if you did

hot hull
#

People too broke to commission you

#

oof

#

Make an api for autosell

#

Clip is mia

#

full isolation mode

glad copper
#

Js, Autosell already has an api

#

o

hot hull
#

Why does the TE one work then?

#

:oshit:

#

❤️

distant sun
#

you can also get it from spigot btw frosty

hot hull
#

I can't I tried like 4 times, it doesn't compile when I import it with a jar

hot hull
#

If it requires 64bit I can't

#

smh

#

gotta say tho, either I'm blind or the Autosell's Multiplier objects class is not gonna help me either

prisma wave
#

bc java generics bad

frail glade
#

So with RC being out, does that mean it should be fully out within a week or so?

topaz bay
#

HA

#

A week

remote goblet
#

i should work on my plugin but I feel sick so i'd rather not

#

and no it's not corona :P it's just physically sick

topaz bay
#

@remote goblet "not corona"

#

ok

remote goblet
#

Yes

floral basin
#

Anyone know some good wiki site templates

#

Specifically for stuff like a modded server

remote goblet
#

Enjin kekW

dusk parrot
#

Because sinning = winning

floral basin
#

god no not enjin

remote goblet
#

@topaz bay

#

I have some cancer code for you

#

that i didnt write

#

and it isn't Island.java this time

#

uppercase packages

#

excessive else

topaz bay
#

@remote goblet ...

remote goblet
#

LMAOOO

topaz bay
#

@pallid gale add an arrow code command to barry with a link to this

pallid gale
#

tooo?

topaz bay
#

jesus christ

#

The more I look at it the worse it gets

pallid gale
#

o thats an arrow

topaz bay
#

I...

#

It hurts

compact perchBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

pallid gale
#

=faq

compact perchBOT
#

@pallid gale

FAQ • Invalid Usage

=faq <key>
=faq <add/edit> <key> <message>
=faq delete <key>
=faq raw <key>
=faq list
?<faq key>

pallid gale
compact perchBOT
#

@pallid gale, Added plsnoarrowcode to the faq.

pallid gale
#

Sx when you gonna join the spigot discord

#

and get mad at everyone

frail glade
topaz bay
#

@pallid gale I would rather die

#

Like... honestly...

pallid gale
#

lol

ocean quartz
#

That arrow

outer token
#

i need help with deluxetags

#

i changed the config to be essentials chat

#

and now i just shows {deluxetags_tag}

remote goblet
#

You also need ChatInjector i believe

#

cause Essentials sucks

distant sun
#

I would rather die
@topaz bay hf

foggy pond
#

Why doesnt everyone use Paper instead of Spigot

#

Jesus

#

There is no reason to use Spigot over Paper

obtuse gale
#

I'm using Paper

foggy pond
#

yeah, you bEtter

obtuse gale
#

Weird saying, but whatever

foggy pond
#

What

remote goblet
#

I dont think I will ever understand how to do tab complete

hot hull
#

It's easy

#

Want me to teach you?

remote goblet
#

thonking sure

hot hull
#

firstly, make a TabComplete class, (or whatever the fuck you wanna call it)

#

then make it implement TabCompleter

#

then add the tabcompleter method

#

and just check the shit you wanna check, return the shit you wanna return and register it

#

easy as that

remote goblet
#

bongo okeh

hot hull
#

want an example?

remote goblet
#

i'll figure it out

hot hull
#

k, cuz I got shit code

obtuse gale
#

😂

remote goblet
#

I really should fix this skyblock plugin 😩

topaz bay
#

@distant sun ????

frail lark
#

Good morning, sir,

I have a problem, when I put %pinger_online_testplugins.com:25565% and replace with my server's ip it doesn't work in the menu

Can you help me?

Thank you

hot hull
frail lark
#

Ah, okay Excuse me

obtuse gale
#

Did you know that VisualStudio19 includes a gradle project creator if you installed C++ development on the installer

quiet depot
#

people use gradle for c++?

#

TIL

obtuse gale
#

i mean java.

quiet depot
#

ah

#

well, who on earth uses visual studio for java

obtuse gale
#

C++ was makefile

#

idk.

#

people who create gradle init.

quiet depot
#

gradle init isn't coupled whatsoever to vs

obtuse gale
#

i mean you can create a gradle compiler thing.

quiet depot
#

you can do that in any competent java ide

obtuse gale
#

ok....

#

VS19 has makefile for C++

quiet depot
#

and intellij has gradle for java

obtuse gale
#

🅱️s 19

#

Hahaha funny me

quiet depot
#

intellij 2020 soon™️

obtuse gale
#

ree

quiet depot
obtuse gale
#

lmao.

jovial axle
#

Hi there, I am trying to learn how to create custom entities in spigot 1.15.2 and I cant find a decent guide or example. could anyone maybe recommend one?

remote goblet
rose dirge
#

I need some opinions on something.

Here is a rank system I made and I linked it to a GUI. It has taken me about an hour to code and I would like some opinions. Each wool block is a different rank and the enchanted wool is my current rank
https://i.imgur.com/6afz4CV.png

pale shell
#

Anyone know how to speed up building in intellij? I just want it to refresh the changed classes not all of them

distant sun
#

gradle

frail glade
#

Gradle has a caching option for that

prisma wave
#

pretty sure incremental compilation is already enabled

frail glade
#

Should be

#

So much nicer than maven 😂

prisma wave
#

I felt this

topaz bay
#

yikes

#

same

heady birch
#

That is far too accurate

topaz bay
#

shut up you

heady birch
#

😋 var uh.. let me just guess they type

topaz bay
#

Java has var too

heady birch
#

😐 Since when

lunar cypress
#

destroyed with facts and logic

#

10

heady birch
#

Eh I still use 7, 8 if I have to

topaz bay
#

Thats unfortunate...

#

For you...

lunar cypress
#

Well we all use version n if we have to use version n

#

That doesn't really say anything lmao

hallow tide
#

does var work with custom classes too?

lunar cypress
#

yes

hallow tide
#

oo

#

but its better to be typed right?

lunar cypress
#

It has some interesting and unique effects

#

It is typed

#

It's just so-called type inference

#

You need to initialise it immediately

heady birch
#

🥺

hallow tide
#

its like auto in c++

lunar cypress
#

exactly

hallow tide
#

im trying to imagine how its being done..

topaz bay
#

?

#

you tell it the type right there on the right side of the operand

#

its just a copy paste lol

hallow tide
#

oh

lunar cypress
#
var foo = new Object() {
    void bar() {
      System.out.println("Hello!");
    }
};
foo.bar();
#

This is one of the new var behaviour

#

wasn't possible before

#

I think it's quite interesting

hallow tide
#

i was about to say it will return an error

lunar cypress
#

You can't actually capture the type without var

hallow tide
#

wdym

topaz bay
#

the type would have to be Object

#

which doesnt define bar

lunar cypress
#

yeah

hallow tide
#

oh

lunar cypress
#

I mean, this is rather useless, but still it's interesting

hallow tide
lunar cypress
#

You can also capture intersection types without generic methods now

#

is it open source @hallow tide ?

hallow tide
#

mine or them?

lunar cypress
#

yours

hallow tide
#

its a private plugin

lunar cypress
#

ah i see

hallow tide
#

i could show you code if you want

#

its easy

prisma wave
#

Let's be honest var sucks compared to val

topaz bay
#

facts

hallow tide
#

val?

topaz bay
#

Dont even start me on final var

#

🤢

prisma wave
#

eww

topaz bay
#

I remember when var was first announced

hallow tide
#

Johnny but i dont know if my paging system works though , cause i only tested it on 1 page and cba to add more furniture just to test XD

prisma wave
#

val is is kotlin goodness

topaz bay
#

I was BEYOND disappointed they didnt include val with the same semantics

prisma wave
#

it writes itself

hallow tide
#

what is val...

topaz bay
#

kotlin

prisma wave
#

final var is ugly

lunar cypress
#

the same as var but final

prisma wave
#

Like var but final

#

val is is kotlin goodness
@prisma wave

topaz bay
#

is is

prisma wave
#

shut up

topaz bay
#

D;

prisma wave
#

mobile typing is hard

topaz bay
#

MY FEELINGS

lunar cypress
#

but the thing is I don't really have the need for such a type tbh

prisma wave
#

FACTS DONT CARE ABOUT YOUR FEELINGS

lunar cypress
#

I don't usually change local variables anyway

prisma wave
#

var is just a time saver

topaz bay
#

Intersection types?

lunar cypress
#

Nah, val

#

In kotlin i use it because it's idiomatic there but

#

like I don't miss it in java

topaz bay
#

everything should be final

#

always

prisma wave
#

it's idiomatic in Java too now

topaz bay
#

unless it needs to be non final

#

needs

lunar cypress
#

it doesn't really make a difference whether you make a local variable final or not

prisma wave
#

what if it asks nicely

#

it could do

topaz bay
#

It does for maintainability

hallow tide
#

well in the main class of a plugin nothing can be final except the getters and setters and other methods

lunar cypress
#

I think that's an overstatement

topaz bay
#

I think "doesnt really make a difference" is an overstatement

prisma wave
#

that's another annoying part of spigot

topaz bay
#

It may not make a difference

prisma wave
#

main class fields usually have to be non final

hallow tide
#

yeah

#

i hate that

topaz bay
#

But if its the way you code start to finish, maintenance and extensibility is astronomically easier

lunar cypress
#

I disagree

topaz bay
#

In regard to what?

lunar cypress
#

I agree in that immutability is good

#

But I don't think final local variables make a significant difference

topaz bay
#

Depends on the kind of programmer you are IG

lunar cypress
#

They are captured within a temporary scope

topaz bay
#

Its not about runtime though

lunar cypress
#

I know

topaz bay
#

maintenance and extension dont happen at runtime

#

If you want to extract a part of a function into another one, things being final makes lifetime tracking infinitely easier

#

oops, you forgot to take out the part 20 lines down that mutates the value of this field

#

that cascaded into another function that takes this value

#

oops, the entire codebase is fucked now

#

LOL

#

Hyperbole ofc, but still

lunar cypress
#

hmm

#

such a thing never happened to me

#

I'd use a val if it existed

#

But I don't need to make everything final now

#

manually

topaz bay
#

I mean... it just makes sense to mark non mutative references as non mutative

heady birch
#

Imagine if the string class was not final

topaz bay
#

Just from a logic standpoint

heady birch
#

Hehe

topaz bay
#

Enforce the implicit contract you have

#

I make intellij generate everything as final

#

¯_(ツ)_/¯

lunar cypress
#

Generate what exactly?

hot hull
#

Ever since someone yelled at me for not using final, I use it

topaz bay
#

class and variable definitions

hallow tide
#

i remember sxtanna yelling at me to final everything

#

someone asked me why do you final your methods its useless

lunar cypress
#

It is useless if your class is final

prisma wave
#

it's not entirely useless

#

^^

lunar cypress
#

and it hurts if you want to mock

hallow tide
#

wait you can make classes final?

#

why did i not know that

topaz bay
#

final methods on final classes is useless

#

But thats not what Im talking about

hallow tide
#

is it important to have classes as final?

topaz bay
#

by default, yes

hallow tide
#

i didnt know you can do that

lunar cypress
#

you can't say that in a general way

topaz bay
#

Yes I can

lunar cypress
#

if your class should and will never be extended, make it final

topaz bay
#

final by default, open for extension

#

If you want to have it extendable, make it non final

lunar cypress
#

Exactly what I said

hallow tide
#

lemme make an issue in all my plugins

topaz bay
#

No, you said the opposite

lunar cypress
#

if your class should and will never be extended, make it final

topaz bay
#

Youre implying final should be the modification

#

non final is the modification

lunar cypress
#

whatever

prisma wave
#

probably a bit late now

topaz bay
#

I mean I'm just saying...

#

There is a difference in that

lunar cypress
#

haha field = value

topaz bay
#

@prisma wave LOVE direct field access

prisma wave
#

yes

lunar cypress
#

You need to change the bow tie to a kotlin logo

prisma wave
#

good idea

#

although actually

#

kotlin is kind of direct field access...

#

or it looks like it

topaz bay
#

Kotlin doesn't have fields at all

prisma wave
#

indeed

lunar cypress
#

it does

topaz bay
#

It doesnt

#

It has properties

lunar cypress
#

of course it does. private "properties" are direct fields

topaz bay
#

No they arent

#

All properties are an abstraction over a field with a getter and setter

lunar cypress
#

bruh

prisma wave
#

JavaPlugin.getClass(Main.class).playerHandler.map = new HashMap<Player, Boolean>()

#

ez

lunar cypress
#

no

topaz bay
#

no setter for vals

lunar cypress
#

hold on, ima boot up javap

hallow tide
#

direct field access?

prisma wave
#

yes

hallow tide
#

what is it

prisma wave
#

Class#field instead of a getter/setter

hallow tide
#

static?

prisma wave
#

not necessarily

hallow tide
#

how would you do it without static

prisma wave
#

?

#
class A { 
  int x;

}
new A().x = 3;
hallow tide
#

if you say not necessarily

prisma wave
#

yes

hallow tide
#

wait thats possible?

prisma wave
#

yes?

hallow tide
#

oh because its public

prisma wave
#

it's package private

#

but yes

hallow tide
#

ah

#

btw im going on with gradle from now on as the MANIFEST.MF doesnt have your name YESS

#

makes stuff so much easier

lunar cypress
#

wtf is my kotlinc stupid?

topaz bay
#

probably?

#

the kotlin compiler is trash

lunar cypress
#

it just doesn't produce any class files anymore

prisma wave
#

you're trash

#

:)

topaz bay
#

oh... not that trash

prisma wave
#

jk jk

topaz bay
#

you broke it

lunar cypress
#

by contradicting properties :^)

topaz bay
#

My favourite thing about kotlin is jvm clashes

#

What about you guys?

hallow tide
#

ayy gg on leveling up

topaz bay
#

how tf did you see that before me

hallow tide
#

Johnny leveled up

topaz bay
#

oh we both did

#

lol

hallow tide
#

You leveled up?

#

wait what you were always cyan colour...

topaz bay
#

the colors are ranges of levels

lunar cypress
#
class Foo {
  private var field: String? = null
    
  fun bar() {
    field = "xyz"
  }
}
```results in:```
public final void bar();
    Code:
       0: aload_0
       1: ldc           #10                 // String xyz
       3: putfield      #12                 // Field field:Ljava/lang/String;
       6: return
prisma wave
#

I like all of the Jvm annotations

hallow tide
#

yeah im dumb xD

prisma wave
#

@JvmStatic, @JvmOverloads

#

tasty stuff

hallow tide
#

johnny tiered up

lunar cypress
#

no property there

hallow tide
#

you talking about bytecode?

lunar cypress
#

yes

prisma wave
#

yes

topaz bay
#

@lunar cypress No setter, because theres no definition of a setter

#

Its still a property

hallow tide
#

stuff that i barely know about nice

prisma wave
#

bytecode is cool

topaz bay
#

bytecode is trash

#

bitcode is better

prisma wave
#

no

topaz bay
#

:)

hallow tide
#

like internals of java i mean

prisma wave
#

screw you

topaz bay
#

D;

prisma wave
#

just experiment @hallow tide

#

poke around

#

see what stuff does

lunar cypress
#

The thing I was saying is that private "properties" without getter/setter become raw fields while public properties stay being properties, even without explicit getter/setter

hallow tide
#

what is the consequence if i dont have my classes final 😛

prisma wave
#

not much

#

sometimes you want classes final

hallow tide
#

when?

prisma wave
#

non-final*

hallow tide
#

oh

lunar cypress
prisma wave
#

classes should be final by default

hallow tide
#

by default?

#

so i dont have to do it?

prisma wave
#

no no

lunar cypress
#

no in java they aren't

topaz bay
#

medium...

prisma wave
#

as you should make them final by default

topaz bay
#

ew

hallow tide
#

Thanks Johnny

prisma wave
#

that's not advertising

#

pls don't ban me

hallow tide
#

oh

lunar cypress
#

medium...
@topaz bay excuse me I'll write an article for the new york times next time

prisma wave
#

medium sucks

#

the amount of medium articles I click only to see a paywall

hallow tide
#

lemme put it on my todo list

lunar cypress
#

The link I shared is a friend link

topaz bay
#

@lunar cypress that bytecode would be the same if it werent private btw

lunar cypress
#

you sure?

prisma wave
#

ah

lunar cypress
#

then i misremembered that, my mistake

topaz bay
#

Medium makes me want to vomit

#

And reddit programmer subs are like 90% medium links

#

It makes me sad

prisma wave
#

😦

#

crapdium they call it

topaz bay
#

shitium

hallow tide
#
Todo List
1. YOU STUPID MUST MAKE ALL CLASSES OF YOUR PLUGINS FINAL YOU STUPID
prisma wave
#

not all

hallow tide
#

why is it bad...

#

well none of my stuff are extendable

prisma wave
#

then they should be final

hallow tide
#

except when i implement api in rolesync

prisma wave
#

make that non-final then

#

simple

hallow tide
#

yeah why i said except

remote goblet
#

i never understood what final does

lunar cypress
#

depends on the context

topaz bay
#

Get this...

hallow tide
#

its like making something constant

#

immutable

topaz bay
#

It makes it final

#

OMG

#

Big shock

remote goblet
#

Sx

#

I will smack you

topaz bay
#

please do

remote goblet
#

👀

hallow tide
#
D;
MY FEELINGS
remote goblet
#

dont make me do it

prisma wave
#

I'll help

remote goblet
prisma wave
#

oh god

#

don't do it

remote goblet
#

:(

lunar cypress
#

to send this message you must've deleted the link again

prisma wave
#

true

lunar cypress
#

checkmate

prisma wave
#

hopefully that's a good sign

lunar cypress
#

oh lol i have a different colour now

remote goblet
#

I will:
copy the link
go back onto discord
paste it
and press send

hallow tide
#

why is it bad tho

topaz bay
#

is that a THREAT

remote goblet
#

YES

hallow tide
#

whats bad about it..

prisma wave
#

non final classes?

topaz bay
#

I like threats

#

:)

remote goblet
#

kinky

hallow tide
#

only?

remote goblet
#

Well

#

my threats are never empty

lunar cypress
#
/*
 * Here is just for me because I have gotten confused many times
 *
 * • You're defining the island methods
 * • So getRange() getMembers() ect
 * • Define size, players, upgrades, flags, everything.
 *
 * • This way you can use the methods across the plugin.
 * Jesus christ get yourself together
 */
```excuse me
remote goblet
#

suffer

#

Ignore that

#

at the first part of making that god awful file

hallow tide
#

can someone answer why is it bad

remote goblet
#

why what is bad

prisma wave
#

because a subclass could change vital functionality

remote goblet
#

Anyway, back to Island.java

prisma wave
#

NO

#

it's cursed

remote goblet
#

When making that file

topaz bay
#

Why enum map?

remote goblet
#

i got lost in what i was doing

#

and confused

#

I don't know

lunar cypress
#

can someone answer why is it bad
@hallow tide it's not as severe as they make you think unless you're really depending on security and code integrity

topaz bay
#

Instead of enum set

hallow tide
#

oh

remote goblet
#

hide

#

I'll switch it to EnumSet then >:(

topaz bay
#

if its in the enum set, that means the value is true

prisma wave
#

that may have been me

remote goblet
#

yeah

#

!

topaz bay
#

alex youre a 4head

prisma wave
#

i saw an enum and didn't even look at the value type

#

BAM

#

"USE ENUM MAP NOW"

hallow tide
#

security?

prisma wave
#

yes

hallow tide
#

oh because its not final?

prisma wave
#

if something overrides a method that could compromise security

#

indeed

remote goblet
#

Map<Enum, Value> map = EnumMap(Enum.class)

topaz bay
#

Why is there an instance of skyblock in this?

remote goblet
#

Not sure

topaz bay
#

You dont use it...

#

delete it

remote goblet
#

okay

topaz bay
#

Why is there a location in this?

remote goblet
#

Both you and alex scare me >:(

prisma wave
#
  private int getX;
    private int getZ;``` I hate this
#

i'm not scary

topaz bay
#

And why is there a world instance?

remote goblet
#

You keep asking me

prisma wave
#

😦

remote goblet
#

You're both scary :'(

lunar cypress
#

😔

topaz bay
#

WHY

#

WHY

#

Its literally THIS CLASS

remote goblet
#

I DIDNT KNOW WHAT I WAS DOING

topaz bay
#

THATS NOT AN EXCUSE

hallow tide
#

?

remote goblet
#

IF I SAY IT IS, THEN IT IS

hallow tide
#

its litereally what?

remote goblet
#

As much as I bullied that dude in #off-topic for only learning from spoonfed code

#

Can you fix it for me >:(

topaz bay
#

this ternary on the nullable stuff kills me

#

WAIT

#

WAIIIITT

remote goblet
topaz bay
#

Do you convert the uuid to string and then back to a uuid

#

what the HELL

#

WHY

remote goblet
#

I probably did

#

ngl

topaz bay
#

this.owner = island.owner == null ? null : UUID.fromString(island.owner.toString());

remote goblet
#

at this point im not even gonna deny it

topaz bay
#

See now you get bullied

#

This is what you get for sending it again

remote goblet
#

heh

#

good

prisma wave
#

declares islandsSettingsKey as a parameter
doesn't use it at all

remote goblet
#

:D

prisma wave
#

the more you look at it

#

the worse it gets

remote goblet
#

yes

#

I love it

topaz bay
#

0 / 2

#

KILL ME

#

PLEASE

remote goblet
#

LMAOOOOO

hallow tide
#

😹

#

😂

remote goblet
#

I should teach people what to not do in java

prisma wave
#

just send them that

#

they'll instantly become experts

hallow tide
#

indeed

lunar cypress
#

To be fair, we've all seen far worse

topaz bay
#

@pallid gale I am hereby requesting another entry to =faq

remote goblet
#

Are you sure

#

are you sure

lunar cypress
#

I am

prisma wave
#

idk

remote goblet
#

ah yes

#

i know one thing that is worse

lunar cypress
#

This code would be in the upper half of the spigot code tier list

remote goblet
#

=faq

compact perchBOT
#

@remote goblet

FAQ • Invalid Usage

=faq <faq key>
=faq list
?<faq key>

remote goblet
#

lemme find it

prisma wave
#

that's definitely pretty high in the list of "worst things I've seen"

remote goblet
#

=faq

compact perchBOT
#

@remote goblet

FAQ • Invalid Usage

=faq <faq key>
=faq list
?<faq key>

remote goblet
#

ree

lunar cypress
#

wow I envy you

remote goblet
#

=faq plsnoarrowcode

compact perchBOT
remote goblet
#

thats pretty bad

prisma wave
#

actually

#

yeah I take it back

#

that's worse

remote goblet
#

yea

#

Bukkit.getOfflinePlayer(args[1]).isOnline() confuses me so much

hallow tide
#

ik what could prob be worse

#

my first ever code ^

lunar cypress
#

Let's dig out old code

prisma wave
#

OOH

#

I found a great one a while ago

#

I made a spigot tutorial when I was like 12

hallow tide
#

that one is just 🍝

#

just read it 😂

lunar cypress
#

record scratch

prisma wave
#

i spent about a minute trying to figure out why that didn't work

lunar cypress
#

freeze frame

#

yep that's me

hallow tide
#

you gotta be kidding me

prisma wave
#

oh god

topaz bay
#

oh

#

my god

lunar cypress
#

my code 2 1/2 years ago

hallow tide
#

amazing 🍝

lunar cypress
#

very nice

prisma wave
#

lmao

#

i was scrolling down thinking "this isn't that bad"

#

AND THEN

hallow tide
#

compare it with the latest

remote goblet
prisma wave
#

I see Main.java

#

not good

lunar cypress
hallow tide
lunar cypress
#

gotta love german compsci lessons

prisma wave
#

surprisingly clean considering

remote goblet
#

looks like russian to me

#

I still hate allman

lunar cypress
#

lmao

remote goblet
#

i hate it

#

cant stand it

prisma wave
#

allman isn't that bad

remote goblet
#

burn it

#

It is

#

I hate it

prisma wave
#

why

remote goblet
#

I don't know

hallow tide
#

the comparison of my first and latest code XD

remote goblet
#

it just adds more lines

#

and it gives me anxiety

lunar cypress
#

Nein, dies ist inkorrekt. Ich werde eine Strafanzeige stellen

prisma wave
#

oui

ocean quartz
#

I find allman kinda weird but it's alright

remote goblet
#

like fully

prisma wave
#

ik neek spreekt doichland

remote goblet
#

anxiety attack

prisma wave
#

ew if else

lunar cypress
#

Ew who still uses if statements

#

grow up

prisma wave
#

ikr

#

kinda embarassing ngl

hallow tide
#

?

#

how is it embarassing

lunar cypress
#

the imperative virgin vs the logic programming chad

prisma wave
#

anyone heard of the anti if campaign

remote goblet
#

real developers use case switch 😎

im prob gonna get bullied for saying that

hallow tide
#

i use switch...

#

i remember making a getter in switch XD

ocean quartz
#

They are being sarcastic xD

hallow tide
#

get("x")

#

will return x field

prisma wave
#

imperative virgin 😢

  • still uses traditional for loops
  • thinks that if it's not a keyword it doesn't work
  • "oh but forEach is slower!!!"

The declarative chad 😎

  • could work in any language with FP libraries
  • doesn't care about speed, developer comfort is more important
  • has never heard of if
  • thinks that streams are the second coming of jesus
hallow tide
#

FP?

lunar cypress
#
  • (((())))
topaz bay
#

oh you poor thing

prisma wave
#

mmmm

#

functional programming

hallow tide
#

anyone know this in javascript ```js
(function() {
//do stuff
})();

prisma wave
#

uh

#

haven't you just done it

hallow tide
#

ah

#

but that is weird looking for me

lunar cypress
#

((yes) i (((like) functional) programming, (why (do) you (ask?)))

#

okay that's just lisp to be fair

prisma wave
#

lmao

hallow tide
#

fish is an amazing language

topaz bay
#

dont forget about RP notation

lunar cypress
#

beautiful

remote goblet
lunar cypress
#

wait wasn't it just polish notation?

hallow tide
#

this is how you do fizzbuzz in fish ```
0voa ~/?=0:
voa oooo'Buzz'~< /

1+:aa1+=?;::5%:{3%:@??/'zziF'oooo/
^oa n:~~/

lunar cypress
#

i know that one is (+ 1 2) and the other is (1 2 +)

topaz bay
#

polish is before

#

and reverse polish is after