#dev-general

1 messages · Page 113 of 1

jovial warren
#

what project?

frail glade
#

Some private channels, Niall. They were discussing scoreboard stuff and I plugged yours.

#

They found it intriguing.

remote goblet
#

i need to rewrite the page builder from JDA Utilities, im already reading this thinking i need to stop

ocean quartz
#

It's a TV

lunar cypress
#

I once made a PR extending that class

#

I think it didn't even get a comment, might still be open lol

prisma wave
#

😦

#

900 lines changed and they didn't even reply

lunar cypress
#

you left me on read jda utils haha

#

They did merge another pr of mine though

#

TableBuilder

#

Not my proudest 1000 line class, but well

prisma wave
#

is anyone truly proud of a 1000 line class?

lunar cypress
#

:/

#

I'd say this is the longest class I've ever written but that'd be a lie

#

Just have to take a look at my first JAva projects

#

Are you interested in joining a gh organisation built around bringing more open source into the spigot dev community? @prisma wave

#

Others are invited as well of course

#

Everything is still kinda WIP, but it's going to go somewhere

prisma wave
#

Sure

#

OSS is always good

lunar cypress
#

yeah

#

Just a place to publish open source plugins, really

#

With plans to make it something bigger

prisma wave
#

Well I can't promise I'd get round to contributing anything but I'm happy to join

lunar cypress
#

For now we'll accept anyone without the need to specify concrete contributions

#

In that repo there's also some additional information

prisma wave
jovial warren
#

tf?

#

lol

#

it's Java

#

anything's possible

#

anyway, BM you got any idea why I'm getting a provided token is invalid error from that config thingy?

#

@prisma wave

prisma wave
#

i guess it's invalid lol

#

debug?

#

find out what it actually is

#

probably null

jovial warren
#

okay will do

#

okay that's why

#

it's loading it as ""TOKEN""

#

let's not put inverted commas around the property in application.properties

#

NAILED IT

#

finally

#

okay now what next lol

ocean quartz
#

Anyone wanna talk shit about my code?

jovial warren
#

yeah sure why not

#

share

jovial warren
#

just the name of that lol

#

"PickUpItemsGoal"

#

it should be "PickupItemsGoal"

#

Pickup is one of those words that can kinda be one word or be two words

#

also

#

private val petInventory = pet.getInventory()

#

get

#

get outta here

ocean quartz
#

Don't you "pick up" something and drive a "pickup"?

jovial warren
#

no idea

#

anyway

#

"get"

#

you using a getter

#

bad boy

#

you should know better

ocean quartz
#

It's an interface

prisma wave
#

interfaces can have properties too

#

val inventory: Inventory

jovial warren
#

and you even supposed to put getters in interfaces anyway?

#

didn't think that was what interfaces were for

ocean quartz
#

I was not aware of that
And yes in this case it's needed

jovial warren
#

val inventory: Inventory
wait val can be uninit?

prisma wave
#

in an interface, yes

#

the abstract is implicit

jovial warren
#

forgot abstract properties were a thing in Kotlin lol

#

never really used abstract since I've switched

#

in fact I rarely use abstract as it is anyway

#

also what kind of a method name is a()?

#

is it NMS?

ocean quartz
#

Yeah

jovial warren
#

okay that explains it

#
private fun asNmsEntity(entity: Entity): net.minecraft.server.v1_15_R1.Entity {
        return (entity as CraftEntity).handle
}
#

get outta here

