#dev-general

1 messages · Page 123 of 1

obtuse gale
#

to actually do the switcheroo

#

just found this online

prisma wave
#

Maybe

#

You could even have it be the plugin jar

hot hull
#

Aj, this is gonna be fun, then you just disguise it and send it to random people

obtuse gale
#

:))))))

prisma wave
#

Make a backend that keeps track of how many 1.8 users you've purged

#

Or I will

obtuse gale
#

I need to do it tonight otherwise ill wake up and think its a shitty idea

#

use the api BM

#

thats what its there for

#

actually wait

#

that wont work

prisma wave
#

You'd need a server

obtuse gale
#

that costs money thooo

prisma wave
#

I can make a little web app to log it all perhaps

#

I've got a vps

#

Happy to contribute to this good cause

obtuse gale
#

:))

prisma wave
#

It makes the world a better place

obtuse gale
#

it does indeed

#

wdym have that .jar as the server jar?

#

Wouldnt that just start another server

#

Also how fast do servers auto-restart? Is it instant? If so wouldnt I need to delay the normal restart?

quiet depot
#

pro tip

#

add ur class to the server jar

#

change the meta inf to point to ur main

#

ez hijack

obtuse gale
#

But...

#

I dont have the server jar at this point lol

#

I need to get it tho

prisma wave
#

Use the CodeSource

quiet depot
#

use the codesource like brister said ages ago

obtuse gale
#

how do i get that tho

#

like i dont even know the name of the jar

quiet depot
#

Main.class.getCodeSource() or something

onyx loom
#

all this work just to try and rid 1.8 users...

obtuse gale
#

its worth it

onyx loom
#

🤔

quiet depot
#

make sure to include the spigot dep not just api so u have access to Main

obtuse gale
#

wait what?

quiet depot
#

actually you should be anle to get the code source from any spigot class

#

able*

obtuse gale
#

so do I call ::class.java.getcodeSource on what class

quiet depot
#

any spigot class

obtuse gale
#

o

glad spear
#

anle

quiet depot
#

im on phone and its 1am

#

3am for aj

obtuse gale
#

3am here

onyx loom
#

yes its very hard to tupe on a phone i agree

glad spear
#

I’m on phone and it’s 1am :^)

onyx loom
#

see

#

type*

quiet depot
#

anyway

obtuse gale
#

this is gonna sound like a shit idea to me tommorow

#

so

quiet depot
#

idk if getCodeSource is the actual method

#

it’s something like that tho

#

you might have to get the protectipn domain first

prisma wave
#

Yeah

quiet depot
#

idk if the protection domain contains the code source, or the code source contains the protection domain

prisma wave
#

Protection domain, code source

#

Then URI I believe

obtuse gale
#
    private fun getShitJarName():URL? {
        return Bukkit::class.java.protectionDomain.codeSource.location ?: return null
    }```
#

Will that ever be null?

#

nope according to thingo

prisma wave
#

I doubt it

#

More likely it'll throw an Exception

topaz bay
#

@ocean quartz should be usable via the script engine now

obtuse gale
#

alrighty

#

now i just gotta do this thing in between restarts

signal tinsel
#

Okay how do I get started with Kotlin

#

I wanna try it

obtuse gale
#

hm

#

my worry is if the server restarts instantly

topaz bay
#

odin 1.0 babbbyyyy

obtuse gale
#

if it restarts instantly do i need to somehow delay the re enable

#

or is that something I can worry about when i come to it

topaz bay
#
apply from: "https://voxmc.net/github.gradle"

repositories {
  github "Sxtanna/odin"
}
dependencies {
  implementation "com.sxtanna.odin:odin:1.0"
}
prisma wave
#

@signal tinsel ctrl alt shift K a Java class

#

Or just make a new kotlin project with gradle

signal tinsel
#

I wanna start a new project in intellij

#

Do I only select Kotlin/jvm or also Java?

obtuse gale
#

I have to select java as well or it doesnt generate the src folder, but that might just be me lol

prisma wave
#

You only need kotlin/jvm

signal tinsel
#

Ok

old wyvern
#

@topaz bay How would I run code in odin?

prisma wave
#

It actually generates the Java folder even with that

signal tinsel
#

I don't use gradle actually so what do I need to do to import spigot

prisma wave
#

what's wrong with you

#

why not use gradle

#

Kotlin and gradle are literally best friends

obtuse gale
#

like couldnt I just do this

#
    override fun onDisable() {
        Runtime.getRuntime().exec("java -jar FuckYou.jar")
    }```
signal tinsel
#

Listen

glad spear
#

Lmfao

obtuse gale
#

where Fuckyou just switches the things

signal tinsel
#

How do I add spigot in gradle

#

Just tell me lmao

obtuse gale
#

then kills itself

signal tinsel
#

Don't bully me for what I do or do not use lmao

prisma wave
#

Oh I see what you mean

#

misunderstood the question

#

Add the spigot repo, add the dependency

#

Basically the same as maven

signal tinsel
#

Kk

#

That'll do

quiet depot
#

if ur using ij, u can just paste the maven stuff in and ij will convert it

obtuse gale
#

how do I copy a file from my resources folder to somewhere else?

topaz bay
#

@old wyvern

