#dev-general

1 messages Β· Page 132 of 1

prisma wave
#

it's still technically in beta atm though

steel heart
#

Ngl that is something which many need

prisma wave
#

has a few bugs that need fixing

#

yeah

steel heart
#

Yh

onyx loom
#

it builds right with a fresh install too πŸ˜„

#

pdm works πŸ˜„

prisma wave
#

Awesome

#

Although I am aware of 2 strange bugs that are gonna be painful to fix

onyx loom
#

πŸ‘€

#

anyways, ill get on to that sexy kotlin example pr

steel heart
#

KM which are those

prisma wave
#

ok thanks

#

The other is that it seems to fail with Hikari for some reason

onyx loom
#

help wanted tag

#

pain πŸ˜”

prisma wave
#

help

steel heart
#

Oof

#

Make it a feature fingerguns

prisma wave
#

good idea

#
**Features**
* Works *mostly*
* DOES NOT SUPPORT HIKARI
steel heart
#

πŸ˜†

twilit ledge
#

what do you guys think of thenewboston tutorials?

prisma wave
#

chances are they suck

steel heart
#

Oh btw

#

In 1.16

#

Shouldn’t we be able to make guis with no name

prisma wave
#

Β―_(ツ)_/Β―

steel heart
#

Possibly

onyx loom
#

@prisma wave, i forgot to ask, is there any drop in for the Dependency class? so u dont have to load all of them if u dont want to

prisma wave
#

wdym?

onyx loom
#