#
private fun asNmsEntity(entity: Entity) = entity.handle as CraftEntity
```?
prisma wave
#

that's not the same thing

jovial warren
#

or is that not how this works in this case lol

ocean quartz
#

Yeah that's not the same thing

jovial warren
#

private fun asNmsEntity(entity: Entity) = (entity as CraftEntity).handle then

ocean quartz
#

Don't focus too much on finicky NMS stuff lol

jovial warren
#

still, expression functions

prisma wave
#

Just saying, you could use an import as to make it a bit nicer

#

import net.minecraft.server.v1_15_R1.Entity as NMSEntity

jovial warren
#

what is this Python now? lol

prisma wave
#

nah it's kotlin 😎

ocean quartz
#

Yeah i only learned about the import stuff some time ago, this code is pretty old

prisma wave
jovial warren
#

wait wtf?

prisma wave
#

that's with download speeds

jovial warren
#

how did you decrease it by that much?

remote goblet
#

my pc is shitty itself Emi_Dab

ocean quartz
#

Nice

prisma wave
jovial warren
#

WTF?!?!?!?!

#

I suppose that's why we use Gradle 😎

prisma wave
#

this isn't gradle

#

this is PDM

#

😎

jovial warren
#

what is PDM???

prisma wave
#

how did you decrease it by that much?
a combination of optimizations and preparing the transitive dependencies at build time

#

my thing to download runtime dependencies automatically

jovial warren
#

ah okay

prisma wave
#

kotlin gets automatically downloaded

#

and loaded into the classpath

prisma wave
#

it's pretty hot

#

^

ocean quartz
#

Pretty nice yeah

jovial warren
#

also, apply plugin???????????????????????????

prisma wave
#

having to use it in this example

#

it's not on the gradle plugins repo yet

jovial warren
#

cough deprecated cough cough

prisma wave
#

I could put mavenLocal in settings.gradle but i'm lazy

#

ik ik

jovial warren
#

just put mavenLocal() in the repositories block

prisma wave
#

that doesn't work for plugins

jovial warren
#

ah

prisma wave
#

they're resolved differently

jovial warren
#

I could put mavenLocal in settings.gradle but i'm lazy
do it

#

saves you using deprecated methods

prisma wave
#

fine

jovial warren
#

🚫 deprecation 🚫

prisma wave
jovial warren
#

👏

#

good boy

remote goblet
#

i'm just proud im using final more HR_HatDab

prisma wave
#

😎

jovial warren
#

also why's it version 0.0.1-SNAPSHOT?

#

ik that's the default for Spring but just why

prisma wave
#

I deliberately made it that

jovial warren
#

I always start at 1.0-SNAPSHOT

prisma wave
#

because it's very early stages

#

don't want people getting the wrong impression lol

jovial warren
#

fair enough

#

also what next for my bot now?

#

should probably start making some commands

prisma wave
#

Up to you lol

jovial warren
#

yeah but what do I do about things like audio control?

#

a.k.a playing, pausing, stopping, starting and skipping, and also volume control

#

can they all go in the same thing?

#

or does that break SRP

prisma wave
#

kinda subjective but I'd say that's fine

#

they are all similar tasks

jovial warren
#

@topaz bay what do you think?

ocean quartz
jovial warren
#

can I put playing, pausing, stopping, starting, skipping and volume control in the same class or does that break SRP?

prisma wave
#

@ocean quartz yes

jovial warren
#

@ocean quartz looks better to me

#

good boy

#

👏

prisma wave
#

getEntity could probably be a property though?

ocean quartz
#

Would be something like this right?

override val entity: Entity
    get() = bukkitEntity
jovial warren
#

or just override val entity: Entity?

#

what's the getter for?

prisma wave
#

they're not the same thing

#

yeah assuming bukkitEntity will change @ocean quartz

#

otherwise just use entity = bukkitEntity

ocean quartz
#

I don't think it'll change so I'll do the latter

quiet depot
#

@jovial warren ssh cli > fancy wancy clients

#

and even then, if you want a client, termius is the best client

#

bitvise 💩

#

and I speak from experience, bitvise was actually the first client I used. Then I tried out raw ssh (git bash), and realised it’s what I’ve been missing my whole life. Tried out termius on phone originally, and thought “this client is actually really well made”. Installed it on pc, and wasn’t disappointed either.

frail glade
ocean quartz
#

Oh

topaz bay
#

That makes sense

#

the hex colors are only supported in the json components anyway

frail glade
#

Can't wait for §x§r§r§g§g§b§b

#

Because that's literally how it is right now to do RGB support in Bungee.

heady birch
#

Poop

ocean quartz
#

Can't wait for paper to come in and save the day with their own implementation

heady birch
#

☹️

#

Another interface

#

ChatColor, LegacyChatColor, HexChatColor

#

Unicode though

#

Finally I can use emojis in chat

#

😄

onyx loom
#

more sad faces to see from niall in chat

#

☹️

#

🙁

versed ridge
#

Why is Inteliij showing my imports and stuff as red but it still builds and works and stuff

topaz bay
#

cause you broke it

#

obviously

versed ridge
#

nature broke it

#

It's raining and it knocked out the power and when it came back on this was broke lmao

onyx loom
#

u cant stop nature

versed ridge
#

how does fix

prisma wave
#

Invalidate caches and restart

versed ridge
#

I've done that twice

prisma wave
#

Third time lucky?

versed ridge
#

we shall see

#

negative

remote goblet
#

delete project and give up

#

that should work

versed ridge
#

It's only happening in my kotlin projects

#

fantastic

remote goblet
#

Kotlin bugged? pauseChamp

versed ridge
#

Perhaps it's a sign that I should stop using Kotlin :)

remote goblet
#

@prisma wave thoughts and concerns? i believe it is a sign

topaz bay
#

I mean... using kotlin does require a certain IQ

#

Maybe you just aren't up to the task

#

¯_(ツ)_/¯

versed ridge
#

:(

prisma wave
#

Don't even begin to blame kotlin for human error

#

Or nature error

versed ridge
#

oml

#

Nothing I'm doing is working

prisma wave
#

Delete all the project files and make a new one from the existing sources

versed ridge
#

eh

#

like delete my entire project?

frail glade
#

@prisma wave Is there something on gradle website I can monitor the status of your plugin request?

prisma wave
#

It's actually been approved, but the current version is kinda outdated

#

I need to finish the final touches (documentation etc) then I'll publish the plugin to the main repo and everything else to my repo

#

It won't function at the moment though

vale wagon
#

no idea where to ask this, but is there any useful things i could develop for any of the plugins in this server (or otherwise) that would require web skills?
i'm bored and want to add some stuff to my portfolio. i'm best at javascript (as opposed to php). angular, node.js, jquery, etc

forest whale
#

Hello guys

#

I need a server consultant

#

Willing to pay

hot hull
#

:kek:

Hello, your plug-in is very good, I like it very much, I also want to share the plug-in with my friends, can I move it to <some chinese website>

heady birch
#

let me guess

hot hull
#

mhm

regal gale
#

Oof

hot hull
#

What do I tell the guy thonking

heady birch
#

yes

#

they just link it

#

that's what they told me

hot hull
#

Ah okay then

heady birch
#

that's what they told me
@heady birch

#

Might be worth going on there to see if thats the case

#

Eh

#

Cant even access it

hot hull
#

I can access it

#

But it's chinese so :kek:

steel heart
#

How does Java generate the random numbers

#

Is it by universal time or like with π

regal gale
#

Converting my entire hangman game on Java to Kotlin is such pain

#

Especially on list or array stuff when doing so

trim hare
#

Is your patience at the end of a rope?

#

How many lines of code are you having to convert?

regal gale
#

About 227 lines

trim hare
#

Doesn't seem like too much

regal gale
#

With a newbie on kotlin like me, i don't really think so 👀

#

There are around 10 functions

#

Convert all to Char, arrayOf instead of [], etc.

#

And null safety as well

heady birch
#

Lol

#

I'm converting 9000 to Guice

lunar cypress
#

This does not look right

heady birch
#

I thought the same

lunar cypress
#

You should use a Multibinder

#

And inject a list of your command interface/abstraction

heady birch
#

Very cool

#

What

#

It's not in the core..

lunar cypress
#

It is, though?

#

com.google.inject.multibindings

heady birch
#

Looks like I was using 4.0

heady birch
#

Beautiful

hot hull
#

Not seeing any finals Niall

heady birch
#

eh yeah its abstract

#

Its so weird

#

Everytime I got back to classes its like wow can write this so much better

obtuse gale
#

Im not a dev I just wasnt feeling posting this in general plugins
so I got a host that doesn me allow to have my own startup script batch they say its for "Security reasons"
is there any way to bypass it? thanks in advance ❤️

remote goblet
#

It depends on the host, the idea of it being security reasons isn’t wack

obtuse gale
#

Yeah its a low end host! I guess you get what you pay for!

#

and for my last question haha! I made a timings report and it says I dont have the Aikar's flags thats why I wanted to have my startup bat
does it make any difference?

heady birch
#

It may do

#

You could contact them to see if they can set the flags themselves

obtuse gale
#

Alright will do thank you ❤️

jovial warren
#

@quiet depot by saying Bitvise is doodoo you are objectively and fundamentally wrong lol

#

but yeah SSH CLI is better

#

but not Git Bash

#

morning all by the way lol

#

or, afternoon now due to how late I get up

quiet depot
#

what’s wrong with git bash

jovial warren
#

just because that's not what git bash is for

quiet depot
#

that's not true

#

git for windows provides easily accessible installers for mingw64, packaged with a windows git binary

#

git is an extra

jovial warren
#

true

obtuse gale
#

Anyone had a thing where intellij just gets really laggy when you type in quotes?

#

its really irritating as well lol

quiet depot
#

"git bash" isn't even actually a thing. if anything it's a nickname for whatever terminal git for windows ships. iirc it's mingw64

heady birch
#

Piggy, are factories good practice in Guice?

#

This is example of what I got

quiet depot
#

yeah that's fine, but you can use field injection instead of constructor injection there

jovial warren
#

ew

obtuse gale
#

WHITE

heady birch
#

Is contsructor not prefered?

quiet depot
#

no

heady birch
#

Ah

#

I come from a spring background you see

quiet depot
#

yeah guice doesn't have a preferred method of injection

#

although avoid static injection at all costs

prisma wave
#

guice has assisted injection factories or whatever they're called

#

that whole class is useless

heady birch
#

I will see the size after adding jbdc and hikari

quiet depot
prisma wave
#
interface UserFactory {
  KiteUser createUser(@Assisted Player player);
}``` should work iirc
jovial warren
#