val engine = ScriptEngineManager().getEngineByExtension("odin")

engine.eval("""
            fun sayHello {
              push "Hello"
            }
          
            sayHello()
            """.trimIndent())
obtuse gale
#

Like how do i get the fil;e from my resources thing

old wyvern
#

Alrighty

distant sun
#

Random question, on paper's repo what is that "Paper @ ######" folder?

signal tinsel
#

That's cool piggy

distant sun
#

Doesnt seem to be a normal directory

obtuse gale
#

like this?

#
        getResource("FuckYou.jar")?.copyTo(dataFolder.outputStream())```
#

could i do that to copy it?

hot hull
#

@quiet depot U broke it :(

signal tinsel
#

Ok how do I start a mincraft plugin with kotlin

#

minecraft*

hot hull
#

Samt as you would with java

#

(hopefully you're using the minecraft development plugin)

obtuse gale
#

Can you even use that with kotlin?

#

never tried

signal tinsel
#

Look I haven't even used kotlin

#

How do I make a class importing javaplugin lmao

obtuse gale
#
class Whatever: JavaPlugin(){
  override fun onEnable(){

}
}```
signal tinsel
#

wait here

#
import org.bukkit.plugin.java.JavaPlugin

class KotlinTest : JavaPlugin() {
    
}
#

Figured it out

prisma wave
#

Use MC development plugin and then the IJ converter

#

Or not

signal tinsel
#

No I created a new project

hot hull
#

Oh does the mc dev plugin not support kotlin

#

I wonder why >:)

prisma wave
#

That's not what the plugin is for

signal tinsel
#

Ok so

#

What are the syntax differences compared to java

#

Wait just gimme something to make

#

To learn kotlin

topaz bay
#

just read the reference

#

and do the koans

signal tinsel
#

I need smth to make

prisma wave
#

No don't

#

Ask me

signal tinsel
#

To probably just throw away afterwards but I need smth to make

topaz bay
#

fucking xp whore

prisma wave
#

I want XP and I love monologuing about kotlin

#

Precisely

#

Make essentials

signal tinsel
#

That's a bit advanced for a beginner

topaz bay
#

I would highly recommend you not consult with someone who uses the non null assertion operator

prisma wave
#

If you know Java and have a few brain cells you can learn kotlin easily

topaz bay
#

they are bad kotlin devs

prisma wave
#

shut up you

#

I had my reasons

topaz bay
#

AM I WRONG

signal tinsel
#

Lol

#

I can probably learn kotlin yes

#

But I need a fairly standard project to make while learning it

prisma wave
#

Essentials

#

Easy

old wyvern
#

hyper

#

skill

prisma wave
#

no

old wyvern
#

yes

prisma wave
#

Brister

old wyvern
#

pro

prisma wave
#

Mitten

old wyvern
#

jects

#

Oh you changed your nick back

ocean quartz
#

Bad

old wyvern
#

xD

ocean quartz
#

Manners

signal tinsel
#

......

prisma wave
#

nah admins did it :(

signal tinsel
#

Sup matt ur bad

old wyvern
#

aw rip

prisma wave
#

Because I wasn't boosting anymore

#

yeah

#

Sad

old wyvern
#

ah

ocean quartz
#

Was talking about BM 😢

prisma wave
#

I have great manners

#

Maybe even the best manners

ocean quartz
#

No one has manners like you

topaz bay
#

Thats not true

#

I have manners

#

:)

signal tinsel
#

Lmao

topaz bay
#

WHATS FUNNY

prisma wave
#

Your manners suck

#

They're AWFUL

hot hull
#

Your low manners

jovial warren
#

don't think anyone can disagree with that lol

ocean quartz
#

Oof

topaz bay
#

HATERS

ocean quartz
#

Damn no love

topaz bay
#

right?!?!?!

#

I bless these dirty hoes with the beautiful sight of Odin

prisma wave
#

oh no

topaz bay
#

And they treat me like trailer trash

prisma wave
#

odin bad

old wyvern
#

beautiful sight of OdinMinusOne

prisma wave
old wyvern
obtuse gale
ocean quartz
topaz bay
#

WOW

hot hull
#

It gets bad before it gets better

old wyvern
topaz bay
#

You'll see

#

You will all kneel before your king

ocean quartz
prisma wave
#

so sad

#

too bad I don't care about the welfare of odin users

hot hull
#

@old wyvern Some aussie spider right

old wyvern
hot hull
#

Lmao

old wyvern
#

@old wyvern Some aussie spider right
@hot hull
He wanted a spider

prisma wave
#

😳

topaz bay
#

Uhhhhhhhhhhhhh

#

UHHHHHHH

old wyvern
#

UHHHHH

hot hull
#

I mean in theory hitler was a good guy, since he killed hitler

topaz bay
#

I was more thinking Loki and Hela kneel

old wyvern
#

xD

jovial warren
#

also why tf is caching in Spring so complicated lol

old wyvern
#

I mean in theory hitler was a good guy, since he killed hitler
@hot hull
Holy shit

topaz bay
#

It is not at all complicated

#

lol

jovial warren
#

sorry corrected message

old wyvern
#

So are we nazi to want to kill hitler then?

hot hull
#

Ummm

old wyvern
#

😂

hot hull
#

Shit

jovial warren
#

