#dev-general

1 messages ยท Page 124 of 1

prisma wave
#

true

#

i wanna learn it though

distant sun
#

I must learn if it I enter uni

old wyvern
#

if they both are compiled to machine codeWait what?

#

no

#

C is compiled to machine code

#

not the others

#

Speed depends on context

prisma wave
#

java bytecode is AOT compiled

old wyvern
#

If you have written the program well then C would def be faster but since most don't always use the most efficient way in a lot of cases Java/Kotlin do reach close due to internal optimizations.

prisma wave
#

JIT*

old wyvern
#

To jvm bytecode

#

It is interpretted

#

from there

prisma wave
#

huh

#

i always thought it was compiled to machine code by the jvm

onyx loom
old wyvern
#

No its compiled to JVM bytecode and interpreted by JVM

prisma wave
#

it's not translated?

onyx loom
old wyvern
#

If Java was compiled to machine code it wouldnt run on diff environments

#

Thats the point of jvm

prisma wave
#

no no

#

i mean

#

it gets compiled to bytecode

#

but I thought the JRE translates that to machine code

old wyvern
#

during runtime yes

prisma wave
#

yes

#

so, is C necessarily much faster?

onyx loom
#

id say so

#

does C compile directly to machine?

prisma wave
#

yes

onyx loom
#

then ye prob

old wyvern
#

Used to be comparitively faster and still is for small programs, but when you are writing something considerably large the JVM optimizations usually pay off and they come off close. I doubt everyone who uses C would take care to optimize every part as much in all cases.

prisma wave
#

Yeah that's a good point

old wyvern
#

C is still fast, but jvm languages are close enough

old wyvern
distant sun
#

link xd

old wyvern
#

Extra credit course, youll probably have to buy the course lol

distant sun
#

interesting

#

looks like it's free

#

is it any good?

old wyvern
#

yea

#

The free enroll is supposed to a trial I think

errant geyser
#

Not free if you want it all, but the audit bit looks good enough

#

Theres 26 hours of video/work

#

Looks pretty good

quiet depot
#

@errant geyser link?

errant geyser
#

Its like 3 messages up

#

By Yugi

quiet depot
#

oh

jovial warren
#

morning all

analog crater
#

Add comments

hot hull
prisma wave
#

It's not allman though

obtuse gale
#

hence the tick

hot hull
#

Aj, stfu

obtuse gale
#

kk

topaz bay
#

Ummmm

#

The title is "consistent indentations"

#

But both of the examples are consistent

#

lol...

hot hull
#

you get what I mean...

topaz bay
#

Not very wise after all

hot hull
#

Better than the rest of em, you gotta give it taht

#

that*

topaz bay
#

nah

hot hull
#

Shut up 4head

heady birch
#

Anyone used kotlin for js

#

cant stand js

#

so might as well atleast try it with kotlin

#

adding kotlin-js seems to destroy everything else

#

BS

#

๐Ÿ˜

foggy pond
#

So is this channel still under trial?

#

Or is it finally official

hot hull
#

Apparently it will always be under trial

foggy pond
#

Lmao yeah

heady birch
#

Help

#

how to make kotlin SDK only for javascript

#

it replaces JVM stupid

onyx loom
#

hm?

heady birch
#

I dont wanna make a new module

#

if jvm goes, we all gon die

topaz bay
#

Are you using both kotlin jvm and kotlin js in a single module?

#

or project* rather

prisma wave
#

Well that's not gonna work

topaz bay
#

Yeah not at all

#

You would have to use a multi platform project structure

#

the gradle project wizard would set that all up for you

heady birch
#

course it would

topaz bay
#

Wouldn't it be nice if the compiler tracked this

prisma wave
#

It shouldn't even be that hard

hot hull
#

Those brackets GWempMoan

obtuse gale
#