is it just me or has the yellow on the discord icon changed slightly to be less saturated

#

@pallid gale what you been up to lol

obtuse gale
#

you noticed 🤔

signal tinsel
#

Is spigot 1.16 out=

heady birch
#

@quiet depot How do I configure that thing you are talking about?

signal tinsel
#

If so I can work on rgb support in my chat plugin

heady birch
#

My jar with guice shaded is 4.1 mb

jovial warren
#

Kotlin removes those ew constructors

pallid gale
#

@pallid gale what you been up to lol
@jovial warren imagine tagging me in #dev-general where if you were bothered to go to the right channel (#off-topic) you'd see i actually already spoke about it

#

smh.

jovial warren
#

alright alright

#

I preferred the old one by the way

#

this one looks a bit ew

heady birch
#

nvm I think its minimizeJar

quiet depot
#

@heady birch exclude guava

#

& gson

#

not sure about gson

#

pretty sure u have to exclude both

#

definitely guava though

signal tinsel
#

gson is in spigot itself

heady birch
#

I dont think I included them

#

unless Guice included them

quiet depot
#

guice definitely includes guava, and I'm not sure about gson

#

check via your gradle deps tab

versed ridge
#

Anyone know why the imports for 1 of my dependencies are saying Unresolved reference yet it still compiles just fine?

#

It was working fine until yesterday, after my computer shut off and came back on it started doing this

#

And it only seems to be happening on my Kotlin projects for some reason

jovial warren
#

try reimporting?

versed ridge
#

I have

heady birch
#

Lol kiteboard is now guice without kiteboard 😦

jovial warren
#

I got no idea

#

ask sx, he'll probably know

#

he's like GKL 1000

#

(Gradle Knowledge Level)

crisp bolt
#

It might be the case that im askin this the second time ive been here. But where can i download the Guilds API jar ?

heady birch
#

@quiet depot Any idea why minimizeJar removes most of my dependencies?

#

My output jar consists of Guice and my resources folder, nothing else

#

Oops

ocean quartz
#

MinimizeJar tends to kinda break sometimes

heady birch
#

I expected it to

#

It will leave out my nms specific classes because they are not referenced at all

#

Hm

#

It probably leaves the rest out becuaes it looks for an entry point?

#

psvm

#

Looks like that was the case

jovial warren
#

okay now I'm at the point in BardyBot where I'm making an audio manager

#

unsure how I should get an instance of MusicManager

quiet depot
#

@Inject private MusicManager music;

jovial warren
#

do I need a dependency for that since i can't seem to find it by default?

#

is there an extra Spring dep for DI?

#

also, remember I'm using Kotlin Piggy