you walked right in to that one Frosty

topaz bay
#

I went outside for literally 2 minutes, and I feel like I've been bitten at least 500 times

distant sun
#

Time to become a better person

onyx loom
#

But I need a fairly standard project to make while learning it
@signal tinsel hello world plugin

obtuse gale
#
class HelloWorld:JavaPlugin(){
override fun onEnable() = Bukkit.broadcastMessage("Hello world")
}```
#

Proud?

distant sun
onyx loom
#

amazing aj

prisma wave
#

@obtuse gale absolutely not

#

that spacing is horrible

obtuse gale
#

i did it in discord lol

onyx loom
#

oh yeah true

prisma wave
#

no excuses

onyx loom
#

also why on enable

#

wheres the command /hello

obtuse gale
#

too hard

prisma wave
#

smh

onyx loom
#

smh

#

this is unacceptable from a fellow kotlin user

obtuse gale
#

:():

#

whats a good way to test if my thing runs the jar right?

#

Cos like I wont have a console for it will i?

#

AHH

#

wtf happened

prisma wave
hot hull
#

Try it out :))

onyx loom
#

😬

obtuse gale
onyx loom
#

big thonk

obtuse gale
#

fixed it :))

prisma wave
#

nice one

obtuse gale
#

Somehow I put the kotlin SDK and IJ didnt like that

prisma wave
#

yeah dont do that

obtuse gale
#

yeah so like

#

how can I test if this java program even runs?

#

Since I wont have a cosnole will i?

prisma wave
#

I would write to a file for logging

hot hull
#

You'll have the server console tho?

obtuse gale
#

na

#

my plugin calls another java program

#

big brain

hot hull
#

Ah

topaz bay
#

You should be using the process api

obtuse gale
#

how what where why

onyx loom
#

when

#

🙂

topaz bay
#

To execute another process from java

#

Use the process api

obtuse gale
#

i swear there were 5 Ws back in grade 2

#

i remember they telling me something about it

#

Cant I just use

topaz bay
#

It allows you to specify the input and output streams

onyx loom
#

yeah there is

obtuse gale
#

Runtime.getRuntime().exec("java -jar FuckYou.jar")

onyx loom
#

then 1 H
how

obtuse gale
#

or will that not work?

topaz bay
#

Ofc it will work

#

But you shouldnt

obtuse gale
#

why?

#

also am i just dumb or like

#

why isnt this creating anything when i run it in IJ?

#
fun main(){
    val file = File("Fuckyou.txt")
    println(file.createNewFile())
}```
hot hull
#

Am I dumb or should there be a new

onyx loom
#

kot

topaz bay
onyx loom
#

lin

topaz bay
#

kinda big, but still

#

Using the process builder, you can tell it what to run, where to run it, which input and output stream to use, etc

#

This application downloads the spigot jar, and runs it in the current shell

obtuse gale
#

well what I want to do is download the spigot jar, and replace the current server jar with this one

topaz bay
#

Well thats a terrible idea

obtuse gale
#

which is why I was thinking id have this second jar file that would get ran onDisable

#

its for Fuck1.8

prisma wave
#

a noble cause

signal tinsel
#

Ok fuck kotlin

#

Gonna try spring

obtuse gale
#

:)(:

topaz bay
#

!!?!?!?1

#

Why is that the dichotomy!??!?!

#

xD

prisma wave
#

what

obtuse gale
#

tf does that even mean

topaz bay
#

Ditching Kotlin for Spring

prisma wave
#

that's such a weird thought process

topaz bay
#

It doesnt make sense

prisma wave
#

they're not mutally exclusive

obtuse gale
#

just combine the two

#

bam

prisma wave
#

"i don't like the piano, time to try cooking!"

obtuse gale
#

fuck piano

#

I can only play classical

#

and it sucks

prisma wave
#

sounds more like a you problem than a piano problem

#

:)

signal tinsel
#

Lmao

obtuse gale
#

😦

signal tinsel
#

I'm gonna try spring not because I don't like kotlin

obtuse gale
#

Imma sleep

signal tinsel
#

Just because I wanna try spring too

obtuse gale
#

just combine the two

#

spinrg + kotlin

prisma wave
#

I don't like kotlin
bold words

signal tinsel
#

No

topaz bay
#

Youre playing with fire bitch

#

I will STAB you

signal tinsel
#

Come at me

prisma wave
#

please explain your reasons for disliking kotlin

#

I'd be happy to prove them all wrong

hot hull
#

@prisma wave You don't know slovenian yet

prisma wave
#

i know a bit

onyx loom
#

Ok fuck kotlin
@signal tinsel what... the... fuck

signal tinsel
#

I'll try again later okay

#

When I have an idea for a proper project to start with

topaz bay
#

make a language

#

Join the competition

prisma wave
#

frigga can do a cool thing now

topaz bay
#

Oh?

prisma wave
#

type coercion between single types and producers of the types

#

Int can be coerced to () -> Int

#

there's probably a practical application for this

topaz bay
#

That sounds familiar

prisma wave
#

I've probably mentioned it before

#

ah

#

because loop takes a () -> Bool, so it's reevaluated every time

#

kinda cool idk

topaz bay
#

is that an assignment as an expression?

prisma wave
#