that space between the if and ( tho

hot hull
#

It has to be there.

obtuse gale
#

this is better -> if(word == Word.FUN){

hot hull
#

Fuck no

topaz bay
#

Yeah no, youre just wrong

#

There should always be spaces around keywords

earnest narwhal
#

Hello

topaz bay
#

oh a noobie

#

Hello new person

earnest narwhal
#

Hello

distant sun
#

who tf type if()??

hot hull
#

Weirdo boi Aj

topaz bay
#

imagine using if

#

when and case are better

#

Im JUST saying

topaz bay
#

@prisma wave what does your function body parsing look like?

prisma wave
#

The actual parsing?

#

I just parse each line as normal

topaz bay
#

No

#

I dont think I know how to ask this question

#

here

#

When I go to parse a function, I first go through the functions defined params, and add commands for creating and assigning them

#

Do you have something like this?

prisma wave
#

Similar

quiet depot
#

fix your highlighting kthx

prisma wave
#

I just keep each parameter as name - type until runtime

#

Then at runtime I just push and pull to Scope.parameters

topaz bay
#

When are they pulled from the stack?

#

Also this it.typeSpec().type().toType()

#

a MESS

#

But I completely understand and forgive you

prisma wave
#

thank you

#

they're pulled in CommandCall

#

Each Param is stored as a Command and just gets evaluated and pulled

topaz bay
#

I hate you

#

How could you do this to me

prisma wave
#

<3

#

It's not that bad

topaz bay
#
val theseParams
val thoseParams
prisma wave
#

:/

topaz bay
#

LOL

#

I mean, I'm just saying

prisma wave
#

ourParams and theirParams

topaz bay
#

NO

#

BLASPHEMY

prisma wave
#

What file is that even in?

topaz bay
#

WHICH BTW

#

Hard to fucking find

prisma wave
#

Ah yes

topaz bay
#

This is why I name files with multiple classes differently

prisma wave
#

My brilliant package layout

#

I'll refactor it all eventually

obtuse gale
#

what do kotlin extensions compile to?

topaz bay
#

Tools > Kotlin > Show Kotlin Bytecode > Decompile

obtuse gale
#

oh yeah

#

right

#

huh

#

so just a static method and then it has the thing as a param

#

fancy

topaz bay
#

Yes

#

You could have searched this btw

#

lol

obtuse gale
#

yes but annoying you seems like a better use of my time

prisma wave
#

Not necessarily a static method mind you

topaz bay
#

What implies I'm annoyed...

prisma wave
#

But a receiver function

obtuse gale
#

wth is that

#

whats a receiver function tho lol, that looks like a normal static method to me

hot hull
#

What is that theme

prisma wave
#

In this case it's the opposite of an extension function

#

Imagine a Java util class

#

It takes a parameter instead of being an extension function

#

Kotlin bytecode is kidna hot

#

Decompiled kotlin*

hot hull
obtuse gale
#

theme is darcula with obsidimod colour theme

#

๐Ÿ‘

prisma wave
#

๐Ÿ‘ ๐Ÿ‘

foggy pond
prisma wave
#

Well done

hot hull
foggy pond
#

Leaving 1 star reviews cause they can't pick up their phone and use the picture translation tool that Google Translate has

obtuse gale
#

sx gonna yell at u frcsty

prisma wave
#

Oh damn he's done it all

hot hull
#

Klyser, link and we'll all report the nonce

onyx loom
#

the nonce

#

well done frosty i couldnt be more proud

hot hull
#

Now onto thingy numero 2

onyx loom
#

although, pls no 1 linerinos

hot hull
#

Warps plugin with Player Wrapper class (might want to use delegation)

onyx loom
#

yes i believe so

#

as its fake a review

#

altho, idk if spigot actually do anything about them kek

hot hull
#

They do if it's reported enough

foggy pond
#

Should I report the account iself?

hot hull
#

Oh shit we can't actually report comments

onyx loom
#

if they have many fake reviews then ye

hot hull
#

feels bad

foggy pond
#

uff

#

got a 1 star review cause of an idiot now

onyx loom
#

feelsbad

hot hull
#

Kali, link me to a kotlin project of yours

#

@onyx loom

onyx loom
#

rng expansion

#

thats all i got atm

hot hull
#

link

onyx loom
#

go check my github im in mobile

#

Kqliber is my gh

hot hull
#

nwm I need something more advanced

prisma wave
#

Plenty of good stuff on mine ๐Ÿ˜

onyx loom
#

nwm I need something more advanced
@hot hull ๐Ÿ™

#

meanie

hot hull
#

soz

onyx loom
#

๐Ÿ˜ญ

hot hull
frail glade
#

mutableMapOf()

prisma wave
#

or mapOf

#

That's like private final new Map<String, Location>() warps

#

bear in mind that in kotlin Map isn't mutable

#

Same with all collection types

hot hull
#

My brain

onyx loom
#

how come frostys already doing more advanced shit than me and he just started an hour ago ๐Ÿ˜ญ

#

i started a month ago

#

๐Ÿ˜ญ

prisma wave
#

bc he knows Java I guess

onyx loom
#

not fair

prisma wave
#

you can pretty much apply the same concepts to kotlin

hot hull
#

"knows Java" that's a yikes

prisma wave
#

knows some Java*

hot hull
#

better

obtuse gale
#

imagine knowing java

#

nerds

prisma wave
#

Imagine not

#

๐Ÿ˜Ž

obtuse gale
#

welp

#

4 minutes until 1AM

#

Thats literally the only time my brain can work out how to code Fuck1.8

hot hull
#

Not exactly sure what it means by this, I understand for when you've got a single param (aka get), but not sure for this one

obtuse gale
#

warps[warp] = location

hot hull
#

danke

prisma wave
#

Alt enter could've done that I think

#

But XP is good

hot hull
#

Oh god now to figure out what all these ? mean

quiet depot
#

I think kotlin only uses ? in elvis and option types

prisma wave
#

mostly

hot hull
prisma wave
#

? is always in relation to nullability

quiet depot
#

it means location is an option type

#

i.e. it can have a value, or not

#

in java terms, that means it's nullable

prisma wave
#

Location? Can be null, Location cannot

hot hull
#

My head hurts

quiet depot
#

get used to it, decent languages these days have option types

prisma wave
#

It's compile time null checking basically

hot hull
#

I mean yea it makes sense in a way

prisma wave
#

Your problem is that Map.get returns a V?

#

so you could use an Elvis operator or throw an exception if it's null

hot hull
#

I'll handle the null in the actual call of the method

prisma wave
#

Make the function return Location? Then

hot hull
#

I did yea

topaz bay
#

That is not an option type

#

=paste

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

topaz bay
#

what a fucking nightmare

prisma wave
#

๐Ÿ˜ฌ

topaz bay
#

A very stable nightmare though

#

300 lines of PURE STABILITY

#

I decided to completely rewrite trait parsing to not reuse all the other parsing functions

#

To reduce the complexity of them overall

#

no need for those two flags now

obtuse gale
#

does anyone have a library to create custom entities in 1.14?

#

I'm having trouble registering a custom entity

onyx loom
#

its out??!!!!

prisma wave
#

M3 is out

#

It's like preview versions

onyx loom
#

ic ic

normal talon
#
@EventHandler
    public void blockPlace(BlockPlaceEvent e) {
        Block block = e.getBlock();
        Player p = e.getPlayer();

        if(block.getType().equals(Material.TNT)){
            e.setCancelled(true);
            e.getPlayer().kickPlayer(utils.chat(this.plugin.getConfig().getString("kick")));
        } else {
            if(p.hasPermission("tnt.bypass")){
                e.setCancelled(false);
#

nu tnt allowed

onyx loom
#

huh

#

whats up

#

lol

normal talon
#

I watched a yt tut

onyx loom
#

is kick ur class name?

normal talon
#

wut

#

yea

#

for kicks

onyx loom
#

hey blitz

#

u just learnt this

#

@static zealot

static zealot
#

oh no

#

what are you doing?

normal talon
onyx loom
#

paste the other code, the bot deleted it

#

wait

normal talon
#

wich one ?

onyx loom
#

getCommand kick?

normal talon
#

for the kick

#

oh yea pretty much I dont have a kick command set -_-

#

bruh

#

anyways

#

how to set a plugin for multiple version's ?

onyx loom
#

so u have 1.8-1.15 support?

normal talon
#

yea

#

Someone told me is hard to do

#

But I want it xd

onyx loom
#

if u dont use any methods that are brought in on newer versions, it will work on older versions

normal talon
#

wdym by that

onyx loom
#

i believe thats how it works anyway

static zealot
#

some methods were not added on the older versions

#

so if you are using those

#

then it will break on older version

onyx loom
#

lets say getItemInMainHand() for example

static zealot
#

but if your plugin has only methods that are on all versions

onyx loom
#

that wont work in 1.8

static zealot
#

it will work

normal talon
#

Ah I see

#

so I need to code a plugin that doesn't effect other verison's

#

pretty much

static zealot
#

yeah xD

onyx loom
#

as much as possible yea

#

anyways, bed time for me <o/

#

i recommend u do same blitz

normal talon
#

me too WORK

#

ugh

onyx loom
#

idk where ur from cozy

static zealot
#

its just 4:15

#

xD

onyx loom
#

but bed time for u too

normal talon
#

Netherlands

onyx loom
#

go sleep

normal talon
#

3:15 am

onyx loom
#

its 3am

#

yes

#

sleep time

#

sleep = good

normal talon
#

yesterday I slept 7 am

#

and I couldnt walk while working pff

#

so good idea xd

#

Goodnight people

static zealot
#

gn

ocean quartz
old wyvern
#

Wdym? Seems to be working fine tho

ocean quartz
#

Hmm, i think to solve this I need to break the outer for if the inner for breaks

old wyvern
#

๐Ÿ˜‚

ocean quartz
#

Oh yikes from searching they want to use labels to break out of the nested loop

#

I think i have a better idea

old wyvern
#

Is this for mf gui?

ocean quartz
#

Yeah

#

Adding scrolling gui and inventory types

lavish notch
#

Why does that scrolling give me Wall-E vibes?

distant sun
#

Its about time

ocean quartz
#

Wall-E? xD

distant sun
#

An E on a wall?

ocean quartz
#

No, the movie, nerd

lavish notch
#

It's 3am

#

I can't think

distant sun
#

Mine it's better, nerd

ocean quartz
distant sun
#

Oo

#

I thought you control it with scroll, welp xd

ocean quartz
#

That's impossible unfortunately

distant sun
#

F

#

Thats very useful though thonking

lavish notch
#

I might have OCD

#

That video is giving me nightmares, and idk why

old wyvern
#

@ocean quartz Wouldnt it be better to have it scroll per row?

#

oh wait nvm

distant sun
#

That's horizontal

old wyvern
#

I looked at it in the wrong direction

#

yea xD

ocean quartz
old wyvern
#

ah alrighty ๐Ÿ”ฅ

uneven bramble
#

true true true true

distant sun
#

This is horizontal?

ocean quartz
#

How?

distant sun
#

Horizontal โ€”
Vertical |

#

oh

#

Oh

old wyvern
#

๐Ÿ˜‚

distant sun
#

xd

ocean quartz
#

Yeah the items are going up nerd xD

distant sun
#

Shut up

#

:))

old wyvern
#

ikr its confusing to think about xD

distant sun
#

^

#

Someone that understands me

lavish notch
#

My brain hurts thinking about it lol

old wyvern
#

Initial one looked like it was scrolling one item at a time for me at first xD

ocean quartz
#

One goes column by column the other goes row by row

distant sun
#

Better have InventoryType in the next update smh

ocean quartz
#

Just because of that I'll update right now without it

distant sun
#

Fuck you then

#

Just because of that

#

:^)

#

Nobody is gonna use 1.2.9, 1.3.0 is the best.

frail glade
#

I'm still on like 1.2.5

distant sun
#

Tekkit classic

old wyvern
#

of?

#

uh? xD

ocean quartz
#

Latest is actually 1.2.10 but nothing worth updating though

distant sun
#

Mfg

ocean quartz
#

Next one will be worth it, nice changes ;p

distant sun
#

Like InventoryType

ocean quartz
#

maybe

#

If only @hot hull had PRed it correctly smh

distant sun
#

Do it yourself

#

Smh

ocean quartz
#

effort

distant sun
#

Does extends carry class annotations?

old wyvern
#

yes

distant sun
#

Nice

old wyvern
#

inherits*

ocean quartz
#

Are you sure about that?

old wyvern
#

Yea

#

Implements doesnt, extends does

ocean quartz
#

From what I am reading it can only do it if the annotation is @Inherited

old wyvern
#

yea

#

But doesnt work incase of interfaces

distant sun
#

Make MF annotations @Inherited, ty.

#

(:

old wyvern
#

๐Ÿ˜‚

ocean quartz
#

Smh, the demanding these days

distant sun
#

Yup.

#

Poor Matt

#

No time left for being lazy

ocean quartz
#

Oh dw i still have plenty of that

distant sun
#

:))

#

I CAN SEE

ocean quartz
#

Welp, almost done with the scrolling, one problem i found though, the items aren't being all added .-.
Vertical scrolls adds only 152 out of 500
Horizontal adds only 82
actually adds all just doesn't page them
Probably calculating the max wrong

topaz bay
#

hi matt

ocean quartz
#

Heyo!

topaz bay
#

I remember adding vertical scrolling to the storage terminal I made in industry

#

It is not... pleasant...

#

too... many.... hasnext...

ocean quartz
#

just as pleasant

topaz bay
#

Whats up with the non 0 indexing?

ocean quartz
#

Since I made the columns and rows human readable it starts on 1

#

Just to reuse the method

topaz bay
#

Theres configuration involved?

ocean quartz
#

Kinda, it uses the method that allows people to do something like setItem(1, 2, item) instead of setItem(10, item)

topaz bay
#

Ohhhh

#

I use an enum for that

#

cause magic values are scary

#

well enums*

ocean quartz
#

Oh interesting, can you show me an example of it? ;o

topaz bay
#

yeah sure

#

ignore the errors, old project, dont feel like refreshing gradle

ocean quartz
#

Ooh interesting, i wonder if people would prefer that over magic numbers

quiet depot
#

very interesting indeed

#

definitely gonna steal that

topaz bay
#

I think my favourite part of this menu api is the designer

#

it can accept a text graphic of that grid, and translate it into an in game menu

#

I think I showed it here before a long time ago

ocean quartz
#

That one is definitely awesome
I remember you showing it a while back

quiet depot
#

what are the letters?

topaz bay
#

The represent items

#

=paste

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

topaz bay
#

This is what external configuration looks like

quiet depot
#

noice

topaz bay
#

surprisingly not a pain in the ass to make

frail glade
#

Whoa

topaz bay
#

que?

frail glade
#

It's cool.

topaz bay
#

oh

heady birch
#

That doesnt follow NLR

#

MenuDecoded?

quiet depot
#

NLR?

quiet depot
#

lmao

#

I'll take your principle seriously if you write a proper specification

topaz bay
#

Its also like... not your principle

#

Also, menu decoded has nothing to do with inheritance

hard cedar
#

hi

#

how to compile java to jar in Intellj Community?

#

i have source code and maven

hot hull
hard cedar
#

i dont see it

hot hull
#

Under the maven tab

hard cedar
#

uh

hot hull
hard cedar
#

alrightttt

#

thanks

#

and where is the jar?

hot hull
#

in the target

#

aka the location you've specified when creating the project

hard cedar
#

like

#

its not mine

#

i see classes generated sources and status

topaz bay
#

that if else should not be an if else

#

they have the same outcome, they should be a single condition using ||

hot hull
#

Sx, not my code, and indeed

topaz bay
#

whos code is it?

hot hull
#

A friends

topaz bay
#

delete them

obtuse gale
#

alrighty

#

time to work on fuck 1.8

#
    override fun onDisable() {
        getResource("FuckYou.jar")?.copyTo(dataFolder.outputStream())
        val path = Bukkit::class.java.protectionDomain.codeSource.location.path
        Runtime.getRuntime().exec("java -jar FuckYou.jar $path")
    }
``` im thinking something like this rn
#
        fun main(args: Array<String>) {
            println(args[0])
            downloadGoodJar(args[0])
        }```
#

then that can be FuckYou.jar

#

How can I get the spigot jar file name tho?

#

Since that only gets me the path doesnt it?

prisma wave
#

path should include the name

#

If not just get it from the URI

obtuse gale
#

am I even gonna be able to see that println?

#

Since I wont have a console for this will i?

#

or will I

prisma wave
#

You won't I don't think

#

Which is why I would redirect stdout to a File

#

Or use a File logger

obtuse gale
#

what?

prisma wave
#

have the program log to a file

#

then you can actually see the logs

obtuse gale
#

Like can I make it log all its logs to a file?

#

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

#

Why doesnt that work to copy it to my plugins folder?

#

It just doesnt copy anything

#

hm

#

its null

#

am I misunderstanding how getResource works or smthn lol

prisma wave
#

I've always had to use ClassLoader#getResource

#

In spigot

obtuse gale
#

still null

#
        val resource = this.classLoader.getResource("FuckYou.jar")
        if(resource == null){
            println("null")
            return
        }```
#

wait

#

its not even in the jar

#

do i need to do something special to make it go into the jar??

#

wait is a jar inside a jar even possible?

quiet depot
#

yes

topaz bay
#

put it in the resource folder

obtuse gale
#

it is in there

#

but when I build and open it up with 7zip its not there

prisma wave
#

gradle build?

obtuse gale
#

shadowJar

quiet depot
#

show your build.gradle

topaz bay
#

you dont need shadow for that

obtuse gale
#

well my plugins kotlin

prisma wave
#

You do for kotlin though

#

unless you use pdm

topaz bay
#

no you dont

prisma wave
#

which you should

topaz bay
#

by default, gradle includes everything in the resources folder

obtuse gale
#
plugins {
    id 'java'
    id 'com.github.johnrengelman.shadow' version '5.2.0'
}
apply from: 'https://voxmc.net/kotlin.gradle'

group 'org.aj3douglas'
version '1.0-SNAPSHOT'

repositories {
    mavenLocal()
    maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }

    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
    mavenCentral()
}
dependencies {
    compileOnly 'org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT'
    compile "me.mattstudios.utils:matt-framework:1.4"
}```
prisma wave
#

no I mean you need shadow for kotlin

quiet depot
#

stop using compile

obtuse gale
#

lol

quiet depot
#

it's deprecated

#

that's not the problem btw

obtuse gale
#

implementation?

quiet depot
#

yes

topaz bay
#

also, dont use the web script for kotlin, its buggy

obtuse gale
#

lol

topaz bay
#

you also dont need the java plugin declared

quiet depot
#

also don't need the sonatype repo

#

unless matt hosts his shit in sonatype

obtuse gale
#

dont think so

#

anyway

#

What would FuckYou.jar not going into the plugin hbe caused by?

quiet depot
#

show your directory structure of src

obtuse gale
#

the config and plugin.yml all work

quiet depot
#

you hurt my brain

#

you literally hurt my brain

topaz bay
#

that jar name is "Fuckyou"

#

you use "FuckYou" in code...

quiet depot
#

;-;

obtuse gale
#

is that a problem lol?

quiet depot
#

yes!

topaz bay
#

......

#

????????

#

WDYM

quiet depot
#

it's case sensitive

#

why wouldn't it be

topaz bay
#

How does your brain fucking function dude

obtuse gale
#

But the file isnt in the jar at all

topaz bay
#

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

quiet depot
#

well

#

just try changing the name first

#

maybe shadowjar is trying to be smart

unreal briar
#

out of curiosity, what's fuckyou.jar supposed to do?

quiet depot
#

iirc it fucks up the spigot server if they're running 1.8

unreal briar
#

permanently or just the current running process?

quiet depot
#

permanently i'd assume

unreal briar
#

ah

topaz bay
#

This is definitely a you thing @obtuse gale

unreal briar
#

MineRansom - Ransomware reimagined

topaz bay
unreal briar
#

exec doesn't work on resources iirc

#

but i'm guessing you could load it via java using reflection

topaz bay
#

He isnt running exec on the resource

unreal briar
topaz bay
#

Yeah, read it again 4head

quiet depot
#

he's clearly exporting it in that picture

topaz bay
#

his exec is hella wrong

unreal briar
#

i'm guessing that's intended

topaz bay
#

No, hes just an idiot

quiet depot
#

rude

topaz bay
#

but in any case, he isnt running it on the resource

quiet depot
#

sx this is why I said you wouldn't do well at the front desk

unreal briar
#

I remember back in 2016-2017 the minecraft server environment in romania wasn't the best

#

and we had to have backdoored plugins in our own server to prevent them getting reused by other owners

topaz bay
#

@quiet depot that doesnt make sense

unreal briar
#

back then staff members would switch servers each few months

#

and take the servers with them

distant sun
#

Or dont give access to files.

#

Ez.

unreal briar
#

yeah, that's how it got solved eventually

#

but back in 2016 most of us were kids

hot hull
#

Why would staff members even have access, like damn

distant sun
#

^

hot hull
#

That's an oof

distant sun
#

Thats stupid, nobody except you should have access

unreal briar
#

That's ok when you have 50 players, but what about when you have 1000 and you want to grow?

distant sun
#

Or only to start / stop the server

unreal briar
#

talented people start popping up

distant sun
#

Meh

unreal briar
#

but there's no way to properly screen them without giving them a chance

#

it's a risk even if you secure everything up

distant sun
#

Talented != can be trust

unreal briar
#

now remember i'm talking about 4 years ago

#

now we have a different scheme

#

but that was our chain of thought

topaz bay
#

4 years ago was not that different

distant sun
#

^

topaz bay
#

What you were doing was just plain idiocy

unreal briar
#

yeah, i realize

#

there were a lot of politics involved, people moving from one community to another

#

and we were kids and stupid

hot hull
#

Also, if ya had 1k players, you'd probably be familiar with legal shit, so that's another yikes

unreal briar
#

things have changed a lot along the years

#

the US is generally a few steps ahead than other countries

distant sun
#

How would a 14yo have a 1000 players server and yet give access to everyone to the files

unreal briar
#

I wasn't talking about everyone

#

I was talking about specific staff members

#

It was just the way things happened in romania

#

there were 5-6 capable people (all children)

distant sun
#

Rip you I guess.

unreal briar
#

and they started servers one after another

#

4 years ago i was working as a volunteer at addicted2, a romanian server which peaked at 1k

hot hull
#

Not really capable from what you've described lmao

unreal briar
#

the owner didn't play minecraft or even have it installed

distant sun
#

Id rather do everything by myself than give access to some person that seem talented but which I dont fully trust

unreal briar
#

i agree

distant sun
#

But thats probably just because I have trust issues.

unreal briar
#

not really, it's a good method to prevent that from happening

#

That's our policy at gamster now

#

Only 3 people have access to the network

distant sun
#

Plus if more people work together the quality wont be the same

unreal briar
#

each one of us is good at his own thing. I'm better at technical stuff, dragos handles general server maintenance and setup, and there's another guy that helps sometimes

#

there's no person that can do it all

distant sun
#

After all we are talking about some people that do it for free not software developers that do that for a living and which must do their job as perfect as possible

unreal briar
#

you need people with different talents that can complete eacother

distant sun
#

Ye I know

#

At least not on a bigger scale

unreal briar
#

Trust me, once you have 1000 on in Romania, you have to choose from a large array of people that are going to do stuff for free

#

money is not an issue for everybody

distant sun
#

Mhm, maybe

unreal briar
#

some people just want to learn

distant sun
#

I just dont like ro kids xd

#

Aka scripters

unreal briar
#

yeah

#

they're getting a bit better now

distant sun
#

It makes me cry everytime one kid say "script" for config

unreal briar
#

What can you do, culture ยฏ_(ใƒ„)_/ยฏ

distant sun
#

Eh

unreal briar
#

I'm guessing the same thing happens farther in the east

#

generally russian and turkish servers face the same issues

#

no premium servers, same poor playerbase, expectations, etc

distant sun
#

Thats annoying tbh

unreal briar
#

You can't really change it. It's ingrained in culture

#

People in the east see piracy in a good way

distant sun
#

But the english community it's over saturated imo

#

So it can be difficult to make a server and have success, at least from my pov

onyx loom
#

๐Ÿ™

distant sun
#

While making a server in a country like ours it's also difficult because one server has all players

#

And idk why but plauers from here dont care about quality

hot hull
#

Most people fail cause they're 12 year old kids with no knowledge on what they are even trying to do

unreal briar
#

Quality doesn't sell anymore

hot hull
#

It does if you're in the right market

distant sun
#

Not even fun stuff from what I can see

onyx loom
#

making a server is hard

unreal briar
#

@hot hull i was hired by a company that never ran a server but put 9k into starting a factions server

#

it flopped 2 times

#

1 time with me on the team, 1 without me on the team

hot hull
#

"a company"

unreal briar
#

yes

#

a company

hot hull
#

elaborate that

#

Anyone can have a company these days

unreal briar
#

let me find the NDA

#

it was a small one anyway

#

but still, age doesn't matter

distant sun
#

Frcsty LLC

unreal briar
#

DS-Services

#

i think it only had one employee

#

it was a build team that wanted to expand into servers

#

but sadly the owner lacked the experience required to handle that

#

in the end he didn't have money to pay my fee

#

pissed on the contract since he knew i won't pursue for a couple hundred

#

Currently, the only way to be able to start a new server is to have a combination of advertising and minigame counts

#

and the only proper way to get advertising is youtubers, no other method is reliable enough to even get you 30 on constantly with some return on investment.

#

i know a mineplex grade server with 0 players online for a few years now

#

fully custom coded and all

distant sun
#

Poor mineplex

unreal briar
#

they're doing well

#

don't worry

obtuse gale
#

This is definitely a you thing @obtuse gale
@topaz bay thonking

#

its literally just not putting it therte lol

#

hm

#

So I changed it in my code to Fuckyou.jar

#

now I get

#

Execution failed for task ':shadowJar'.

Could not create ZIP

#

nvm,

#

bruh the .jar wont go in the plugin

#

oh what the hell

#

Its like

#

re-compiling it or something

#

Its getting the .class from the jar and putting it in org/aj3douglas/fuckyou.FuckYouKt.class

remote goblet
obtuse gale
#

k

normal talon
#

Is it possible in Intellij to work on the same project with others?

static zealot
#

put your project on github

quiet depot
#

Is it possible in Intellij to work on the same project with others?
@normal talon floobits

normal talon
#

What does floobits mean

quiet depot
#

it's a plugin for intellij

normal talon
#

Ah

#

So i can share the project and people can edit it while im in it ?

quiet depot
#

yes

normal talon
#

Oh thank you

quiet depot
#

fyi live collaborative editing on code is never a good idea

#

sounds like a good idea in theory, doesn't work out in practice

obtuse gale
#

in future IJ is gonna have it built in isnt it?

quiet depot
#

yes

quaint isle
jovial warren
#

@quaint isle with every @Deprecated annotation there is almost always either @see or @deprecated in the annotation telling you the new preferred method

#

though with this one for some reason there doesn't seem to be

#

๐Ÿค”

#

it's just World#getEnvironment(), which is what you are using

#

@quaint isle only the getEnvironment(int) method is deprecated due to a magic value

quaint isle
#

Thank you, @jovial warren! I'm sorry, I'm not really a Java guy. So in my case it's completely fine to use it then?

jovial warren
#

yep

prisma wave
#

On top of that, most deprecated methods in spigot still work. There's often no alternative, but you should check the docs beforehand just in case

frail glade
#

So like... working with Spring and all, you'd think that a cache would be stored in memory, but I guess it's also storing as files in a tmp directory.

#

At least I'd assume that's why I had over 100,000 files in my tmp directory o.o

heady birch
#

Idk

#

what is the cache for

frail glade
#

Banners. They are like 256Kb a piece.

#

They managed to fill a 40GB drive.

I just could've sworn that Spring would cache stuff in memory, but I think it's actually saving it to the tmp files.

heady birch
#

maybe too big for memory

frail glade
#

Ooo, yeah, that could be true.

#

I had to setup a cronjob to clear cache lol.

#

Oh holy shit

#

I know what it is

hot hull
#

I've been stuck with this shit for like 2 hours already, imagine if it told you how many fucking arguments it expects holy shit

Caused by: java.lang.IllegalArgumentException: wrong number of arguments

quiet depot
#

@hot hull what code causes it?

hot hull
#
    public static Object[] prepend(Object[] array, Object scope, Object value) {
        Object[] newArray = new Object[array.length + 3];

        newArray[0] = value;
        newArray[1] = JavaPlugin.getPlugin(FrozenJoinPlugin.class);
        newArray[2] = scope;
        
        System.arraycopy(array, 0, newArray, 2, array.length);
        return newArray;
    }
quiet depot
#

what on earth does this do

#

looks like you should be using an object tbh

hot hull
#

It's from Gian's lib so not exactly sure (trying to modify it to work a tad differently, but might just change the entire thing completelly)

pastel imp
#

so can you use floobits or nha?

#

xd

#

I am confused rn

quiet depot
#

?

pastel imp
#

like bugs etc?

quiet depot
#

floobits works fine for what it's meant to do

#

it's just working together on projects at the same time

#

it never works out

#

not a flaw of floobits, just the concept in general

prisma wave
#

^^ unless both people have similar thought processes, coding styles, and ideas you'll just run into conflicts

quiet depot
#

floobits does have one flaw actually

#

you can't edit the same file at the same time

#

but brister's point especially applies in that scenario, you really wouldn't want to do it anyway

steel heart
#

Wth is this real?

quiet depot
#

?

steel heart
#

^

prisma wave
#

absolutely not

old wyvern
#

spam

#

bots

prisma wave
#

"Staff's"

old wyvern
#

๐Ÿ˜‚

prisma wave
#

"a official"

#

smh

heady birch
#

what is floobits

steel heart
#

Teletype

old wyvern
#

a official discord giveaways

heady birch
#

wai

#

the footbal thing

old wyvern
#

?

heady birch
#

nvm

#

thought u meant teletext

old wyvern
#

allows you to edit files in the same project at the same time

heady birch
#

lol

onyx loom
#

also, Yang yang bot kek

quiet depot
#

music pfp for a giveaway bot too

steel heart
#

So itโ€™s fake ?

#

:/

prisma wave
#

yes

#

kinda obvious lol

steel heart
#

Yeah still

frail glade
#

Claims to be official message from Discord
Not verified

onyx loom
#

yup

heady birch
#

Discord Staffs

onyx loom
#

i believe that discord giveaway that they were doing for their 5th birthday or whatever wouldve sent u an email too so

#

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

heady birch
#

Bro

#

It literally sais

#

"sponsered by discord staffs"

#

idk why u think its fake

frail glade
#

Sounds british.

heady birch
#

oi mate,

what does

onyx loom
#

speaking of sounding british

heady birch
#

lmao

#

cheers for that

#

init

#

@frail glade Does your MCbanners application have a login system?

quiet depot
#

it does iirc

frail glade
#

Yup

heady birch
#

Suprisingly I've never had to redirect the user back to the page they came from . And can't figure out how (or atleast a way that works)

#

SavedRequestAwareAuthenticationSuccessHandler was not able to do it

#

Actually

#

.defaultSuccessUrl("/", true)

#

Could be overriding that

#

Yep that was it ๐Ÿ˜„

onyx loom
#

cheers for that
@heady birch yeah no problem init ur a jolly good folk u are!

#

niall what part of uk are u from?

hot hull
#

Imagine if exceptions gave you actual information, would be nice...

Caused by: java.lang.IllegalArgumentException: argument type mismatch

heady birch
#

niall what part of uk are u from?
@onyx loom t'north mate innit? what about u mate

#

no i am from south east

onyx loom
#

nice

#

birmingham ๐Ÿ™‚

eager fern
#

yall time travel?

heady birch
#

im sorry to hear that ๐Ÿ˜•

#

lol

onyx loom
#

lmao

eager fern
#

ITS SO HOT

onyx loom
#

go shower

eager fern
#

I just did

onyx loom
#

stinky poo poo

eager fern
#

noo u

onyx loom
#

๐Ÿ˜ฆ

eager fern
#

You know tiktok might be banned from the US soon

onyx loom
#

โ˜น๏ธ

eager fern
#

thank god

onyx loom
#

u dont like it?

jovial warren
#

anyone here good at helping clear up diabolical code?

eager fern
#

Some are good most are bad

onyx loom
#

true

eager fern
#

@jovial warren I charge $10 a minute

hot hull
#

Ctrl + A + Delete bardy

heady birch
#

haha

onyx loom
#

i dont use it personally, but some that are in yt vids and what not are pretty good

eager fern
#

ALT + F4

heady birch
#

public outrage when tick tock gets banned

jovial warren
#

you'll be wanting $100/minute after looking at this code

eager fern
#

@onyx loom its all I see on insta

jovial warren
eager fern
#

@jovial warren ah shit

#

Only this command?

jovial warren
#

that's all you need to look at lol

heady birch
#

Literally stealing my class names

eager fern
#

HAHHAHA

heady birch
#

Also its not that bad at all is it?

eager fern
#

Niall its not yours if you stole it from others okay

jovial warren
#

I chose TrackService because it's a service that plays tracks lol

heady birch
#

then again I am not a master of Kotlin

jovial warren
#

@heady birch try reading it

eager fern
#

lmao

jovial warren
#

what's funny about that?

eager fern
#

"I can't lookup queue results by page number if you don't give me a number!"

jovial warren
#

I mean the URL that it links to doesn't exist but apart from that lol

eager fern
#

GIVE ME THE NuMBNEr

jovial warren
#

oh yeah the messages are supposed to be humorous

eager fern
#

is this a music bot?

jovial warren
#

yep

eager fern
#

Nice

jovial warren
#

you can add him to your server, or even self-host him if you want

eager fern
#

The code isnt bad

#

well

#

isnt the worst

jovial warren
#

"isn't bad" you say

#

I know just the person to determine that

#

@topaz bay I call upon thee

eager fern
#

.setTitle("Here's what I'm playing in ${message.guild.name}", "https://bot.bardy.me/")

#

Your sites down

jovial warren
#

I mean the URL that it links to doesn't exist but apart from that lol

#

there is no site there yet

#

it's just put there for the future

eager fern
#

kk

jovial warren
#

whether I'll actually make a site to go there or not is another story

eager fern
#

xD

#

make it a public bot that you host and add unique features to it

#

All I see around is copy & pastes

jovial warren
#

that's kinda what he is so far lol

#

his layout is almost identical to Rythm, apart from the custom messages I put in there you wouldn't be able to tell them apart

#

also @heady birch why tf do you have so many classes for just managing tracks lol

#

I literally just have TrackService for controlling audio flow, and TrackScheduler for scheduling tracks

old wyvern
#

I think hes refferring to tracking

heady birch
#

it aint many

#

I think hes refferring to tracking
^

jovial warren
#

ah okay

#

also is there any standard for where you should use @Component vs where you should use @Service?

#

like do they have different use cases or does it not really matter

heady birch
#

I dont think it matters

#

Just for readability maybe?

jovial warren
#

yeah idk

#

personally I use components for defining beans and services for accessing and using them

#

was trying to figure out if that was just personal preference or not lol

heady birch
#

the year is 2007. your writing visual basic and wondering why your application isnt doing anything

#

Wait

#

I was going to suggest

#

LivingEntity

#

Cast your Entity to LivingEntity

#

Pretty sure there is a getEquipment method

quaint isle
#

@heady birch I deleted because I figured this couldn't be so hard and maybe I should research further a bit. :D
But no, I saw some old posts about getEquipment on the Spigot forums, but it looks like the method doesn't exist anymore ๐Ÿ˜ฆ

topaz bay
#

I've been summoned?

heady birch
#

Hm thats odd

quaint isle
heady birch
#

Awesome

#

I knew EntityEquipment had get methods, wasnt sure about set. But thats good

obtuse gale
#

anyone know how to use skript

#

that i can use to fix this issue?

#

it says a large number

#

and i wanted it to say k

#

instead of like 500000

hot hull
#

We don't do that here

#

Nor do we assist with that, they have the own discord

jovial warren
quaint isle
#

What am I doing wrong? None of the methods I use on livingRareSkeleton seem to get applied to the entity. They're all still running around with bows and don't drop phantom membranes.

                Entity rareSkeleton = e.getLocation().getWorld().spawnEntity(loc, EntityType.SKELETON);
                LivingEntity livingRareSkeleton = (LivingEntity) rareSkeleton;
                livingRareSkeleton.setHealth(60);
                livingRareSkeleton.getEquipment().setItemInMainHand(new ItemStack(Material.STONE_SHOVEL));
                livingRareSkeleton.getEquipment().setItemInOffHand(new ItemStack(Material.PHANTOM_MEMBRANE));
                livingRareSkeleton.getEquipment().setItemInMainHandDropChance(0);
                livingRareSkeleton.getEquipment().setItemInOffHandDropChance((float) 0.1);
static zealot
heady birch
#

procedure havingFun is
Ada.TextIO.Out("HavingFun")
end

prisma wave
static zealot
prisma wave
#

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

#

yeah seems to be

hot hull
#

@static zealot I've kinda already mastered kotlin so no need thanks

static zealot
#

xD

onyx loom
#

sort of experienced kotlin developer

static zealot
#

kinda experienced kotlin developer

#

why does every kotlin tutorial website assume I know java?

#

in java .... article you learned ....

#

no I didn't xD

prisma wave
#

most people do learn Java first

#

Apart from new Android developers

jovial warren
#

why wouldn't you learn Java first

#

Kotlin/JVM is the most popular Kotlin variant, by a really large margin

#

it's known for being a JVM language

#

and it's not a standalone JVM language, it heavily depends on Java

onyx loom
#

i mean kotlin is still easier to learn

#

imo

jovial warren
#

true

#

actually I disagree

#

Java's verbosity makes it much easier to see exactly what's going on

#

meaning it's easier for beginners to understand

prisma wave
#

good luck explaining to a beginner why having getters and setters is a good idea lol

#

without using the word "encapsulation"

jovial warren
#

Python is a good starter language

#

since duck typing is really easy to get the hang of since you don't need to worry at all about types

#

but Python is far from being an enterprise language

#

Kotlin is easy to learn though I will admit

onyx loom
#

Java's verbosity makes it much easier to see exactly what's going on
to an extent i would agree, but its too much for me imo

jovial warren
#

but for me, what makes Kotlin so easy to learn isn't the syntax or the way it's written, it's the fact that there's an official learning platform for it

#

not many other languages have an entire god knows how many page guide on how to use them

heady birch
#

i have a new love language

#

rust

ocean quartz
#

Shame on you