#

though that shouldn't make a difference

prisma wave
#

@Inject is guice

#

the spring equivalent is @Autowired

jovial warren
#

ah okay

#

so I can put that in my AudioManager object?

prisma wave
#

ew object

#

but yes probably

#

wait no

#

you can't inject into objects

jovial warren
#

what should I use instead?

prisma wave
#

that makes no sense

#

class

jovial warren
#

also, I need one instance of the MusicManager per guild

prisma wave
#

ok?

jovial warren
#

so what do I do about that?

prisma wave
#

probably gonna need some enterprise logic

jovial warren
#

because I imagine it has to be @Autowired val musicManager = MusicManager()

#

enterprise logic? oh no

prisma wave
#

AbstractGuildWrapperFactoryBean

#

hahahahahaahah

jovial warren
#

oh fuck off

#

what the fuck is that name?!?!?!?!

#

what extends this?

#

also I've gotta be able to come up with a different better name to that, surely

#

anyway I'll use that name for now

#

what do I need in here?

jovial warren
#

yeah we know

#

@prisma wave what am I supposed to put in CaptainStupidName then?

#

a.k.a AbstractGuildWrapperFactoryBean

prisma wave
#

oh this is actually quite elegant i think

jovial warren
#

go on then

#

enterprise logic

prisma wave
#

or not

#

1 sec

#

gonna need to test this for myself

jovial warren
#

also what is this class supposed to do?

#

because AbstractGuildWrapperFactoryBean seems a little out of order to me

#

it should end in Factory

#

unless it's a bean of a factory

#

I don't even wanna know lol

ocean quartz
jovial warren
#

HAHA lol

#

that's a bit dumb

ocean quartz
#

Ikr

jovial warren
#

gotta be a reason for that

#

also, lemme fix that maven central link lol

#

I'm gonna replace it with [![Maven Central](https://img.shields.io/maven-central/v/me.mattstudios.utils/matt-framework-jda.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22me.mattstudios.utils%22%20AND%20a:%22matt-framework-jda%22), which will get one of those cool badge thingys I was looking to have there

#

also @ocean quartz , apparently contributors are people who have contributed but haven't committed according to the description of the tag

ocean quartz
#

Oh interesting

jovial warren
#

so if you don't mind I'm putting myself back in the tag that's for committers 🙂

#

hopefully at least then it'll show up properly on MVC lol

ocean quartz
#

Go for it yeah

jovial warren
#

good I'm getting my name on other's projects finally lol

#

okay I've made a new PR

#

hopefully that one will process properly on Maven Central lol

#

apply plugin

#

smh

#

unless for some weird reason that's the way you're supposed to do it here

heady birch
#

@prisma wave You ever used maven minimize jar?

prisma wave
#

back in the day

#

i've not used maven in years though

#

@jovial warren figured it out

heady birch
#

for some reason it doesnt want to include Guice

#

I adding includes for it but that defeats the point

prisma wave
#

why maven

jovial warren
#

@prisma wave how's that "enterprise logic" coming along by the way xD

prisma wave
#

it was actually simpler than I thought

#

lemme send over what I've got

jovial warren
#

wow my WiFi just had a fit lol

prisma wave
#
@Component
class MusicManagerBean
{
    @Bean
    @Scope("prototype") //makes spring make a new instance every time
    fun musicManager() = MusicManager()
}