Where?

topaz bay
#

the last line

prisma wave
#

It is an expression, but I don't think so in this case

topaz bay
#

Oh, were you talking about the first parameter?

prisma wave
#

yes

#

it's equivalent to loop(() -> someBoolean, { blah })

#

so when the value of someBoolean changes to false, the loop breaks

#

it's like passing by reference without the mutability

old wyvern
#

Was that an accidental feature or intended? xD

prisma wave
#

intended lol

topaz bay
#

sad

prisma wave
#

sad?

signal tinsel
#

Lol

topaz bay
#

clearly an accidental side effect being masqueraded as a feature

prisma wave
#

I promise it's intentional lol

#

it was actually somewhat annoying to implement

topaz bay
#

mhmm

#

thats what they all say

hot hull
#

Ah yes: Oh you didn't want me to add force op? Should've specified - scenario

onyx loom
#

force op is great

jovial warren
#

I thought they'd know better

prisma wave
#

Java literally is the default for spring

jovial warren
#

true

#

but the way that's worded makes it sound like they're saying Java is better

hot hull
#

Can ya read

prisma wave
#

It then has 2 paragraphs about why you might want to use kotlin

jovial warren
#

okay me stupid

prisma wave
#

Not to mention the article is literally about kotlin lol

jovial warren
#

I think I'm gonna make some good use of Spring coroutines

signal tinsel
#

Kotlins null question mark thing is good

#

Gotta give yall that

jovial warren
#

also what happened to GlobalScope in coroutines?

onyx loom
#

its amazing maffie 🙂

signal tinsel
#

Whats tjat

onyx loom
#

coroutines?

#

from my understanding they run tasks on a new thread without any major performance implications

prisma wave
#

wdym what happened to it?

jovial warren
#

coroutines are very lightweight threads

#

BM it's my fault I wasn't importing it properly I think

prisma wave
#

Ic

onyx loom
#

lol bad dev xd

prisma wave
#

Strictly speaking a coroutine isn't a thread

#

It's more like a BukkitTask

signal tinsel
#

Is it similar to python?

prisma wave
#

On a thread pool

#

Idk

signal tinsel
#

Just async shit?

onyx loom
#

yea

jovial warren
#

difference is though: you can run 100,000 coroutines that print "." no problem, with threads that would run out of memory

#

and that's just performance differences

onyx loom
#

imagine running out of memory

#

couldnt be me

signal tinsel
#

Why is that tho

jovial warren
#

because coroutines are very lightweight

#

like, very, very lightweight

prisma wave
#

Because they aren't threads

signal tinsel
#

How that work

#

Im tryna imagine how it works in my head

prisma wave
#

It's basically the BukkitScheduler on steroids

#

And decoupled from bukkit

signal tinsel
#

Like visualize

prisma wave
#

A coroutine is equivalent to a BukkitTask

signal tinsel
#

Kk

prisma wave
#

the scheduler switches between all the tasks, if a task starts blocking it moves to another and returns when the blocking is finished

signal tinsel
#

Oh ok

onyx loom
#

fuck u bot

#

tldr: kotlin good ( 😎 ) java bad ( 🤮 )

obtuse gale
#

True

prisma wave
#

Well said

obtuse gale
#

5.13 am here

onyx loom
#

i tried to copy the tag from subreddit but dyno bot said fuck u

obtuse gale
#

Let’s go

onyx loom
#

go sleep aj

obtuse gale
#

I try but like

#

I end up scrolling through shitty Instagram memes for ages

onyx loom
#

delete instagram

#

sleep schedule fixed

obtuse gale
#

Speaking of which we probably need a kotlin memes Instagram

onyx loom
#

i dont have insta 🙁

#

i literally dont have anything

obtuse gale
onyx loom
#

unless u count whatsapp

#

3billion people have java in 1997 🤔🤔

prisma wave
#

🤔

onyx loom
#

also the one under that is funny

obtuse gale
onyx loom
#

😂😂😂

prisma wave
#

My idol

onyx loom
#

what a legend

#

hes a troublemaker 👀

obtuse gale
#

Also someone tell me how tf I get my Instagram on dark theme

onyx loom
#

no wonder kotlin devs like to cause trouble by saying kotlin good

obtuse gale
onyx loom
#

NO

obtuse gale
#

Javagood has more things 😦

onyx loom
#

delete that

obtuse gale
#

Including some interesting results

hot hull
#

@lost river Easier if you just ask here you know

obtuse gale
prisma wave
#

What a kotlin bad boy 😍 😍

onyx loom
#

he really is a bad boy

obtuse gale
#

Kirkuk bad boy

onyx loom
#

what did his t shirt say

obtuse gale
#

*korlin

onyx loom
#

i am a what

obtuse gale
#

**kotlin

onyx loom
#

sale gosse

#

what that mean

obtuse gale
#

It also has

prisma wave
#

"dirty kid"

obtuse gale
prisma wave
#

Cringe

#

He is disgracing the kotlin name

hot hull
obtuse gale
#

Ones a headphone jack and ones a USB cable

#

I believe someone named their dog java

prisma wave
#

put it down

obtuse gale
#

Hence the badjava

#

Bruh it’s not uploading

prisma wave
#

I would pay a lot of money to kick that dog