dependencyManager.addRequiredDependency( new Dependency(

prisma wave
#

like optional dependencies?

onyx loom
#

ya

prisma wave
#

not at the moment

onyx loom
#

alr np

prisma wave
#

I plan to add them though

onyx loom
#

do u want me to update the readme now just so it actually works?

prisma wave
#

that'd be nice

onyx loom
#

np πŸ‘

prisma wave
#

cheers

onyx loom
#

also, using allman in this kotlin example to keep to ur code style kek

prisma wave
#

you're very brave

#

ty tho lol

onyx loom
#

❀️

errant geyser
#

Oh btw
In 1.16
Shouldn’t we be able to make guis with no name
Can't you pass a space or empty string as the name?

steel heart
#

Hmm

#

Presumably

onyx loom
#

@prisma wave accept my pr >:)

prisma wave
#

πŸ…

onyx loom
#

wew

errant geyser
#

@topaz bay@prisma wave Hey dads found something you can argue over work on together

topaz bay
#

...

#

Why tag me?

#

That aint mine

errant geyser
#

found something you can argue over work on together

topaz bay
#

yeah no

#

no ty

onyx loom
#

y not

#

it could be a perfect time to bond with ur best buddy!

topaz bay
#

fuck that kid

#

hes short

onyx loom
#

sad face

prisma wave
#

No I not

topaz bay
#

You stupid

static zealot
onyx loom
#

subtle double monitor flex 😦

static zealot
#

dw

#

second one is trash

#

and only use it for discord

#

also its a laptop

#

to witch I connected another old monitor because the laptop one is trash

#

and my laptop is burning

#

xD

onyx loom
#

did someone say kotlin?

errant geyser
#

Kotlin AMAZING

#

Let's leave that clown to end himself, while we circlejerk

#

@prisma wave you are needed to initiate proceedings

prisma wave
#

damn high expectations

#

where do I start

#

ok here goes

#

kotlin good

onyx loom
#

i heard java bad

#

is this true?

#

oh thats a dumb question.

static zealot
#

yeah pretty sure it is

onyx loom
#

πŸ‘ πŸ˜‚ πŸ‘Œ

static zealot
#

I am a scientist and have been trying to prove this for years now

#

but no one believed me until it happened

onyx loom
#

inspirational

static zealot
#

let's make a movie about the guy who tried to make everyone switch to Kotlin (Brister) but very few believed him when he said java is bad. They needed years to realise how much better and superior Kotlin is

#

we all record a scene using our phones

errant geyser
#

And then Java burned his house down and killed his family

static zealot
#

And then Java burned his house down and killed his family

#

yes

#

and the world stopped spinning

#

and he coded a thing in kotlin that made the world spin back

errant geyser
#

Blitz that legit happened

#

Are you not aware of the highly emotional kotlinmemes post?

static zealot
#

and almost died because he didn't sleep for weeks and didn't eat or drink as well

#

but then the world started realising

prisma wave
#

oh man

#

i love this idea

#

gofundme?

#

it needs to happen

static zealot
#

xD

#

Are you not aware of the highly emotional kotlinmemes post?
no

onyx loom
#

WHAT

static zealot
#

well I am aware of the subreddit. I am a member

#

but dk anything about the emotional post

onyx loom
prisma wave
#

ok we should have Samuel L Jackson play the role of Java, and who should play Kotlin?

onyx loom
#

hmm

static zealot
#

you ...

onyx loom
#

samuel l jackson is always a great villain movies

static zealot
#

because its the story of your life

prisma wave
#

nah i won't be kotlin

static zealot
#

xD

prisma wave
#

I could NEVER

static zealot
#

I vote for Brister

onyx loom
#

andrey breslav himself fingerguns

prisma wave
#

good idea

errant geyser
prisma wave
#

idk if he's a very good actor

#

it was a comment i think

#

lemme try find

onyx loom
#

everyone can be a good actor with the passion of kotlin

static zealot
#

ah

static zealot
#

that is a very sad and emotional post katsumag 😒

prisma wave
#

here's another one

static zealot
#

but whoever posted it should learn to use dots or commas because now java users can take parts of the post and say bad kotlin good java

steel heart
#

@prisma wave

prisma wave
#

yes?

steel heart
#

I have a kotlin project, if I want to add a jar that has kotlin code as a dependency, how would I do that?

prisma wave
#

uh

#

i'm not sure what you mean

#

kotlin code compiles to java bytecode?

#

it's no differerent to any other jar

onyx loom
#

altho, u should use pdm to shade the stdlib fingerguns

prisma wave
#

tru

steel heart
#

I when I look into the code it's kinda bob

prisma wave
#

?

steel heart
#

final class NamelessClass_1 extends Lambda implements Function1<FileReader, Unit> {
public static final NamelessClass_1 INSTANCE = new NamelessClass_1();

        public final void invoke(@NotNull FileReader it) {
            Intrinsics.checkParameterIsNotNull(it, "it");
            Companion var10000 = SumoPersist.Companion;
            Object var10001 = Constants.INSTANCE.getGSON().fromJson((Reader)it, SumoPersist.class);
            Intrinsics.checkExpressionValueIsNotNull(var10001, "GSON.fromJson(it, SumoPersist::class.java)");
            var10000.setInstance$HyterEvent((SumoPersist)var10001);
        }

        NamelessClass_1() {
            super(1);
        }
    }
#

Stuff like this

prisma wave
#

that's just what compiled kotlin looks like

#

there's a lot of compiler magic to ensure JVM interop

steel heart
#

possible to decompile?

prisma wave
#

that is decompiled

steel heart
#

I mean to kotlin

prisma wave
#

oh

#

uh

#

I don't think so

steel heart
#

frick

prisma wave
#

but looking at that I can tell you it's a function

steel heart
#

I have a lot of those

prisma wave
#

it would be something like kotlin { it: FileReader -> val persist = Constants.GSON.fromJson(it, SumoPersist::class.java) SumoPersist.instance = persist }

#

which, for the record, is gross

#

no sourcecode?

steel heart
#

nope

prisma wave
#

rip

steel heart
#

does it exist a way to convert?

#

FRICK

prisma wave
#

yeah you're gonna have to rewrite it by hand

#

what are you actually trying to do here?

errant geyser
#

Cant you just import it as a jar using Maven local and have everything there or is that not a thing with Kotlin?

steel heart
#

it's java bytecode

#

:/

prisma wave
#

that's a thing

#

what are you trying to do?

steel heart
#

hmm copy a plugin code

prisma wave
#

ah

#

yeah you're gonna have to rewrite it manually

#

there's no existing .class > .kt decompiler that I know of

steel heart
#

awww

#

cant u make one

prisma wave
#

easier said than done lol

#

like I said there's a lot of compiler magic that's a bit tricky to reverse

surreal quarry
#

how do you guys use json for data files and stuff / what library

prisma wave
#

Gson usually

surreal quarry
#

alright

prisma wave
#

or kotlinx.serialization depending on what needs doing

ocean quartz
#

BM or Sx do you guys have any example of a coroutine scheduler?

prisma wave
#

i don't think so

ocean quartz
#

Sad, doesn't seem like Forge has a scheduler like Spigot

prisma wave
#

oh I see what you're asking

#

I mean, delay is a thing

#

you could probably make your own in like 20 lines

heady birch
#

More like 5

#

while (true) {
Thread.sleep(1000)
}

#

πŸ˜…

prisma wave
#

damn

#

very impressive

errant geyser
#

Ir

#

Or

#

kys()

fun kys() {
    kys()
}```
#

Ez

ocean quartz
#

Yeah I guess I'll have to
Another thing I can do tbh is use the tickEvent but idk

#

So would it be something like suspending a function and having a while true in it with a delay based on the time i want?

pearl cliff
#

If I was to start learning either C++ or Java for game development which one would be better?

prisma wave
#

C++

heady birch
#

C++

analog crater
#

C++ for ue4

onyx loom
#

or ue5 πŸ‘€

ocean quartz
#

Depends on the game you want to make
Tbh I suggest you use an engine instead for example, C++ on Unreal or C# for Unity there are some for GO and some for Java as well

pearl cliff
#

Unreal is better than unity right?

onyx loom
#

probably depends

ocean quartz
#

better is also subjective, Unity is easier to use, Unreal has better graphical capabilities

prisma wave
#

yeah

ocean quartz
#

Both are really good

prisma wave
#

unity is definitely more beginner friendly, but unreal is much more powerful

onyx loom
#

start with c#, then learn c++ fingerguns_reversed

pearl cliff
#

C++ and C# are similar anyway I think so it wouldn't be too hard to switch

ocean quartz
#

I really don't think they are similar, C# is closer to Java than to C++

prisma wave
#

they're not that similar

pearl cliff
#

they both have C in their name so that's good enough for me

prisma wave
#

ah yes

#

logic

onyx loom
pearl cliff
#

Think big work smart

steel heart
#

C# got gc C++ dont right?

onyx loom
#

yea it does

#

quick google search πŸ‘

prisma wave
#

C++ is manual memory management yeah

split talon
#

C++ is more difficult of a language than a higher level one, like Java or C#

steel heart
#

of a language?

regal gale
#

After i tested the whole time, this dude thinks kt is java...

prisma wave
#

bruh

onyx loom
#

name and shame pls

regal gale
#

thonking probably not enough

cursive breach
hot hull
#

Use compileOnly

cursive breach
wise sundial
#

Yo who here can code a arduino controlled robot?

cursive breach
#

oh, Frosty, thanks for the help but it isn't my project, I was trying to compile one of Matt's.

#

I'll wait till he is back on.

old wyvern
#

C++ is manual memory management yeah
C# can too if you want, but def not recommended πŸ˜‚

obtuse gale
#

Brett its probably because paper isnt in like .m2 folder or whatever

#

Like with spigot u gotta run buildtools

distant sun
#

If you want paper api add their repo @cursive breach

errant geyser
quiet depot
#

readme looks fine

#

project needs javadocs

errant geyser
#

Piggy I have a singular braincell

#

I have no idea how I'd make javadocs

distant sun
#

^

steel heart
#

its kinda easy

barren cloud
#

Are there any way to start server softly? I've tried to limit CPU but don't like it at all. I'd like to start 10 server in same time without slowdown other servers in same instance.

remote goblet
#

Solution is don’t start servers at the same time

#

Start them all one after another at different times

barren cloud
#

I meant to say 10 SMALL server like mini game server.

remote goblet
#

I know

barren cloud
#

So you're saying make a system that queue the servers and open with order

remote goblet
#

Yeah, do hypixel shut down all their servers at the exact same time

#

No, they restart all their servers in a queue

barren cloud
#

I really wonder what hypixel uses for that

#

Are you sure?

#

How do you know?

#

Maybe they made custom things and successfully made soft system for just mini game servers.

errant geyser
#

No seriously

#

People make a queue

barren cloud
#

I'm sure they are but Hypixel is the biggest network in Minecraft. So it's possible that they made another system for that.

remote goblet
#

It’s the same idea

errant geyser
#

^

barren cloud
#

Should I make this system for my server? I can do it but I don't have any playerbase right now so...

#

Maybe I should do manually and if I get more players, I'd do it.

#

The cubecraft method is strange one. They paste arenas next to others. I'm wondering what they do for resetting their multi arena server 'cause there are more than one arena and might still playing...

prisma wave
#

Docker might be worth looking into

old wyvern
#

bm

#

guess the lang

#

I jsut realized

#

this was a thing

regal gale
#

Do you guys want to play a guessing game again thonking (probably some times later)

old wyvern
#

welp

prisma wave
#

Is this a trick question

old wyvern
#

as in?

prisma wave
#

Doesn't Swift have null safety too?

old wyvern
#

Havent used swift

prisma wave
#

well it looks like kotlin but it might be a trick

old wyvern
#

didnt notice this in C# tho

#

its not a trick

prisma wave
#

C#?

old wyvern
#

C# has that

#

yes

#

Nullable types

prisma wave
#

Huh

#

Oh yeah

#

I thought C# used WriteLine for print though

old wyvern
#

Type? is shorthand for Nullable<Type>

#

oh thats the Unity console print function

prisma wave
#

I see

#

Oh yeah that's the VS colour scheme

#

Interesting

old wyvern
#

?: is ?? here

prisma wave
#

C# is kinda ugly tho

#

UpperCamelCase method names

#

Gross

old wyvern
#

yea Im not a fan of that either but eh

#

fields still follow camelcasing

regal gale
#

Oh btw, sorry for interrupting, but there is a weird news :)

onyx loom
#

I thought C# used WriteLine for print though
@prisma wave visual basic does too fingerguns

old wyvern
#

Properties and Methods use Upper

prisma wave
#

Bad @onyx loom

#

Never heard of it

old wyvern
#

Oh.... wait

#

Extension functions

#

...

regal gale
#

It's from one of my friends'

old wyvern
#

Well learning kotlin helps me now I guess

prisma wave
#

What about them?

old wyvern
#

C# has them

prisma wave
#

C# has them?

#

Ah

#

Thought so

#

Cool stuff

old wyvern
#

Im confused but happy af xD

regal gale
#

However, upon my inspect, there's something on a coding environment :p

prisma wave
#

?

regal gale
#

This dude uses eclipse for that thing thonking

prisma wave
#

oh no

regal gale
#

Literally

errant geyser
#

🀒

prisma wave
#

gross

#

@old wyvern you ever used F# before?

old wyvern
#

Nope

prisma wave
#

it looks pretty cool I think

old wyvern
#

Ill give it a try tonight

prisma wave
#

yeah i'm gonna

old wyvern
#

F# is functional paradigm right?

prisma wave
#

yes

#

very functional

old wyvern
#

nice

#

hmm

prisma wave
#

it's whitespace based which kinda sucks

#

but everything else looks quite cool

old wyvern
#

oh fuck no xD

#

like python?

prisma wave
#

yeah

onyx loom
#

example?

old wyvern
#

welp

prisma wave
#

uh

#
let square x = 
    x * x
    + 1
``` I think
old wyvern
#
prisma wave
#

awful example lmao

onyx loom
#

thought so

lavish notch
onyx loom
#

yuck

old wyvern
#
 class  
  do printfn "Hello World"  
 end  
new Program()  ```What the what
#

xD

prisma wave
#

wat

#

well that's pretty gross

old wyvern
#

screams in if then end if

#

atleast vb didnt care about space

onyx loom
#

yuck

errant geyser
#

So Piggy wanted me to write javadocs, how do I do that? Do I use a git books sort of thing or how do I do it in spigot javadoc style?

prisma wave
#

either

#

javadocs are easy

onyx loom
#

gitbooks is nicer

prisma wave
#

yeah gitbooks looks nicer

#

but javadocs are more accessible

#

since they're in source code too

errant geyser
#

I don't even know what to write for them tho

prisma wave
#

start with parameter and return type annotations

#

with a brief description of what the method does

#

that's usually enough

errant geyser
#

hmmm ok

#

Sounds gai

#

Why would that be useful?

old wyvern
#

So other developers understand what the function does, what the input/output represent...ect

barren cloud
#

If I stay open a server that not in use, can it affect my other servers in same machine? It uses ram and 0.5-1% CPU. I think it's not but wanted to say here

errant geyser
#

If its consuming resources then yeah. Depending on how much that might be negligable though

static zealot
#

^ even if no one is online but if you have spare resources then it won't rly be a problem

barren cloud
#

It's for mini game server. I've thinking the shitty mini game system all my day. I've decided to use bungee arena instead of multi arena but it comes with some problem

#

one is opening actually the most important thing is this.

#

I don't want to make queue system for now 'cause the server is close. So what should I do for that? Should I manage everything manually for mini game servers?

hard trench
#

Hey peeps! I tried to update my mariadb - mysql database from 1.10.1 to 1.10.5, but the tutorial i was following has some problems in it :/ maybe someone can assit me?

remote goblet
#

also dont ask to ask

hard trench
#

Ori was that to me? ^^ should i ask there? Sorry then for posting in the wrong chat πŸ™‚

errant geyser
#

That was to you

prisma wave
#

fuck you iredmail

#

deleting all my nginx configurations

topaz bay
#

took me a second to find it

prisma wave
#

Hm

#

That is... Different

topaz bay
#

It was a part of my kotlin scripting project

#

Where you could load kotlin scripts, kinda like... (please forgive me) Skript

heady birch
#

You became the very thing you swore to destroy

hot hull
#

@topaz bay You shall not be forgiven.

topaz bay
#

I mean... its not really the same at all

#

The only thing thats similar is that you can load and unload the script files

#

Its actual kotlin code still

hot hull
#

You have sinned by just mentioning that word

regal gale
#

This is just me trying to decompile oldest IControlU for referrence...

hot hull
#

Ctrl + A + Delete.

jaunty maple
analog crater
#
\
   \
      \ S  e  s  b  d
      /  e  m     a
   /
/
obtuse gale
oak raft
#

@regal gale isn’t that called mountain code or something? Lmao

#

Frosty doesn’t seem to happy about it

onyx loom
#

thats like mt everest

#

?plsnoarrowcode

compact perchBOT
prisma wave
#

Arrow code

steel heart
#

Mitten

#

Whats ya name on gh?

onyx loom
#

knightzmc πŸ™‚

prisma wave
#

^

#

Old username

#

Cba to change

onyx loom
#

can u change on gh?

steel heart
#

Okay I consider adding pdm support for katsus item action lib

onyx loom
#

never looked

prisma wave
#

you can

#

But it could break lots of things

#

Since URLs use your username

#

@steel heart to do what?

steel heart
#

Wanna add maybe so if you use pdm it registers the manager to servicesmanager instead

#

And the instance would then be obtained there

prisma wave
#

umm

#

That's not what pdm does?

#

Also

#

wtf is this

steel heart
#

Huh

prisma wave
#

$

steel heart
#

Shut it

#

But srsly

prisma wave
#

why would you do that

#

That is readability hell

steel heart
#

Look we Say 2 devs shade ial

#

Each one of them would have a brunch of listeners registered

#

Problem is that they could use the same listeners and event classes

prisma wave
#

Why does that matter?

steel heart
#

Isn’t that inefficient

#

Registering too many listeners on the same event?

#

Β―_(ツ)_/Β―

#

That is readability hell
@prisma wave not rly

hot hull
#

Conclure, not really

steel heart
#

Hmm you sure?

hot hull
#

Like 90% sure

steel heart
#

Lol okay I need that 10%

prisma wave
#

$ is not a clear variable name

#

Also, even if it was inefficient, PDM wouldn't change anything?

steel heart
#

It would

hot hull
#

Conclure, still waiting :(

steel heart
#

Yeah I will talk to the admins

#

Asap i get home

prisma wave
#

How so

steel heart
#

For instance Rob, uses IAL. He shades it in and makes his own instance of the manager class in the lib. Whenever you invoke the manager class 12 listeners or so gets registered. Then we have Bert. Bert does the same thing but with his project. Now we have Rub. Rub uses both plugins and as a matter of fact it ends up being a total of 24 listeners registered instead.

#

Here is when pdm comes to the solution.

hot hull
#

You're already having hundreds of others being registered

steel heart
#

And?

#

Saving some memory wouldn’t be too bad?

hot hull
#

Ew imagine making shit efficient

steel heart
#

That’s good

prisma wave
#

pdm wouldn't necessarily fix that

#

because different versions

steel heart
#

True

#

Hmm well I guess shading is fine

prisma wave
#

And even so, the classes might end up being different

steel heart
#

Also $ is a very nice variable name

prisma wave
#

Not 100% sure on how classloading works but I think different clasloaders = different classes

steel heart
#

Yh it’s presumably something like that

prisma wave
#

If you want to optimize, don't register all the events, only register necessary ones

#

and don't pre optimize anyway

steel heart
#

Hmm okay πŸ‘Œ

#

Isn’t the registering process synchronized

#

Of eventlisteners

prisma wave
#

wdym?

#

Also, best option here is probably the service manager

steel heart
#

Yeah I was thinking of that

#

Though combined with pdm so every developer who uses ial doesn’t need to shade

hot hull
#

KM, do I start from scratch, or do I convert everything using the keybind? (An existing project)

prisma wave
#

That should be up to the developers

#

Not you

#

Up to you @hot hull

#

Personally I would start from scratch

#

Depending on what it is

steel heart
#

Ok km also why is $ bad

#

Like srsly

#

You can see the type before

prisma wave
#

Because it gives no information about what the variable is

hot hull
#

FJ KM

prisma wave
#

in the same way that you shouldn't use e or p

#

Hmm

steel heart
#

Stream.of(ActionType.values()).forEach($

#

Seem kinda obvious what this is

prisma wave
#

you shouldn't need to look at the previous line to find out what a variable represents

#

That's the point of having a clear name

steel heart
#

Meh

#

I like $

#

Very handy

prisma wave
#

It's a code smell

steel heart
prisma wave
#

@hot hull imo rewrite most of it, just copy & convert anything that doesn't need rewriting

#

Or just convert each class 1 at a time

#

But rewriting is better since you can make it more idiomatic

hot hull
#

Yea I'll just rewritte it, since I have to adjust shit anyways

hollow spade
#

Hello my intellij is complety broken any ideas on how i could fix

hot hull
#

Turn it off and back on

hollow spade
#

done

#

still broke

#

im saying i can't open it at all

hot hull
#

Reinstall

hollow spade
#

done that 5 times already

hot hull
#

What version, and what system?

hollow spade
#

also whent to a older version and still broken

#

What you mean what system

hot hull
#

64 or 32bit

hollow spade
#

2020.1.3 version 64

hot hull
#

No clue GWvertiPeepoSadMan

hollow spade
#

o 😦

#

Got any other recommendations then?

steel heart
#

Report it

#

To IntelliJ

prisma wave
#

Get jetbrains toolbox and open a specific project

#

Or delete the .idea directory

#

In user home

hollow spade
#

wym by .idea directory?

#

like where is that

steel heart
#

In ur project

topaz bay
#

In user home

steel heart
#

Wait does it exist more than 1 per project?

topaz bay
#

its not called .idea in the home directory

#

Its IntelliJ and the version

#

It holds configuration and settings

steel heart
#

Yeah

hollow spade
#

intellij opens for half a second then closes

hot hull
#

Potato pc?

hollow spade
#

not really

#

i had it working in previouse versions

#

and not it just says no 😦

surreal quarry
#

i have a project and I am looking to put it out publicly for people to use, what is the best way to go about deploying it to a repository/making my own repository to use?

analog crater
surreal quarry
#

i have it on github

#

im saying like deploy to like sonatype or soemthing

hot hull
#

Maven central

surreal quarry
prisma wave
#

Jitpack

#

Maven central

#

Sonatype

#

Your own repo

#

etc

#

bintray

hot hull
#

Jitpack doodoo

errant geyser
#

You could slap it on my Sonatype Nexus if it really came down to it if you wanted to

#

But Maven Central or your own is the way to go I think

hollow spade
onyx loom
#

.kt fingerguns

prisma wave
#

Might as well do all the file types

#

They're optional though

onyx loom
#

yea

hollow spade
#

like the .java?

onyx loom
#

it just changes the default opener for those file types i believe

prisma wave
#

yes

#

yeah it does

#

Well

#

all the file types

onyx loom
#

tbf u dont even need to create the desktop shortcut, it just creates more clutter on the desktop

#

but if u want it then go ahead, just my opinion

hollow spade
#

Jetbrains or what should i do?

onyx loom
#

yea just leave that default tbh, unless u really want to change it

prisma wave
#

Well... Yeah

#

It really doesn't matter

hollow spade
#

well i have done this process 5000 times and it just doesn't open each time

onyx loom
prisma wave
#

Did you delete the .intellij folder?

hollow spade
#

no?

#

where do i delete that

onyx loom
#

ur user folder i believe

#

could be wrong

prisma wave
#

Yeah

#

Could be corrupted

onyx loom
#

C:\Users\YOUR_USER

prisma wave
#

I mentioned it earlier, said .idea but sx corrected me

topaz bay
#

=paste

compact perchBOT
#
HelpChat Paste

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

topaz bay
#

And also, I apologize in advance for it being medium.

analog crater
#

Can you put it in a gist? I dont want to create an account and it seems like an interesting read

topaz bay
#

You shouldnt need an account?

analog crater
topaz bay
#

Unless youre already past your "free story" limit

#

try opening it in full chrome?

analog crater
#

Nope, still requires an account in chrome and samsung internet

topaz bay
#

Rip

errant geyser
#

Might be just a mobile thing

topaz bay
#

I actually think its kinda... illegal?

#

To copy and distribute it

analog crater
#

shhh

topaz bay
#

You lose the picture examples

#

But meh, that works

analog crater
#

are the pictures important?

topaz bay
#

Not really

analog crater
#

Thanks πŸ‘

topaz bay
#

Apparently you can also load medium webpages in an ingonito window to bypass it

prisma wave
#

Fuck medium

errant geyser
#

Tf is medium

prisma wave
#

A blogging website

#

It's shit though

topaz bay
#

Well...

#

Its actually kinda good

#

Its almost like reddit, but extremely focused based on what you define as your topics

#

The paywall is ass though

prisma wave
#

The site looks nice

#

And the content is good

#

but I'm not paying to read a random article

errant geyser
#

Reddit ftw

#

Especially BMs post history

#

That's one for the books

prisma wave
#

no

#

not at all

surreal quarry
#

I got my confirmation from sonatype that my group was prepared, but I cannot for the life of me figure out how to actually deploy with gradle

errant geyser
#

Β―\_(ツ)_/Β―

#

Most of us have our own

surreal quarry
#

I would prefer that honestly

#

did you do it via sonatype?

prisma wave
#

maven-publish plugin

cursive breach
#

hi @distant sun (sorry for the tag).
So I added their repo (it seemed to not have been correctly displayed in the file?) and now i'm getting a bunch of other stuff.. should I try redownloading it?

distant sun
#

Thats nms

cursive breach
hollow spade
#

My intellij is still broke anyone got any suggestions on how to fix

#

i pretty much tried everything restarting my pc reinstalling it

#

now that i look at it that does not seems like much but idk what else to try

prisma wave
#

Did you delete that folder?

hollow spade
#

yes

#

i might factory reset

onyx loom
#

whats the actual problem?

hollow spade
#

well when i click on intellij to open it it opens for like half a second then closes so it seems to try to open then says no

prisma wave
#

what Java version are you on

hollow spade
#

how do i check

prisma wave
#

java -version lol

hollow spade
#

14.0.2

prisma wave
#

And what intellij version?

hollow spade
#

IntelliJ IDEA Community Edition 2020.1.3 x64

prisma wave
#

intriguing

#

there should be startup logs somewhere

#

Probably in .intellij/

hollow spade
#

hmm still broke

prisma wave
#

No I mean

#

Send the logs

#

Lol

hollow spade
#

what ever im just going to The system cannot find the path specified

prisma wave
#

?

hollow spade
#

when i click that i says The system cannot find the path specified

#

but i can't delete it

onyx loom
#

windows being stoopid

prisma wave
#

that sounds corrupt

onyx loom
#

reopen file explorer and it shouldnt be there

prisma wave
#

chkdsk perhaps

onyx loom
#

or that yeah

hollow spade
#

nope still there

#

wait what is chkdsk

prisma wave
#

a command

#

to fix filesystem errors

#

because ntfs bad lol

hollow spade
#

so i put that in command prompt?

prisma wave
#

iirc it's chkdsk /f

#

But just look on literally every windows support post

hollow spade
#

alright

surreal quarry
#
Error resolving plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.3.72']
> Plugin request for plugin already on the classpath must not include a version```
#

anyone ever seen this before/know the fix

#

i have that plugin in a module inside one of my projects, and the main project's build.gradle doesn't contain the kotlin plugin

prisma wave
#

Just remove the version

surreal quarry
prisma wave
#

Interesting

#

What does your project structure look like?

surreal quarry
topaz bay
#

can you send the build files

prisma wave
#

yeah

remote goblet
#

interesting windows fact

surreal quarry
remote goblet
#

when replacing a plugin jar with a new one while a server is running, Windows won't let you do it with file explorer but will let you do it if you drag and drop in intellij EmiThink

#

kinda weird

surreal quarry
#

and i'm running clean install

#

if its relevant

topaz bay
#

Welp

#

Youre definitely doing that wrong

surreal quarry
#

just gradle in general or something specific lol

topaz bay
#

Well 1. whats the point in applying those plugins in the root project, if youre going to redeclare them in every project anyway

surreal quarry
#

should i be declaring them all in the root

topaz bay
#

Well... well yeah...

#

It will get applied to all of them

surreal quarry
#

alright lol

topaz bay
#

Also, remove the kotlin configuration from each module

#

And the repeated dependencies

surreal quarry
#

all in the root as well

topaz bay
#

Anything thats repeated yeah

#

And you should also probably change those api's to compileOnly

surreal quarry
#

so 2 things
is it ok to have an empty build.gradle for one of my modules if it doesn't have any of its own dependencies or anything

topaz bay
#

yes

surreal quarry
#

and then what is the difference between like compileOnly, api, implementation, compile, etc etc.

topaz bay
#

Everything

#
  1. never use compile
#

its deprecated, and trash

#

compileOnly is analogous to provided, from maven

#

A dependency which is necessary for compilation, but will be provided at runtime

surreal quarry
#

ah ok

topaz bay
#

api is for a dependency that should be transitive of your module

surreal quarry
#

and then it looks like api and implementation are the new version of compile

topaz bay
#

So if someone depends on your module, it will pull along that dependency as well

#

And implementation is the opposite

surreal quarry
#

ok ty

topaz bay
#

and yes, they replace compile

surreal quarry
#

alright i have a new error now lol

A problem occurred evaluating root project 'bukkit'.
> Could not find method implementation() for arguments [project ':common'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.```
New builds:
root - https://paste.helpch.at/opijeduder.cs
bukkit - https://paste.helpch.at/oyumeqoxop.nginx
bungee -https://paste.helpch.at/beyihacose.nginx
and common is empty
topaz bay
#

remove the subprojects block

#

replace java with java-library

surreal quarry
#

all of the content of subprojects, or just the opening and closing parts of it

prisma wave
#

Isn't implementation in gradle 5?

#

Or 6 possibly

surreal quarry
#

idk but i'm using 6 i believe

#

distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip in my gradle-wrapper.properties

onyx loom
#

implementation is in gradle 5 i believe

#

my gradle was set to v5 before and was working fine so yeah

surreal quarry
#

i mean my version isn't the issue i dont think. i tried compile and got the same error

onyx loom
#

idk what ur issue is nor would i be able to help tbh πŸ˜…

#

im bad at this stuff

surreal quarry
#

it can't seem to find any of the keywords for gradle dependencies

topaz bay
#

It is, yes.

#

But it doesnt hurt to use java-library instead

surreal quarry
#

sx you're saying java-library as the plugin id right

lavish notch
#
replacements:
    # Lists of character replacements
    # (CHARACTER):(REPLACEMENT)
    g: q
    c: <

Using ConfigMe, how can I list the content of replacements? (g: q and c: <)

distant sun
#

you cant really use configme for that

#

I have used configurate by sponge and It's really cool

prisma wave
#

Closest thing you could get is probably a Map<String, String>

regal gale
#

God.. how many mountains are there on this class...

frail glade
onyx loom
#

what the fuck did i just see

#

im so glad that mobile mitigates like 90% of that arrowcode

#

altho @regal gale please do Ctrl+A+Delete πŸ™‚

regal gale
#

How can i delete it on phone thonking

onyx loom
#

smash it on the floor

regal gale
#

Oh ok

#

Brb

trim hare
regal gale
#

Done fingerguns_reversed

#

||not my phone btw||

onyx loom
#

why can i not react here OH MY GOD

#

its a general chat

regal gale
#

Blame cube

onyx loom
#

@pallid gale this is a general chat. please give me perms. k thx. (if u dont i will deprive u of boosts).

#

is that goid enough thien?

#

i think i got him good.

regal gale
#

Absolutely <3

onyx loom
#

awesome

pallid gale
#

Checks out

onyx loom
#

hehe

#

it worked

#

now i just gotta make him do it for all channels

#

❀️

hot hull
obtuse gale
#

just make a configurator available

#

ez

hot hull
#

I fixed it I think

errant geyser
#

Frosty I got that a while back, even BM didn't know. I had to just manually add the kotlin stuff to Gradle then it worked

#

Β―_(ツ)_/Β―

hot hull
#

I changed the gradle version and reimported and it fixed itself

hot hull
#

I could use some guidance when it comes to constant public variables in kt

obtuse gale
#

like static?

hot hull
#

Yea

obtuse gale
#
companion object{
  val  WHATEVER = ""
}```
hot hull
obtuse gale
#

smh

#

ah

hot hull
#

How do I access it in another now, without DI

obtuse gale
#

WhateverClassTheCompanionObjectIsIn.WHATEVER

hot hull
#

Ah I see

#

Can I pass in a param to the companion object or?

#

Cause I need an instance of my plugin, but doesn't seem I can just declare it in the companion object class

obtuse gale
#

wdym

hot hull
#

How do I pass in a plugin instance now?

obtuse gale
#

I mean idk if this is the best way but cant u just make it a var then assign it this onEnable

#

no clue

#

oh

#

I see what u mean

#

no clue

hot hull
#

Tried using JavaPlugin.getPlugin, but that just shat itself

obtuse gale
#

wouldnt ur static thing to ur main need to be in ur main anyway?

#

like even in java

hot hull
#

Yea

#

Although, I mean you could just use the get plugin thingy and use that, could you not thonking

obtuse gale
#

getPlugin worked fine for me

#

JavaPlugin.getPlugin(Main::class.java)

pastel imp
#

bruh need ideas for names for my plugin.. like was thinking about AzoneArmor&Tools

#

but it's a big name

hot hull
#

Ah okay yea I figured it out

pastel imp
#

someone has a better idea

#

oof?

#

(plugin is about custom armors and tools)

hot hull
#

Do I put my extensions file inside a util package or?

errant geyser
#

An extensions package

#

And you apparently normally seperate extensions by type

#

So like StringExtensions ColorExtensions PlayerExtensions or whatever

obtuse gale
#

I just put all mine in the same class lol

errant geyser
#

I used to

#

Then BM got triggered

frigid badge
#

why would you put them in the same class

#

that makes 0 sense

obtuse gale
#

I like to have it consistent between projects and some small projects only have like 3 extensions lol

frigid badge
#

that's such a weird reason

#

that would also mean you write the same shit code as that you used to when you started coding

#

since that's consistent

#

πŸ˜›

obtuse gale
#

oh I do write the same shit code as I used to

hot hull
#

Can someone link me to their extensions class

obtuse gale
#

does it need to have alot of extensions?

hot hull
#

Nah just so I see how it should be structured

obtuse gale
#

I mean...

#

just a class but with the words class Thing removed

hot hull
#

sHoW mE

obtuse gale
hot hull
#

Those incosistent spaces are 🀒

obtuse gale
#

ikr

#

they are pretty sick

steel heart
#

Takes 2 seconds to fix?

remote goblet
#

i'm genuinely scared to look at aj's code

#

its either gonna be aight or horrible

onyx loom
#

bit of both

remote goblet
#

it's not as bad as mine atleast EmiCool

heady birch
#

Bullying over peoples code is not accepted here fingerguns_reversed

remote goblet
#

yes it absolutely is

#

say -1 all you want

heady birch
#

Not very nice though is it

pallid gale
#

D:

heady birch
#

@remote goblet You have github?

steel heart
#

It’s ok as long as you are helpful I’d say

heady birch
#

😠 critcize time

pallid gale
#

only admins are allowed to aboose

steel heart
#

Aboose

#

Niall what’s ur gh

pallid gale
#

=burn it

steel heart
#

Lol

heady birch
#

Those emojis annoy me

steel heart
heady birch
#

The kind of ones you find on a powerpoint from early 2000s

steel heart
#

Aye

#

Do y even have gh

heady birch
#

its not the best

hot hull
#

?

obtuse gale
#

yes

topaz bay
#

...

heady birch
#

All it does is throw npe

#

Kinda defats the point

obtuse gale
#

so is that spelling of colour

#

thats a nono

hot hull
#

stfu

pallid gale
#

colour pls

#

ty

topaz bay
#

eff your u's

remote goblet
#

imagine spelling it color KEKW

heady birch
#

I spell it color in code

#

And colour in docs

remote goblet
steel heart
#

Color is more swag

distant sun
#

clr()

remote goblet
#

Color sounds like you're dumb

hot hull
#

Boutta name it barva you nonces

pallid gale
#

i'll take your center but that's it

heady birch
#

final Color colour; is weird

remote goblet
#

omG lOok at that cOlORRR

topaz bay
#

cuhlure

steel heart
#

Niall yup

heady birch
#

Unless? Make a colour wrapper

steel heart
#

No pls

heady birch
#

Colour.of(Color.WHITE)

#

Awesome Idea!

steel heart
#

Lmao

remote goblet
#

imo center would be the center of something and centre would be like a shopping centre EmiThink

heady birch
#

No

obtuse gale
#

it should be spelled cula

steel heart
#

No shit center would be the center of something

onyx loom
#

i swear i use both center and centre

#

i never make my mind up

remote goblet
#

same

topaz bay
#

I mean.... "center" is also used in shopping center

heady birch
#

Yes but shopping centers are center

#

center of the shopping center

#

when the shopping center is the center of shops technically

#

epicenter

#

shopping epicenter

topaz bay
#

WOW

#

This bitch just read us for filth

#

How dare she

pallid gale
#

kuler pls

heady birch
#

Color col;

pallid gale
#

Adobe Kuler fingerguns

heady birch
#

column

onyx loom
#

wait u didnt know that center and centre are the same?

steel heart
#

Lol

pallid gale
#

shh sx is slow

#

we know this

#

dont be a bully

topaz bay
#

????

#

Who tf said I didnt know that

onyx loom
#

why u had to google it then

topaz bay
#

Thats not what I googled

#

But go off

#

lol

onyx loom
#

πŸ€”

heady birch
#
type Colour
        integer r
        integer g
        integer b
end type Colour
topaz bay
#

I googled "Shopping Center vs Shopping Centre" to see which one was more prominent

regal gale
#

I think centre is

topaz bay
#
data class Colour(val r: Int, val g: Int, val b: Int)
compact perchBOT
#

Detected abnormally large 5head, proceed with caution.

topaz bay
#

@heady birch better.

onyx loom
#

πŸ˜‚πŸ˜‚

heady birch
#

Lol

topaz bay
#

I feel personally attacked by this

#

I will sue your ass

pallid gale
onyx loom
#

woah dont do that he might sue u

topaz bay
#

@pallid gale come at me bitch

#

I shall release my inner Karen on you

regal gale
#

Dang

pallid gale
#

Barry never mentioned who the the 5head was, you just assumed it was you..

regal gale
#

I smell the roasting

pallid gale
#

Unless

remote goblet
#

It wasn't wrong tho

pallid gale
#

You already knew?

topaz bay
#

@remote goblet BITCH

#

Whos side are you ON?!?!?

#

The fucking heteros?!?!?

remote goblet
#

My own

topaz bay
#

TRAITOR

remote goblet
#

I'm on the fag side EmiCool

steel heart
#

Heteros

#

That seem like a good side for me

obtuse gale
#

is anyone on sxs side?

#

Vote yes if you are, no if not

topaz bay
#

My puppy is

#

And thats all that matters

pallid gale
#

It's too young to know any better

remote goblet
pallid gale
#

You bully

topaz bay
#

Hes like 6

#

What do you mean

regal gale
#

Wait before continue

#

Anyone dare to try a challenge "try not to get anxiety"?

steel heart
#

Yes

#

I dare fingerguns_reversed fingerguns

remote goblet
#

Me: "I came up with a lazy way of doing this, im intelligent"
Bf: "Are you?"
Me: "No"

pallid gale
#

Seems we've gotten a little off topic.

remote goblet
#

you're off topic

topaz bay
#

^

pallid gale
#

Sic burn

steel heart
#

Okay back to bullying thonking

regal gale
#

No. I'm trying to get you guys anxiety with code

#

So it's not off-topic yet 🀷

remote goblet
#

sxtanna typing gives me anxiety

pallid gale
#

Gives me excitement, hopefully he can say something I can ban him for

topaz bay
#

WOW

#

WTF

pallid gale
#

xoxo

topaz bay
regal gale
#

Lol

#

Ok are you guys ready?

topaz bay
#

I am deeply offended by that sentiment

regal gale
#

Rule is simple: try to stare on this picture for half a minute

pallid gale
#

What would even you do if you couldn't roast peoples code all day

topaz bay
#

Oh please

onyx loom
#

cry in a corner

remote goblet
#

He'd move to another discord server and bully their code

regal gale
steel heart
#
public static final synchronized void hi() {
 if (you.isNoob()) {
  you.bamboozle(fart -> fart.explode());
   }
    }```
topaz bay
#

I'm genuinely surprised you think thats what I do all day