@Component
class GuildWrapperFactory @Autowired constructor(
        val beanFactory: BeanFactory
)
{
    fun create(guild: String): GuildWrapper
    {
        return GuildWrapper(guild, beanFactory.getBean(MusicManager::class.java))
    }
}```
then use like GuildWrapperFactory#create(Guild)
#

probably replace String with Guild, I just cba to depend on jda

#

simple enough

jovial warren
#

also, MusicManager() needs to be given an instance of AudioPlayerManager lol

#

forgot to mention that

prisma wave
#

doesn't matter

#

do the same thing for that

#

define a bean of AudioPlayerManager, autowire it in the MusicManager constructor

jovial warren
#

also, what's GuildWrapper?

prisma wave
#

a wrapper class that holds a Guild and a MusicManager

#

since Guild is an interface you could even delegate to Guild

#
data class GuildWrapper(
        val guild: String,
        val musicManager: MusicManager
)
jovial warren
#

no methods?

#

ah okay

prisma wave
#

doesn't need any

#

but it's an example

jovial warren
#

yeah internet is having a fit today lol

prisma wave
#

adjust as required ofc

obtuse gale
#

Question

#

Is it possible to place down a command block WITH a command in it already loaded?

hot hull
#

Ctrl middle click probably

obtuse gale
#

in code....

hot hull
#

place down
I mean..

obtuse gale
#

lol

#

for code to place down a command block with a command in it

#

happy??

hot hull
#

Much better

#

And I assume you could probably use BlockData in some way

obtuse gale
#

hm

prisma wave
#

bruh the official NHS app has kotlin code in src/main/java 💀

#

this is embarassing

obtuse gale
#

oof

heady birch
#

I don't understand

#

There are people 100x better than all of us

#

And companies still end up with rubbish stuff

#

After paying a fortune

prisma wave
#

ikr

#

they paid £11 million for this

hot hull
#

Because, people dumb dumb

prisma wave
#

and they can't even put code in the right folder

#

smh

heady birch
#

enterprise

hot hull
#

KM, nah they just started in java, then realised kotlin was better and couldn't have been asked to switch :kek:

prisma wave
#

¯_(ツ)_/¯

#

either way still lazy

#

these guys are supposed to be clever

onyx loom
#

supposed to be

obtuse gale
#

Maybe they were told to code it in java but they realised the company wouldnt notice if they put it in the java folder

onyx loom
#

btw what app is this bm?

prisma wave
#

it's an android app

#

using java is dumb

#

the covid 19 app @onyx loom

onyx loom
#

im guessing u just decompiled

#

ah

prisma wave
#

nah it's OS

onyx loom
#

o

heady birch
#

Maybe they were told to code it in java but they realised the company wouldnt notice if they put it in the java folder
@obtuse gale clever

prisma wave
#

not to mention they're using python for their website

#

not enough spring if you ask me

onyx loom
#

altho it should be 100 if u ask me

prisma wave
#

you gotta have the android files somewhere

#

the xml and shit

onyx loom
#

¯\_(ツ)_/¯

jovial warren
#

@prisma wave what

prisma wave
#

?

jovial warren
#

Kotlin code in src/main/java?

#

smh

prisma wave
#

yes

#

bad

onyx loom
#

🙂

ocean quartz
#

src/main/jatlin

prisma wave
#

😬

jovial warren
#

also it surprises me this is OS

prisma wave
#

they said they would OS it

#

most countries are

#

to prove it's not tracking people

#

well not more than they say

jovial warren
#

yeah that's what I was just about to say lol

#

to prove they ain't tracking anyone

#

though most people won't know how to read source code anyway

#

and also, how do you know that the OS version is the one that's going on the App Store?

ocean quartz
jovial warren
#

yeah that is a jesus christ

prisma wave
#

and also, how do you know that the OS version is the one that's going on the App Store?
realistically you don't, but I guess if you really cared you could build yourself

#

on android anyway

#

idk about ios

jovial warren
#

lol

prisma wave
#

classic

jovial warren
#

ikr

#

also how do I get that colour role to change my name colour to my tier colour again?

prisma wave
#

=tier color i think

jovial warren
#

there we go

#

Tier IV now

prisma wave
#

nice

#

it's no purple but

onyx loom
#

disgusting

prisma wave
#

could be worse

onyx loom
#

go back to pink

prisma wave
#

purple name master race

jovial warren
#

lol

onyx loom
#

😁

jovial warren
#

what's the purple tier?

onyx loom
#

soon well be orange bm 💯

#

5

jovial warren
#

oh VI

prisma wave
#

indeed indeed

onyx loom
#

=tiers

prisma wave
#

we'll see who gets there first

jovial warren
#

it's =tier

onyx loom
#

F

#

id assume u will

prisma wave
#

probably lol

#

unless you buy more nitro

onyx loom
#

been slacking past week or so 😬

ocean quartz
#

Is tier 9 same color as staff?

prisma wave
#

😦

onyx loom
#

i wont

prisma wave
#

it's close

#

not the exact same @lavish notch

#

oops

#

@ocean quartz

onyx loom
#

im not even on top user stats 😕

prisma wave
#

sorry wrong person lol

ocean quartz
#

One day someone will get there

onyx loom
#

will be bm 100%

#

at this rate

lavish notch
#

Someone had an oopse

prisma wave
#

😦

jovial warren
#

anyone know a good way to learn JS?

prisma wave
#

practice

pallid gale
#

make a barry

ocean quartz
#

Open it, then delete everything, saves you headaches

jovial warren
#

I wanna make a website using Angular

prisma wave
#

angular is simple enough

jovial warren
#

so I gotta learn JS and probably TS

prisma wave
#

mostly

jovial warren
#

also, does IJ have Angular built-in or have I gotta use WebStorm

ocean quartz
#

Prolly WebStorm, though IJ ultimate has a lot of features so idk

jovial warren
#

yeah I'll use IJ for my backend

#

which I'll probably write in Spring

#

just for some good practice

prisma wave
#

😍

#

pretty sure all of webstorms functionality can be found with ij plugins

ocean quartz
#

KTor is pretty nice

prisma wave
#

not used it much

#

but it's no spring

jovial warren
#

Ktor is DI

#

it's amazing

#

but Spring is more

prisma wave
#

ktor isn't DI

#

it's a web framework

ocean quartz
#

Yeah ^

hot hull
#

What would be the best file type to use for plugin messages? (Needs to be able to have comments, and multilang support)

jovial warren
#

oh yeah Ktor is the web framework isn't it

prisma wave
#

mhm

jovial warren
#

lol

prisma wave
#

yaml? @hot hull

#

it's familiar

ocean quartz
#

And it's not the same thing, Ktor is actually supposed to be used with spring to enhance it

jovial warren
#

also, Angular CLI vs AngularJS?

#

what's the difference?

prisma wave
#

they're not mutually exclusive

#

the cli is just to generate the boilerplate

jovial warren
#

ah okay

#

wait Angular CLI uses node

#

not happening

prisma wave
#

...

jovial warren
#

I'm using Angular for my frontend and Spring for my backend

#

node can go fuck itself

prisma wave
#

and?

jovial warren
#

every time I think node I think npm

#

is-promise memories

prisma wave
#

write the boilerplate yourself then ig

ocean quartz
#

Let's make a language with the biggestboiler plate possible

jovial warren
#

do I have to use node with Angular by the way?

#

or can Angular run on its own

onyx loom
#

why the heck would u do that matt

prisma wave
#

it's standalone

#

node is for backend

#

angular is for frontend

ocean quartz
#

public immutable Integer var number = new object Integer(0); lmao

prisma wave
#

oh god

#
@AccessibleFrom(Accessibility.ALL)
immutable var number as Integer = Integer.new ( Object Integer 0)
ocean quartz
#

Oof nice, let me try beating that

prisma wave
#
immutable variable number with type Integer = create Integer with value 0 accessible from getClass().getPackage().allClasses()
#

beat that lmao

ocean quartz
#
@AccessibleFrom({ ClassName::java.class.jar, ClassName2::java.class.jar })
immutable var number as new Integer = new Integer().new ( Object new Integer.withValueOf(0) )
jovial warren
#

is that actual code or just like pseudocode?

#
immutable variable number with type Integer = create Integer with value 0 accessible from getClass().getPackage().allClasses()

is that actual Kotlin code?

prisma wave
#

no lmao

jovial warren
#

lol

ocean quartz
#

Let's make a language with the biggest boilerplate possible

jovial warren
#

I dare you

onyx loom
#

how would that even work

#

10000000 characters for 1line?

ocean quartz
#
immutable variable with name number with type Integer with access type public = create new variable of type Integer and value of 0
jovial warren
#
access is public, classifier name is ClassName {

    access is private, type is Integer, name is int, value is 0

    access is public, is constructor, name is ConstructorName, parameter values are (name is int, type is Integer) {
        from this classifier, variable name is int, value is int
    }
}
#

lol

onyx loom
#

sexy

prisma wave
#
variable number = create("number") {
  immutable
  withType = Types.Integer
  withValue = 0
  accessibleFrom = getClass().getProtectionDomain().getCodeSource().getFile()
}```
onyx loom
ocean quartz
#