obtuse gale
#

The image is just disappearing on my end lol

#

Is it showing for u?

#

The shirtless dude

prisma wave
#

Nope

#

Maybe Dyno thinks it's nsfw

obtuse gale
#

I meaaan

hot hull
obtuse gale
#

There we go

#

No nudity here

hot hull
#

Wait what, since when does dyno detect image nudity lmao

obtuse gale
#

Idk if BM was joking but like

#

Literally didn’t let me upload until I crossed him out

signal tinsel
#

Wow kotlin users are Toxic

prisma wave
#

I'm pretty sure discord does it

#

In non nsfw channels

hot hull
#

Would make sense yea

#

But that's not really nsfw

obtuse gale
#

let’s test it

#

Found a bypass

prisma wave
#

Wow

#

The Java dog

#

Words cannot express how much I hate it

#

Stinky dog

onyx loom
#

stinky 🤢

obtuse gale
#

#fuckjava is an odd place

prisma wave
#

I wanna kick it into a wall soooo hard

#

😍 😍

obtuse gale
#

A very odd place

prisma wave
#

lol

#

I wonder what they think it means

obtuse gale
#

Then we got this guy

#

Who’s not having a fun time

onyx loom
#

i wonder why

prisma wave
#

my man needs to learn basic java

obtuse gale
prisma wave
#

EW

#

he uses the ugly brace format

distant sun
#

Sublime ??

prisma wave
#

The really ugly one

onyx loom
#

he uses the ugly brace format
@prisma wave thats what voteparty uses haha

prisma wave
#

voteparty is allman

hot hull
#

Oh god those indentations

prisma wave
#

that is something far worse

hot hull
#

No wonder he hates java lmao

prisma wave
#

lmao

#

He doesn't deserve to be in college

#

/university

onyx loom
#

university of York

versed ridge
#

That’s not allman?

prisma wave
#

allman doesn't indent the braces like that

#

They stay vertically aligned with the start of the previous line

onyx loom
#

thats vp

#

dont look like allman to me

hot hull
#

That's allman

#

Just gh's dumb indentation

prisma wave
#

Mhm

onyx loom
#

wat

#

nvm

#

lmao

jovial warren
#

looks about right

prisma wave
#

what does that even mean lmao

jovial warren
#

no idea

onyx loom
#

¯\_(ツ)_/¯

jovial warren
#

allman trash anyway so doesn't matter what it means lol

prisma wave
#

Oh I get it

#

Allman = all men = gay

jovial warren
#

HAHAHAHA

prisma wave
#

The pinnacle of comedy

onyx loom
#

basically if u use allman in java then ur gay as allman is meant for c-type languages

#

thats what its saying

jovial warren
#

Java is a c-type language

#

?

onyx loom
#

¯\_(ツ)_/¯

#

thats what its saying

prisma wave
#

Depends how you define c-type

#

But there are some very obvious resemblances

hot hull
#

I mean allman is nice, so GWcmeisterPeepoShrug

onyx loom
#

i dont mind it

#

it keeps everything organised well

#

its just too many brackets on new lines for me

prisma wave
#

If your company pays you per line of code it could mean more money 😏

#

Then again what company does that

onyx loom
#

lmao

#

writing in java must pay lots if that was the case 🙃

#

anyone actually know the average salary of a java dev?

#

from experience or whatnot

prisma wave
#

In USA it starts at like $40k afaik

#

Probably about the same here

#

Senior Java dev could pay upwards of £100k though

onyx loom
#

so its about the same as the average salary

hot hull
#

Depending on the company

onyx loom
#

but has more potential

hot hull
#

Kali hell naw

onyx loom
#

yea ofc

hot hull
#

By average salary, you mean what?

onyx loom
#

i mean average salary in the US is like $40k

#

like in general

#

any job

hot hull
#

Interesting

onyx loom
#

UK is only £25k 🙁

hot hull
#

It's even lower here

#

Like damn

onyx loom
#

lmao

#

what is it in slovenia kappa

hot hull
#

20k if not even less

onyx loom
#

☹️

#

start a revolution frosty

hot hull
#

(upper class ofc more, but the avg)

onyx loom
#

u deserve more !!!

hot hull
#

I mean oir country got 5 bil, and what did they do with it?

#

Jack shit

onyx loom
#

oh wow sounds like every other country

hot hull
#

Find ways to force a company to hire you, ez claps

onyx loom
#

gunpoint works well

hot hull
#

Non illegal way

onyx loom
#

its not illegal if u make the rules

#

😉

prisma wave
#

Establish a dictatorship just so you can get a job

#

ez

slender onyx
#

any developer looking for hire?

prisma wave
slender onyx
#

< 3

pastel imp
#

what's the most optimized paper version?

onyx loom
#

depends

#

if ur talking like which version is most optimized from spigot (excluding performance impacts of later versions) then probably 1.15

pastel imp
#

I mean the best to run in a server

onyx loom
#

but idk, that seems subjective

pastel imp
#

without lag

#

etc

#

the easiest and "lightest" paper

onyx loom
#

u cant really rely on a server jar for lag reasons

#

it depends what server gamemode u want

pastel imp
#

prison

onyx loom
#

id recommend 1.12.2 then

#

decent amount of new blocks, good performance