Oh yeah Sx sent me this yesterday, i thought you guys would like it too

jovial warren
#

look at my example lol

#
variable number = create("number") {
  immutable
  withType = Types.Integer
  withValue = 0
  accessibleFrom = getClass().getProtectionDomain().getCodeSource().getFile()
}```

okay that's good

#

but you need more

#

let's make a language out of the English Language

ocean quartz
#

SQL?

onyx loom
#

skript aPES_Eyes

ocean quartz
#

Sql is basically english

prisma wave
#
function printAValue = __global.functionFactory.create("printAValue") {
  immutable
  final
  signature {
    input = __global.collectionFactory.createSetOf<Type>(Types.Any)
    output = Types.Nothing
    typeParams = __global.collectionFactory.emptySet()
  }
  process {
    beginFunctionExecution()
    variable value = __function.getParam(0).getValue()
    __global.stdout.getFunction("println").invoke(value)
    finishFunctionExecution()
  }
}```
#

now that is a work of art

onyx loom
#

jesus fuck

ocean quartz
#

You win

prisma wave
#

😎

#

made it a bit more verbose

jovial warren
#
this can be accessed anywhere, it is a classifier, the name of it is ClassName, the code is {

    this can be accessed anywhere, it is a variable, the name of it is int, the type of it is Integer, the value is 0

    this can be accessed anywhere, it is a constructor, it has the parameters (this can only be accessed here, it is a variable, the name of it is int, the type of it is Integer), the code is {
        get this variable from this instance of this class, assign it the value of the parameter of this constructor with the name "int"
    }
#

how's that

prisma wave
#

hideous

jovial warren
#

looks like it's structured a bit like guess who

onyx loom
#

oh my god

jovial warren
#

I said a language that's just like the English Language

ocean quartz
#

Omg

onyx loom
#

please stop

#

its hurting my eyes

ocean quartz
#

I just found the most cursed code I have ever wrote without noticing holy shit
This was written in January btw, i have no idea what sort of drugs I was on, but I just noticed wtf

prisma wave
#

🤔

jovial warren
#

cursed

heady birch
#

lol

jovial warren
#

that double equals merging in to one is concerning

prisma wave
#

this.target = item ?: item

#

much better

hot hull
#

It can get confused real fast when they merge

ocean quartz
#

No lol, it literally needs to be just target = item

hot hull
#

confusing*

jovial warren
#

you can probably just remove that setter altogether

hot hull
#

If I could write today jesus

jovial warren
#

also am I the only one here who uses the default IJ theme?

#

Darcula ofc

onyx loom
#

i do

ocean quartz
#

You're the only one suffering yes

onyx loom
#

🙁

prisma wave
#

darcula bad

#

atom one dark good

onyx loom
#

whats wrong with darcula

prisma wave
#

ugly

ocean quartz
#

Atom one dark very good

onyx loom
#

i would disagree

#

show me atom one dark

ocean quartz
prisma wave
jovial warren
#

nah the functions in italics is just ew

onyx loom
#

eh

jovial warren
#

keywords in italics is ew

prisma wave
#

that's nothing to do with the color scheme

jovial warren
#

also the purple is just no

hot hull
#

italic functions = yes

jovial warren
#

and the yellow and blue just doesn't suit me

onyx loom
#

considering id have to dl that, id stick with darcula

hot hull
#

Show your theme then lmao

ocean quartz
#

I removed the yellow from mine

#

Changed mine quite a bit

#

Specially string color

jovial warren
#

yeah I can't really disagree with that tbf

regal gale
#

What's the hex

#

I need that

jovial warren
#

default Darcula >

ocean quartz
#

@regal gale 1BDD8F

jovial warren
#

with Cantarell (default) for Appearance font, and Fira Code Medium for editor font

#

mono looks horrible as Appearance font imo

ocean quartz
jovial warren
#

yeah that orange isn't too bad

ocean quartz
jovial warren
#

Darcula with Cantarell for Appearance font and Fira Code Medium for editor font works fine for me

prisma wave
#

jb mono is best font

jovial warren
#

mono outside of editor is horrible

prisma wave
#

true true

#

idk what sx thinks he's doing

hot hull
#

Where do you edit that Matt (string color)

heady birch
#

Does \n work in placeholdesr

jovial warren
#

I have Cantarell at 13 and Fira Code Medium at 15

prisma wave
#

15 damn

#

i thought 14 was big

ocean quartz
jovial warren
#

yeah 15 makes it easy for me to see

ocean quartz
#

I use 16 👀

#

But i am blind af

jovial warren
#

yeah bigger is better as they say

#

I suppose the main reason why I use 15 though is just because it's what I'm used to by now

prisma wave
#

nah 16 is wayy too big

jovial warren
#

I get quite set in my ways

prisma wave
#

you can't fit anything

#

14 is comfortable

jovial warren
#

what's your max line length?

hot hull
prisma wave
#

how do you check

heady birch
#

Does \n work in placeholdesr
@heady birch

prisma wave
#

try it and see?

ocean quartz
heady birch
#

no

#

how to map every block to a colour now 😦

hot hull
#

Not easily

heady birch
#

grass green

#

dirt brown

hot hull
#

Well, atleast not cleanly

heady birch
#

can you get brown

prisma wave
#

have fun doing that manually

hot hull
#

Have an enum I guess which lists every material

#

With it's color

prisma wave
#

or automate it

ocean quartz
#

You're doing the minimap stuff Niall?

prisma wave
#

make a thing that picks the most dominant color

heady birch
#

yeah

#

or use the inbuilt MapRenderer somehow

#

map it to a string

ocean quartz
#

Oh, i'd do it as a plugin instead of placeholder, performance stuff etc

heady birch
#

oh like full fledged plugin

ocean quartz
#

Yeah, remember you'll be scanning 15x15 blocks and getting the highest one, sounds pretty heavy

heady birch
#

oh yeah

frail glade
#

Heyo

onyx loom
#

👋

ocean quartz
#

Heyo

prisma wave
#

yo

jovial warren
#

👋

#

hello Glare

#

how's it going?

frail glade
#

We had such a long call in Paper last night I fell asleep on it apparently.

jovial warren
#

Paper?

frail glade
#

PaperMC Discord.

jovial warren
#

ah okay

frail glade
#

12 hour call.

jovial warren
#

tf?

frail glade
#

Matt was there!

jovial warren
#

also, you're part of the PaperMC project?

ocean quartz
#

I was in the call for like 1 hour, there were too many people xD

hot hull
#

Debating how spigot is doodoo

frail glade
#

We did discuss some of the uh... Interesting API changes being made.

ocean quartz
#

The chunk talk was pretty nice though, a lot of interesting things i had no idea about

jovial warren
#

or was it just in General

heady birch
#

I wanna know how the hex colours are going to work!

frail glade
#

I mean we had like what, 30 people in there for a few hours?

#

Right now, if we understand it right, it's not pretty.

jovial warren
#

I'd imagine it's just the same way it works in just about every other API/program that uses hex

hot hull
#

md chat components?

#

Or something even more ew?

jovial warren
#

you give it an RGB int or a hex string, it changes that in to a colour

frail glade
#

Being told it looks like this §x§r§r§g§g§b§b

hot hull
#

Oh god

jovial warren
#

tf?

hot hull
#

&#<hex>

onyx loom
hot hull
#

Like it's not hard to not fuck shit up

frail glade
#

I'm hoping it can be changed to that.

hot hull
#

Yet they still manage to fuck shit up

ocean quartz
#

Time to make MF-Colors i guess

frail glade
#

But it's not, it's another magical color code.

#

I will be switching to Kyori Text

hot hull
#

How does that work?

prisma wave
#

isn't it only for the json components anyway?

heady birch
#

Time to make MF-Colors i guess
@ocean quartz If you do and it's lightweight that will be cool

#

I'd use it

ocean quartz
#

It'd depend on how messy the Bungee implementation will be, if it's good it's not worth it

prisma wave
#

oh ffs

#

been debugging this random, vague error for a few hours now and I was debugging the wrong function

onyx loom
#

😕

prisma wave
#

and of course it's a 1 liner to fix

#

i hate programming

jovial warren
#

lol

obtuse gale
#

Dose anyone have cobalt unobfuscated bc

#

I need it

ocean quartz
#

What is cobalt?

obtuse gale
#

Prac server

#

I got the obfuscated version

#

But I can’t deobfuscate it

jovial warren
#

that's called leaking

ocean quartz
#

It's obfuscated for a reason

jovial warren
#

not allowed in here

obtuse gale
#

Nope

#

So basicly

#

They dev quit

jovial warren
#

I know you leaked that

obtuse gale
#

And gave everyone the file

#

No

jovial warren
#

really?

ocean quartz
#

Link the original

jovial warren
#

^^^^

obtuse gale
#

He obfuscated it bc he was lazy to leak the src

prisma wave
#

lol

jovial warren
#

it really ain't that hard to leak source code

obtuse gale
#

He’s the owner of the pl

#

He’s uprac

jovial warren
#

just change your private git repo to public

#

simples

#

lol

obtuse gale
#

Uprac is free

ocean quartz
#

Can you link me the plugin? lol

obtuse gale
#

But there other one

#

Sure

#

It is kinda a leaked pl

#

But it’s public asf

#

And old

jovial warren
#

was it given out by the original dev?

obtuse gale
#

Yes

jovial warren
#

sure?

obtuse gale
#

One of the deva

ocean quartz
#

Still waiting for the link lol

jovial warren
#

same

obtuse gale
#

Look

jovial warren
#

here's the link

prisma wave
#

👀

#

lol

ocean quartz
#

Bardy.. come on xD

obtuse gale
#

I did

jovial warren
#

thanks

pallid gale
#

one way to get auto muted

#

nice

jovial warren
#

I can't delete it now

obtuse gale
#

😂

pallid gale
#

its not here

prisma wave
jovial warren
#

oh I still see it

#

wow

#

did I just get rick rolled again?

obtuse gale
#

Lol

prisma wave
#

:))