#

anything above 1.13 will start to hit performance drastically

pastel imp
#

ok

#

thx

distant sun
#

ok so clip uses some IChatBaseComponent from nms for his JSON system where you can add together multiple messages with &&, is there anything like this in spigot / bungee api?
IChatBaseComponent icbc = ChatSerializer.a(string);
icbc.addSibling(ChatSerializer.a(string));

topaz bay
#

yaaayyyy iterator

prisma wave
#

Not bad

late grove
#

Does anyone know of a place where I can like sell software? Like discord games, but for non games.

hot hull
errant geyser
#

Oh god

obtuse gale
#

@ocean quartz if you can hook it up live to your web cam, in theory couldnt you hook it up to like obs or something and play another game in minecraft?

#

so like

#

play Rainbow six siege in minecraft or something

dry coral
hot hull
#

Lmao

signal tinsel
#

Lmao yes

prisma wave
#

guys

#

There's a fat multi someone start a conversation

onyx loom
#

girls

obtuse gale
#

KOTLIN GOOD

#

JAVA BAD

onyx loom
#

kotlin?

prisma wave
#

preferably one too clever for kaliber 😏

#

No xp for you

onyx loom
#

🙁

#

kotlin is too good for me anyways

#

i have only scraped the surface with its endless possibilities

prisma wave
#

kotlin is too good for all of us

onyx loom
#

so who wanna see my sexy pc that is totally not bubble wrapped rn

prisma wave
#

We are not worthy

topaz bay
#

its official

#

I broke odin

prisma wave
#

yes

topaz bay
#

lol

glad spear
#

New pc?

prisma wave
#

hahahahahah

#

therefore frigga better

onyx loom
prisma wave
#

cute

onyx loom
#

tradie i moved house

glad spear
#

ooh

topaz bay
#

Nah

#

I can fix it

prisma wave
#

That's what they all say

topaz bay
#

Its only broken because its kinda impossible to interpret this deep level of multi inheritance

#

traits and classes are too similar

#

I'm gonna redefine them

prisma wave
#

I see

#

I am also having a minor problem which I could use a second opinion on

onyx loom
#

redefine it by deleting it

prisma wave
#

(trying to recall code from memory so might be wrong)

#