jovial warren
#

screw you KM

obtuse gale
#

I sent it in dms

prisma wave
#

<3

jovial warren
#

yeah you can't be using leaked shit in here

obtuse gale
#

?

#

It got leaked by the dev

#

He quit

#

😂

#

Loool

jovial warren
#

doesn't matter it's on BS

obtuse gale
#

Ik

#

On github too

#

Everywhere

#

😂

#

I can’t find it on github

#

I use to have

jovial warren
#

?

obtuse gale
#

No

#

Practice pl

ocean quartz
#

Being on Github isn't the same thing as being free, you're still using a leaked plugin

obtuse gale
#

😂

jovial warren
#

it ain't funny

obtuse gale
#

I want it unobfuscated

jovial warren
#

leaked plugins = ban from HelpChat

obtuse gale
#

L0L

#

I just need to unobfuscated it

#

It was never leaked

#

I had it and so was the dev

jovial warren
#

gl unobfuscating it

obtuse gale
#

We give it to the public

#

I lost it tho

#

And he quit mc

jovial warren
#

if it's on BSMC that means it's been leaked

obtuse gale
#

I got all right

pallid gale
#

Well we aint gonna help deobfuscate a plugin

obtuse gale
#

Ffs

#

Your

#

Omg

#

Ffs

jovial warren
#

Well we aint gonna help deobfuscate a plugin
^^^^

obtuse gale
#

Ik

jovial warren
#

what did you expect

pallid gale
#

no matter where it came from

prisma wave
#

just learn skript and write it yourself, ez pz

pallid gale
#

lol

obtuse gale
#

Really

#

I did a long time ago

#

About 1 year

jovial warren
#

this kid's mum won't let him download IJ CE because she thinks it will harm his PC lol

heady birch
#

request paid/free have someone write a new version

obtuse gale
#

But my autistic bich head forgot it

#

Fuck sake

#

Ofc

#

It’s a new pc

pallid gale
#

What does it even do?

obtuse gale
#

And I accidentally broke it 10 time

#

😂

jovial warren
#

why do you even need it unobfuscated? is my question

#

what do you want to do with the source code?

obtuse gale
#

I deleted system 32 a couple times

#

Yes

jovial warren
#

not an answer to my question

prisma wave
#

what are you on

obtuse gale
#

I don’t

ocean quartz
#

Nice

prisma wave
#

lol

obtuse gale
#

No

jovial warren
#

what
do
you
want
to
do
with
the
source
code

obtuse gale
#

A kid really wants it

#

For his mc sever

pallid gale
#

What does it even do?

obtuse gale
#

And I want it also so I can get my ducking pl back

prisma wave
#

why does source code matter?

obtuse gale
#

I just need it unobfuscated

jovial warren
#

both of those questions need answering

#

I just need it unobfuscated
tell me why

obtuse gale
#

I just ducking answered it

jovial warren
#

ducking

obtuse gale
#

Look

#

Use eyes

jovial warren
#

we are using eyes

jovial warren
#

we see kid wants unobfuscate plugin no reason

ocean quartz
#

tell me why
Aint nothing but a heartache

prisma wave
#

lol

obtuse gale
#

Lol

#

Ffs

onyx loom
#

tell me why

jovial warren
#

tell
me
why
you
want
to
deobfuscate
it

obtuse gale
#

I want the fucking plugin so I can have it and it was created by me and another guy ffs

onyx loom
#

what a great song 😍

jovial warren
#

you
don't
even
know
how
to
code

pallid gale
#

Ask them for the source?

#

bom dont be annoying

prisma wave
#

if you created it why don't you have the source code lol

obtuse gale
#

And another kid wants it and he’s my irl friend he’s gonna let me join his group in school

jovial warren
#

alright cube

obtuse gale
#

Becuase I want to join the mafia boys

jovial warren
#

And another kid wants it and he’s my irl friend he’s gonna let me join his group in school
so that's what you're doing it for?

prisma wave
#

that means nothing

obtuse gale
#

My old laptop burned

#

Ffs

ocean quartz
#

tell me why
@onyx loom
Ain't nothing but a mistake

#

It's great yeah

jovial warren
#

you still haven't said what you're doing with the fucking deobfuscated code

obtuse gale
#

My laptop burned and I lost everything

onyx loom
#

backstreet boys ohhhh yeahhhh

heady birch
#

How did it burn

obtuse gale
#

Your dumb

ocean quartz
#

Your reasons keep changing wtf

obtuse gale
#

Fucking giving it tos. Friend

#

And yes

ocean quartz
#

Our dumb

obtuse gale
#

Indeed

#

Ik

#

So my mom doesn’t let me download shit before in my new pc

pallid gale
#

If you made it you should know the obfuscation so deobfuscated should be a breeze?

obtuse gale
#

Bc I broke it 10 times

#

My old laptop burned

heady birch
#

If you made it you should know the obfuscation so deobfuscated should be a breeze?
@pallid gale Lol it doesnt work like that

onyx loom
heady birch
#

Unless you save the obfuscation mapping

obtuse gale
#

Bc I’m fucking stupid little shut

pallid gale
#

nial pls

obtuse gale
#

It don’t work

#

It uses free obfuscation

pallid gale
#

Just remake it anyway?

#

probs old

obtuse gale
#

No

prisma wave
#

lol