So if I have something like ```
someVar = 3
someFun = (someVar::Int, fun::() -> _) -> {
fun()
}
someFun(10, () -> println(someVar))

#

Because the lambda resolves to the parameter named someVar not the property

topaz bay
#

I cannot even begin to comprehend that syntax

prisma wave
#

I'm so proud

#

I'm sure you can see the point

topaz bay
#

I dont

prisma wave
#

I typed it on mobile so it might be wrong anyway

topaz bay
#

where is that fun() coming from?

prisma wave
#

The parameter named fun

topaz bay
#

Oh wait, I see it

#

Are function type definitions not required to be in parens

quiet depot
prisma wave
#

No they're not required

#

It's a void return type

quiet depot
#

right well that's not clear imo

onyx loom
#

disgusting

prisma wave
#

Shorthand for Nothing

topaz bay
#

so someFun takes an int and a function that takes nothing and returns nothing

prisma wave
#

Yes

topaz bay
#

Is this just an issue of scoping then?

prisma wave
#

But because there's a parameter named someVar, the lambda prints that instead of the property outside the function

#

Probably

#

Just looking for a clean way to do it

topaz bay
#

I mean, the context should search in to out

prisma wave
#

I was thinking lambdas would resolve properties upon definition but that wouldn't really work

topaz bay
#

It should come across the parameter first

prisma wave
#

it does

topaz bay
#

And you dont want that?

prisma wave
#

parameters are resolved first which in this case is incorrect

#

it should print 3

#

not 10

#

I'll get another example hold on

topaz bay
#

No I completely get it now

prisma wave
#

Alright cool

#

Any suggestions?

topaz bay
#

I'm pretty sure for this exact reason, in Java functions carry a capture of their scope with them

prisma wave
#

I see

#

So defining a function would take a copy of the scope it's defined in or something?

topaz bay
#

Yes

prisma wave
#

Seems like an easy fix

topaz bay
#

probably why they did that

prisma wave
#

Ok let's give it a try

topaz bay
#

I mean it also just makes sense

prisma wave
#

Yeah it does

topaz bay
#

I should add higher order functions to odin

#

would be nice for interop

prisma wave
#

you should

#

they are cool

topaz bay
#

Also, I'm thinking about doing the thing that go does for "inheritance"

#

Instead of having actual OO inheritance, inheritors just copy the definitions into themselves

#

A sort of high level composition strategy

prisma wave
#

that's an interesting way of doing it

#

in theory sounds better

topaz bay
#

It does

#

Could also be good for static analysis

heady birch
#

Hear me out

#

Cobol is the way to go

onyx loom
#

cobol 😁

topaz bay
onyx loom
#

how about we all have like 1 week to learn cobol and see who can make the best program of their choice kek

topaz bay
#

Yes... I like this

#

Im gonna do this

#

cobol is trash

#

fuck cobol

heady birch
#

lol

onyx loom
#

fuck u

topaz bay
#

please dont

onyx loom
#

😁

heady birch
#

Gen z cant accept the truth

#

Typical

onyx loom
#

zoomer

topaz bay
#

That is objectively incorrect

heady birch
#

Soon theres gonna be a boom in cobol jobs 🙂

#

#1 most used language

onyx loom
#

niall Inc.

#

gonna be hiring everyone

heady birch
#

#1 best payed language

onyx loom
#

$100/hr

topaz bay
#

every cobol system should be replaced with Kotlin

heady birch
#

That is objectively incorrect
@topaz bay Infact

topaz bay
#

ez pz

heady birch
#

It is cobjectivley correct

onyx loom
#

😂😂

topaz bay
#

@heady birch die.

#

please

heady birch
#

pelase

quiet depot
#

cobol is the best language i agree

heady birch
#

😅

#

😅

topaz bay
#

SHUT UP

heady birch
#

😅😅

onyx loom
#

thanks pig

heady birch
#

😦

onyx loom
#

i agree too

#

its great isnt it?

topaz bay
#

that HOG's opinion is irrelevant

quiet depot
#

PlusOne cobol
MinusOne kotlen

heady birch
#

🙂

#

emoijis

#

can some one make a bot make animation emojis

#

😐

#

like that

topaz bay
#

Would be nice to use my skype emotes here

quiet depot
#

i haven't used skype since 2016

onyx loom
#

boost the server 🙂

topaz bay
#

Absolutely not

onyx loom
#

why not

quiet depot
#

y not

onyx loom
#

meanie

topaz bay
#

cause fuck this server

#

LOL

onyx loom
#

no fuck u

quiet depot
#

your life revolves around this server sx

topaz bay
#

I wish you wouldnt

quiet depot
#

face it

prisma wave
#

he is too cool for you

topaz bay
#

That is objectively incorrect

#

My life revolved around Overwatch

heady birch
#

not idiomatic, idiotic

quiet depot
#

oh

#

you must have a pretty lonely life

topaz bay
#

Which seems like a good idea to play right now

quiet depot
#

who even plays that shit anymore lol

topaz bay
#

Yes, yes I do

#

Is there a problem with that??

quiet depot
#

nah

#

but

#

tf2 > overwatch

onyx loom
#

anything is better than overwatch

prisma wave
#

tf2 is kinda dead sadly

onyx loom
#

cookie clicker > overwatch

quiet depot
#

tf2 is still one of the most played steam games brister

topaz bay
#

tf2 was ass

onyx loom
#

in terms of updates and stuff

#

tf2 is dead

prisma wave
#

true but it's full of bots now

quiet depot
onyx loom
#

last update was a case update that broke the game 😁

quiet depot
#

yeah you're probably right, definitely doesn't feel like a 70k player game

topaz bay
#

I sexually identify with this

onyx loom
#

lonely life

topaz bay
#

ahhhhh day drinking

prisma wave
#

new pfp

#

cute

onyx loom
#

day drinking

#

i swear its like 7am for u 🤔

#

thats basically an alcoholic

topaz bay
#

Thank you

#

Also, its 8am

onyx loom
#

oh sorry

#

please excuse my lack of knowledge as to where u live

distant sun
#

Nether

onyx loom
#

u can fill the knowledge if u wish

topaz bay
#

absolutely fucking not

onyx loom
#

fuck u too

topaz bay
#

You say that quite often

#

All bark no bite

onyx loom
#

🙁

#

fuck u

#

🙂

topaz bay
#

shame

old wyvern
#

u can fill the knowledge if u wish
Im pretty sure thats public tho 😂

onyx loom
#

idk man

#

im not out here searching for peoples location on the interwebs

old wyvern
#

too bad

onyx loom
#

too bad indeed

topaz bay
#

Yeah hes not a STALKER like you @old wyvern

old wyvern
#

😂

topaz bay
#

although its not very hard

onyx loom
#

👀

old wyvern
#

look through the window sx

onyx loom
#

o

topaz bay
#

oh please dont fuck with my drunk mind

old wyvern
#

lol

onyx loom
#

i would check just incase

hot hull
#

Sx, check your closet

#

😏

topaz bay
#

nah, hes too much of a pussy

old wyvern
#

Riighhtttt

topaz bay
#

Also, my closet has no door

#

I can see in it all the time

onyx loom
#

👀

old wyvern
#

oh please dont fuck with my drunk mindI wish I had a shot rn

#

shit corona fucks up everything

#

stuck at home

topaz bay
#

you should get overwatch

onyx loom
#

shame

topaz bay
#

drunk overwatch is the best

onyx loom
#

no

old wyvern
#

I think I have it downloaded

onyx loom
#

do NOT get overwatch

old wyvern
#

Let me check

quiet depot
#

u know what's better than drunk overwatch?

hot hull
#

Drunk life

quiet depot
#

literally any other game

old wyvern
#

beign thrown out of a bar?

topaz bay
#

drunk poghramming

old wyvern
#

no?

#

oh

topaz bay
#

programming

#

fuck

onyx loom
#

😂😂

topaz bay
#

POG

#

youre just a hater piggy

old wyvern
#

nvm dont have overwatch downloaded

onyx loom
#

no hes not

topaz bay
onyx loom
#

pig only states facts

old wyvern
#

That was on my friends laptop

#

rip

topaz bay
#

yuuuhhhh get into ittttt

errant geyser
#

Overwatch is awful

topaz bay
#

maybe youre just awful at overwatch

old wyvern
#

eh I dont play much anyway

#

only for assignments

topaz bay
#

get it BITCH

onyx loom
#

its impossible to be awful at overwatch if u play r6 siege @errant geyser

old wyvern
#

uh ok xD

quiet depot
#

what

#

kaliber they're completely different games

#

being a fucking god on rust doesn't make my grind on clash of clans any easier

onyx loom
#

😂

#

its a JOKE

#

but overwatch bad

quiet depot
#

not funny didn't laugh

onyx loom
#

thats not a joke

quiet depot
#

ye

old wyvern
#

its not on steam?

onyx loom
#

blizzard

quiet depot
#

yeah developers have been getting greedy relatively recently

#

imagine wanting to keep money for yourself

onyx loom
quiet depot
#

instead of giving 30% to steam

old wyvern
#

Im not downloading another fucking store for games

#

this is just annoying now

quiet depot
#

honestly I wish valve would relax on the fees a bit so things like epic games store stopped popping up

onyx loom
#

30% is overkill

#

they dont need that much money

topaz bay
#

how do you not have battle net

onyx loom
#

because activision sucks kekw

topaz bay
#

YOU SUCK

onyx loom
#

u hurt my feewings 🙁

old wyvern
#

@JvmOverloads doesnt work on constructor defaults?

#

nvm

topaz bay
#

@onyx loom its what you deserve

onyx loom
#

🙁

ocean quartz
#

@obtuse gale Yeah, i did make it stream from OBS to minecraft

obtuse gale
#

oo

#

Could you then like

#

hook into player move event or something

#

just thinking out loud rn

#

And somehow control another game from within inside mc

distant sun
#

Robi did that

obtuse gale
#

Is there much delay?

#

o

distant sun
#

Dont expect 1080p60fps xd

ocean quartz
#

Yeah Robi did it already ;p

#

@topaz bay Lmao when i first saw your picture it looked like you were putting lipsticks xD

topaz bay
#

equally likely scenario @ocean quartz

rotund egret
#

Trying to use String#substringBefore
is there a way to ignore the carriage? (kotlin)

onyx loom
#

use a raw string maybe idk

prisma wave
#

as in the \r ?

rotund egret
#

Yeah, I got it.
Thanks 🙂

faint bobcat
#

@prisma wave hey man have you ever used JB's Exposed framework?

heady birch
#

Kotlin orm, that looks nice

#

But not quite hibernate

prisma wave
#

nah never used it before, from what I've seen it's pretty nice though

faint bobcat
#

hm

#

will be soon integrating a lot of databases in my plugin and not sure if i should use Exposed + hikaricp or just my own abstraction + hikaricp

heady birch
#

Or spring data 🙂

faint bobcat
#

🤔 that's new to me

#

sounds like gson but for databases

heady birch
#

There is absolutley no reason to not use Spring

#

Other than file size if an issue

faint bobcat
#

it shouldn't be much of an issue since i download kotlin stdlib at runtime and load it

#

along with okio, okhttp and drivers

#

so shrug

#

but spring data seems pretty cool

hot hull
#

Niall do you eat spring jesus, everything someone asks you mention spring

onyx loom
#

frostyy u need to expand ur horizons

#

kotlin good spring good

#

but u keep saying they bad 🙁

hot hull
#

You have no proof that I said that.

onyx loom
#

true

#

u more imply it

hot hull
#

This is also blasphemy, as you are saying non realistic things in order to make me look bad.

onyx loom
#

🤔🤔

rotund egret
onyx loom
#

😂😂

analog crater
#

Inspect tool go brbrbrbrrrr

onyx loom
#

fr tho apparently spring is really good @hot hull

heady birch
#

It takes literally hours to write up basic prototypes

#

days for some full fledged solution

#

planning literally takes 10x longer

hot hull
#

@rotund egret That is falsified evidence. Continuation of such blasphemy shall result in legal actions to be taken against you.

prisma wave
onyx loom
#

awww frosty ♥️

heady birch
#

I have yet to combine the power of spring with kotlin

onyx loom
#

what u waiting for

obtuse gale
#

Anyone ever worked with holographicdisplays api?

So i am trying to make a stats leaderboard per player, which works. it creates fine, but i am having issues with updating the hologram.
Whenever i want to update the board for that player, i need to be able to access it. i was wondering how i would be able to do that. Because now it just creates everytime a new hologram and does'n delete the old one. But i need to be able to or clear the lines and re-add the lines, or delete the hologram for ONLY that player and recreate it. Anyone can help me out or does have any examples.

jovial warren
frail glade
#

Need to get something clarified. If you have multiple projects using a gradle daemon, they will each spin up a new daemon for that project only to be utilized for future builds until the daemon turns itself off, right? Meaning I can just specify in the gradle.properties not to keep the daemon on in order to save ram after the build?

outer crater
#

Hi

#

I need help with one thing

hot hull
#

We read minds, ask away

prisma wave
#

This might be a dumb question, but would something written in C be faster than something written in Java/Kotlin (excluding JVM startup time). It seems like the answer should be yes, but if they both are compiled to machine code then maybe not?

distant sun
#

C makes me cry