#dev-general

1 messages · Page 537 of 1

onyx loom
#

germany tomorrow 😫

frosty hill
#

fuck you

#

fuck

static zealot
#

maybe not

prisma wave
#

WTF

#

star

cinder flare
#

yes?

prisma wave
#

you are sick in the head

half harness
static zealot
#

nice

cinder flare
#

what could you possibly mean

prisma wave
onyx loom
#

🤔

prisma wave
#

i will get involved

frosty hill
#

fuck of

cinder flare
frosty hill
#

FUCK OF

prisma wave
#

fuck of what?

cinder flare
#

deus ex machina and allt hat

frosty hill
#

brister

#

fuck

static zealot
#

Erdem please stop. Don't make me mute

frosty hill
#

of

prisma wave
#

ok

cinder flare
half harness
frosty hill
cinder flare
#

so I need that cute RJ45 cable

frosty hill
#

fuck england

prisma wave
#

dont worry mate i will unmute

frosty hill
#

noob england

prisma wave
onyx loom
#

true true

cinder flare
prisma wave
#

sit down

frosty hill
#

goods

onyx loom
#

using football scores to settle a debate 😌

frosty hill
#

idiot brister

cinder flare
#

oh is that soccer

onyx loom
#

yes

cinder flare
#

makes sense why it's so close

static zealot
#

saying football instead of soccer 😌

frosty hill
#

walk go

prisma wave
#

turkey monad human resources

cinder flare
#

soccer is too I guess

prisma wave
cinder flare
#

but less downtime

frosty hill
#

idiot england

cinder flare
prisma wave
cinder flare
#

bri ish boi

onyx loom
#

ingerland

frosty hill
#

ı am erdem

prisma wave
#

when was the last time turkey did anything ever

#

oh ok

frosty hill
#

kes

prisma wave
#

my bad

frosty hill
#

kes

#

anan

lunar cypress
# prisma wave i will get involved

This reminds me of that tweet "What would you do in this situation [picture of exploding earth]" and someone replying "I would intervene"

frosty hill
#

baban

#

soy

#

sop

#

GELMİŞİNİ

#

SOYUNU

cinder flare
frosty hill
#

AHA

#

HA

#

AH

#

H

#

ah ah yaparım

prisma wave
frosty hill
#

TÜRKİYE adamdır

#

siz faqırsınız

#

faq

#

faq yu men

#

biç yu faq

#

fak of

static zealot
#

is it time?

onyx loom
#

yes

static zealot
#

=mute @frosty hill global

compact perchBOT
#
Successful!

You've muted Cést | ErdemYT#0001!

cinder flare
#

even Dyno is getting involved

#

I think so

ocean quartz
#

Keep going this way a trusted doesn't need to mute you and Barry can do it fingerguns

onyx loom
#

👋

ocean quartz
#

Ah Blitz come on

prisma wave
#

oh no it was this

ocean quartz
#

Let him do it on his own smh

lunar cypress
#

get inolvolved.

prisma wave
#

police violents

static zealot
#

ah xD

#

lmao

cinder flare
static zealot
#

that was 2 edits smh

cinder flare
#

got em

prisma wave
static zealot
#

but when I'll find it

#

I Will send

ocean quartz
#

By get involved do they mean they'll become police and be violent too?

prisma wave
#

another day wishing americans didnt exist

cinder flare
#

bro what

#

what would you do without me

static zealot
#

football. proceeds to take the ball with his hands and run

#

xD

prisma wave
cinder flare
#

holy shit

lunar cypress
#

I'm an internationalist as long as americans shut up 😌

onyx loom
#

"foot"ball

cinder flare
#

whelp

static zealot
#

soccer. bcz they have high socks xD

cinder flare
#

guess I'll go grab my toaster

ocean quartz
#

Handegg

ocean quartz
onyx loom
#

ah yes good ol david beckham

lunar cypress
#

You've got weirdly shaped eggs

cinder flare
#

hey man I dunno, I don't even like american football ngl

#

I'm much more of a soccer person myself

static zealot
#

football please

cinder flare
#

see but to anyone I would talk to in real life they would think of something else

#

and I do not want to go to any more uni football games

static zealot
#

well you're not in real life here

onyx loom
#

teach them differently

static zealot
#

this is a simulation

cinder flare
#

and besides what are we gonna call american football

#

obviously not hand egg

lunar cypress
#

american football

onyx loom
#

"the shittier version of rugby"

cinder flare
#

ya it kinda is

#

trust me I'm not defending football here

#

but the word soccer definitely has a good vibe

static zealot
#

well actually we do call it american football

cinder flare
#

ya but we call it just football

#

and literally any person in the united states will understand that

static zealot
#

most

#

not any

cinder flare
#

which is like, more than your guys' countries

#

find me one perosn

cinder flare
#

weak

static zealot
cinder flare
#

see but we have the biggest GDP

#

so we get to make the rules

static zealot
#

that's 7.3 B people

#

against 328 Mil

#

so fuck off

#

ty

cinder flare
#

you don't know all of them call it that

ocean quartz
#

Biggest GDP and can't give citizens healthcare and cheap education smh

static zealot
#

xD

cinder flare
#

yes

#

i did not say we weren't flawed

#

but we definitely have power

static zealot
#

Star you're walking on mined ground

lunar cypress
#

when line go up = more people

static zealot
#

please turn around

cinder flare
#

i will never stop calling it soccer

#

you can't stop me

lunar cypress
#

stop or we will get inolvolved

static zealot
#

actually I can

#

all I need is a plane ticket and a knife

#

that doesn't mean I Will

cinder flare
#

damn good luck flying to my town

#

you're also gonna need a car and a full tank of gas

#

and 3.5 hours of your time at least

ocean quartz
#

Yikes

static zealot
#

dw. I know how to parachute

cinder flare
#

i mean good luck seeing my town from an airplane

static zealot
#

no need. that's why GPS exists

#

smh

cinder flare
#

hmmm

static zealot
#

don't turn the location of your phone off please

cinder flare
#

well hey if you ever stop by, we can totally hang out

static zealot
#

xD

static zealot
cinder flare
cinder flare
static zealot
cinder flare
#

you're gonna need to rewire 300 million people's brains

#

hey while you're at it, bring in metric too

#

but not celcius

static zealot
#

that's pretty easy

#

its already been done

#

in less than a year

cinder flare
#

oh?

#

yo hey Canada calls it soccer too

#

nice

onyx loom
#

@oak raft is this true

cinder flare
#

Remence is canadian?

static zealot
#

yes

cinder flare
oak raft
#

Yeah we call it soccer

cinder flare
#

hell yeah

#

high five homie

onyx loom
cinder flare
#

🖐️

oak raft
oak raft
#

"football" lmao

cinder flare
#

god I have never been happier to have a homie here

prisma wave
static zealot
#

mate.. how can you say you call it by the right name when it was named by those who invented it?

oak raft
#

Ok listen it's as simple as this

static zealot
#

foot... ball...

oak raft
#

no

static zealot
#

you use your foot to hit the ball

oak raft
#

this

#

is football

static zealot
#

that's footperson

cinder flare
#

see Remence knows what he's talking about

onyx loom
#

lol

static zealot
#

footegg

#

even better

cinder flare
#

damn it feels good to have an ally

oak raft
#

Yeah these eu guys don't understand 😤

cinder flare
#

ya seriously

#

talk to me when you're in the western hemisphere smh

static zealot
cinder flare
#

The Western Hemisphere is a geographical term[1][2] for the half of Earth which lies west of the prime meridian (which crosses Greenwich, London, United Kingdom) and east of the antimeridian. The other half is called the Eastern Hemisphere.

static zealot
#

you know some part of europe and africa

oak raft
#

Is there any part of eu that calls it soccer

static zealot
#

is there

oak raft
#

or is it all football there

onyx loom
#

i am in the western hemisphere 😊

cinder flare
#

Longitudes 20°W and 160°E are often considered its boundaries."

static zealot
#

k

cinder flare
#

talk to me when you're within that zone

static zealot
#

alr

onyx loom
#

sir

#

i am in that zone

#

i am west of london

static zealot
#

had to do it

#

he forced me

onyx loom
#

👍 😃 😄 😂 👌

cinder flare
onyx loom
#

why would i want to be there 🤣

static zealot
#

we shall never talk again. unless you're ready to apologise sir

cinder flare
onyx loom
#

🤔

cinder flare
#

alright maybe not half

#

but you saw staff chat

#

i'm a talker

static zealot
cinder flare
distant sun
#

take it easy blitz

static zealot
prisma wave
#

😌

cinder flare
#

sue me

#

I'm definitely getting there

onyx loom
#

will do

prisma wave
#

wtf blitz has more than me

#

since when

#

im not having this

#

i will type SO MANY message

cinder flare
#

Not everyone climbs from rank like 9000 to like 21 in 3 months or less

#

=xp

compact perchBOT
cinder flare
#

23 almost there

prisma wave
#

=xp

compact perchBOT
prisma wave
#

ez

#

gn

#

sit down

static zealot
#

=xp

compact perchBOT
prisma wave
#

yeah but i thought i had the most messages too

#

maybe there we lots in staff chat

#

last time i checked im pretty sure i had more, but obviously didnt have staff then so

cinder flare
#

i think that counter counts staff chat

#

oh I see you counted blitz'

static zealot
#

yeah. I have quite a few in staff chat

onyx loom
#

any channel that u can see

static zealot
#

4.7k in staff chat

ocean quartz
#

=xp

compact perchBOT
cinder flare
#

guys the lady at Taco Bell was really nice today

prisma wave
#

ok

cinder flare
#

I left her a good review

onyx loom
#

ok

prisma wave
#

ok

ocean quartz
#

Ah no longer boosted back to the ugly orange

prisma wave
#

hello there catboy

ocean quartz
#

We support need to riot for a new support color

static zealot
#

you only have 188 in staff chat lm,ao

#

bm u need to start being a more active staff member smh

prisma wave
cinder flare
#

oh damn Matt spells color right

prisma wave
cinder flare
#

man see internationalism can bring good things

prisma wave
cinder flare
prisma wave
#

talking about something BORING im sure

static zealot
onyx loom
#

One Language, Three Accents! In this video, we're showing you the differences between American English, British English, and Australian English. First, we'll show you the difference between an American accent, a British accent, and an Australian accent by reading some simple words that are spelled the same in every country. Then, our native sp...

▶ Play video
cinder flare
#

it was basically me defending the virtues of mathematics

ocean quartz
#

A lot of the times I prefer the american spelling

cinder flare
#

hell yes

#

an ally

#

you're allowed to talk to me

static zealot
#

the thing is... even in romanian there' stuff we say differently

cinder flare
#

even though you're not in the western hemisphere

prisma wave
static zealot
#

yeah I totally agree

prisma wave
#

we should go on strike

static zealot
#

soon I will be taking over tho

prisma wave
#

until we get better colours

#

hmm

static zealot
#

my plan is already in motion

ocean quartz
cinder flare
#

right?

static zealot
#

did the blocked guy say something? xD

cinder flare
#

you mother fucker

static zealot
cinder flare
#

bruh

#

this is the second time today I am inching my toaster closer and closer to my bathtub

#

Remence brought it back for a sec

static zealot
#

when you're ready to give up and call it football call me

#

We'll see what we can do then

cinder flare
#

oh god damnit

#

it's never gonna happen blitz

static zealot
#

yeah not the toaster

#

I Wanted that toaster

#

smh

cinder flare
#

😠

#

oh my god you actually unfriended me

static zealot
#

I blocked you

#

it unfriends

#

when I block

cinder flare
#

oh damn I see

static zealot
#

automatically

steel heart
#

Sup

static zealot
#

also what's with all that white?

cinder flare
#

that's the wikipedia page for "Western World" lmao

onyx loom
#

light... theme...? 🤮

cinder flare
onyx loom
#

burn it

#

where is dark reader

cinder flare
#

i dunno

static zealot
#

or the wikipedia night mode

cinder flare
#

there's a night mode?

static zealot
#

its an extension

#

for chrome

cinder flare
#

oh too much work

prisma wave
static zealot
#

its 2 clicks ... xD

prisma wave
#

you pronounce stuff wrong

#

you spell stuff wrong

#

and now this

cinder flare
#

what the light theme?

#

or western world lmao

static zealot
#

both

ocean quartz
#

I'm sorry but please how can you like the british pronunciation, like words like "schedule"

onyx loom
#

skedule

prisma wave
#

skedule

#

kotlin reference

#

ew

#

i am now pronouncing it the american way

cinder flare
#

it'd be the bri ish way if it was spelled shedule

#

but it's not

#

there's a c in there

steel heart
#

How do you pronounce enum then :0

ocean quartz
#

So how doe you pronounce chaos?

prisma wave
#

right because english is a consistent language

cinder flare
#

tell me this, how do you pronounce scary

onyx loom
#

wait which way is which

prisma wave
prisma wave
cinder flare
prisma wave
#

americans say it with a sh

#

horrible

onyx loom
#

ok i say british way

cinder flare
steel heart
ocean quartz
#

So you're saying ch can sounds like k meaning skedule is right? 😮

cinder flare
#

are we boutta hop in Room 1 and start pronouncing things

onyx loom
#

yes

cinder flare
#

cause that is not the american way

prisma wave
cinder flare
#

to pronounce schedule

prisma wave
#

🙄

prisma wave
#

what do you say

cinder flare
#

that

prisma wave
#

WTF

ocean quartz
#

British way is shedule lol

cinder flare
#

I thought bri ish was she dule

prisma wave
#

oh

cinder flare
#

ya

prisma wave
#

it probably is

ocean quartz
#

It is

prisma wave
#

ludicrious

#

ludicrious

onyx loom
#

aaaaaaaaaaaaaa

prisma wave
#

lucidrous

#

HA

#

wait no

#

NO

#

i am now american

onyx loom
#

we fucked it 🤣

prisma wave
#

stupid

ocean quartz
#

Lmao

cinder flare
ocean quartz
#

You were arguing against yourselves

prisma wave
#

raver schtewpid

half harness
cinder flare
#

get in here

#

let's pronounce things

prisma wave
#

ughhhhhhhhhhhhhhhhh

#

do i have to

cinder flare
#

ya we gotta say schedule the same way

#

it's a uniting ritual

steel heart
static zealot
#

skul

onyx loom
#

shool 😌

prisma wave
#

😌

#

anyone seen megamind

cinder flare
steel heart
static zealot
#

skool tho

prisma wave
#

what if kotlin users named everything

ocean quartz
prisma wave
#

😌

distant sun
timber oak
#

Is it possible to list enchants under item lore?

#

instead of above

sweet cipher
#

You can just add enchants as lore, and add the item flag to hide enchants

timber oak
#

I want the enchants shown tho

#

Just under the lore

#

Oh

sweet cipher
#

Yeah add the enchants as lore

timber oak
#

wait

#

I see what you mean

#

ty

sweet cipher
#

np

timber oak
#

Also yk why this won't work?

            new BukkitRunnable(){
                @Override
                public void run() {
                    switch(counter){
                        case 1:
                            lore.clear();
                            lore.add(ChatColor.translateAlternateColorCodes('&', "&4The Shot Heard Round The World"));
                            lore.add(ChatColor.translateAlternateColorCodes('&', "&42021"));
                            meta.setLore(lore);
                            customBow.setItemMeta(meta);
                            counter = 2;
                            break;
                        case 2:
                            lore.clear();
                            lore.add(ChatColor.translateAlternateColorCodes('&', "&fThe Shot Heard Round The World"));
                            lore.add(ChatColor.translateAlternateColorCodes('&', "&f2021"));
                            meta.setLore(lore);
                            customBow.setItemMeta(meta);
                            counter = 3;
                            break;
                        case 3:
                            lore.clear();
                            lore.add(ChatColor.translateAlternateColorCodes('&', "&9The Shot Heard Round The World"));
                            lore.add(ChatColor.translateAlternateColorCodes('&', "&92021"));
                            meta.setLore(lore);
                            customBow.setItemMeta(meta);
                            counter = 1;
                            break;
                    }
                }
            }.runTaskTimer(customBows, 1, 60);
#

The lore just never changes

#

I just want the lore to change color every 3 seconds

cinder flare
#

you might need some break statement

timber oak
#

Added break; to every case at the end but still the same

#

Colors in the lore won't change

timber oak
#

To add the break; but didn't work

distant sun
#

Try accessing the meta inside the switch case

timber oak
#

Sry shouldn't ask for help in this channel

hasty saddle
#
C:\Users\kamer\IdeaProjects\OTroll\src\at\orange\otroll\OTroll.java:7:43
java: cannot access net.minecraft.network.protocol.game.PacketPlayOutGameStateChange
  bad class file: /C:/Users/kamer/Downloads/spigot-1.17.jar!/net/minecraft/network/protocol/game/PacketPlayOutGameStateChange.class
    class file has wrong version 60.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

WHen I try

PacketPlayOutGameStateChange packet = new PacketPlayOutGameStateChange(new PacketPlayOutGameStateChange.a(5), 0);

tranquil crane
#

You need to use java 16 when working with 1.17 nms apparently

hasty saddle
#

Oh ok

#

Thank you 🙂
Where can I download java 16 for windows?

tranquil crane
#

Look up AdoptOpenJDK

hasty saddle
#

Thank you

#

Now I get

C:\Users\kamer\IdeaProjects\OTroll\src\at\orange\otroll\OTroll.java:7:43
java: cannot access net.minecraft.network.protocol.game.PacketPlayOutGameStateChange
  bad class file: /C:/Users/kamer/Downloads/spigot-1.17.jar!/net/minecraft/network/protocol/game/PacketPlayOutGameStateChange.class
    class file has wrong version 60.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

@tranquil crane

#

Oh fuck sry

#

I didn't change it under project my bad xD

tranquil crane
#

Did you actually change the java version to the right one in your ide lol

#

Yeah lmao

hasty saddle
#

xDDD

#

Now it's working god bless you

tranquil crane
#

woot

obtuse gale
#

hello, how could i get the location from inside an ender portal? i can't get the clickedblock than add numbers to the x, y, z

distant sun
#

Why not?

#

Its just some math and a few conditions

#

eg if they click the middle frame just check if the other two are on x / z then check where is the opposite side of the portal and the space between the clicked side and the other one is the portal

distant sun
#

I dont even have iij opened smh

obtuse gale
#

Why do you have 2 web browsers opened lol

distant sun
#

mozila is for something else 😄

old wyvern
#

better yet, why do you have pycharm open? 🤮

distant sun
#

there's worse languages in this world, for example h🤢skell

eternal compass
#

lmao messed up that emoji

old wyvern
distant sun
#

there's also fucking xml

ocean quartz
distant sun
#

fuck off matt 🤣

half harness
#

btw matt

#

rn i use triumph config, would it be hard to move some stuff to gson?

old wyvern
obtuse gale
#

Yugi bout to say maven is faster than gradle

old wyvern
#

Absolutely not!

#

But, declarative? yes

distant sun
old wyvern
#

What exactly is horrible about it?

half harness
ocean quartz
half harness
#

i know

#

that's why i said gson

#

but

#

ill show u what im trying to convert

#

a Property<String> and a Property<Map<String, Data>> (into 1 json string)

#

Data consisting of String, Int, and a Set<Int>

old wyvern
#

Intellij seems to suppourt spring a bit too much 😳

half harness
#

wdym

ocean quartz
#

I mean just pass it to gson instead of making it a property

half harness
old wyvern
#

its suggesting the methods name by the repo's data class

half harness
#

the only thing im worried about is the Set<Int>

#

when i used bukkit yml it broke with Set

#

not sure whats gonna happen with gson

prisma wave
#

Spring good

old wyvern
#

btw bm, I should be managing the users myself right? Everything I read about this topic seems to contradict each other on different websites

#

The spring docs seem to be specifically for thymeleaf users

prisma wave
#

It's possible to do Auth without any database, by making people authorize with something like discord or github oauth2

old wyvern
#

yea that isnt an option, I dont think they would have those accounts and this is supposed to be hosted on their intranet

prisma wave
#

Hmm

#

then yeah I suppose managing yourself is the only option

#

you can use thymeleaf + spring security which is really easy

old wyvern
#

Thymeleaf is only for the frontend templates right?

#

Im only using spring for a restful service, the frontend is in javafx

prisma wave
#

oh yeah

#

thymeleaf is just for server side frontend rendering

#

So maybe not appropriate

#

Easiest way might be JWT

old wyvern
#

How would that work?

old wyvern
#

ok I think I found something on that topic, giving that a go

steel heart
#

any1 that can recommend a good google dark theme extension?

prisma wave
#

Just Black

#

And Dark Reader

steel heart
#

tytytyty

timber oak
#

General server support? Which channel?

#

Server startup error in this case

ocean quartz
#

Uh?

prisma wave
#

Not here

obtuse gale
#

NOT

#

NOT configuration help

prisma wave
#

😖

timber oak
#

ik not here lol

hallow crane
#

Can you use github actions as a replacement for Jenkins artifact storage?

#

I want to have a place where anyone can download my release jars from CI

prisma wave
#

Actions and releases, yeah

hallow crane
#

Can you do it automatically with releases

timber oak
hallow crane
#

Instead of manually

prisma wave
prisma wave
hallow crane
#

With gradle?

prisma wave
#

mhm

timber oak
cinder flare
#

imgur exists 🙂

obtuse gale
#

you're trusted, dum dum

#

he ain't

distant sun
#

🙂

timber oak
#

In #development everyone with tier 2 or above can paste ss I think

#

Or tier 1

prisma wave
#

Tier 2 yeah

half harness
#

even tier 6 can't

#

D:

onyx loom
#

no one who isnt staff can 🙃

prisma wave
onyx loom
#

micro transactions good 🌞

#

😵‍💫

half harness
#

so iirc coroutines are used for suspending functions, can they also be used for blocking actions too? (so coroutines = async, won't affect main thread)

#

or should i use java executorservice

lunar cypress
#

you shouldn't use coroutines if you expect a lot of regular blocking

half harness
#

so should i use java executorservice instead?

#

or is there a kotlin alternative

steel heart
#

java executor api works fine I think

prisma wave
#

But gives you the "coroutines" syntax sugar still

half harness
#

oooo

#

wait is it fine if i use IO dispatcher for other things than IO?

prisma wave
#

🤨

old wyvern
prisma wave
#

why

half harness
#

can't think of anything atm, thought of it randomly

old wyvern
#

Coroutines api also provides a way to suspend till a blocking operation completes

prisma wave
#

Yeah

#

There are mechanisms for all ways of blocking

half harness
#

actually

forest pecan
#
while(block)  {}

🌚

half harness
#

i remember how i thought of that question

prisma wave
#

Either IO dispatcher or delay ()

#

Or whatever

half harness
#

but lets say I did ```kt
CoroutineScope(Dispatchers.IO).launch {
while (!online) { }
println("online")
}

prisma wave
#

🥶

forest pecan
#

you know

#

i was joking

#

right

#

lmfao

half harness
#

yes

prisma wave
#

why would you do that

half harness
#

example

#

i know that i can just call the function when i go online, but this is supposed to be some sort of example

prisma wave
#

give a real example*

half harness
#

aaaaaa

#

hmm

prisma wave
#

There should always be a more coroutine-y way of doing any real problem

distant sun
forest pecan
#

Lmao

old wyvern
prisma wave
#

whileM

half harness
#

o

prisma wave
#

Is that a thing

old wyvern
distant sun
#

interesting yuhi

prisma wave
#

whileM

old wyvern
#

😮

distant sun
#

bm dont

prisma wave
#

😌

old wyvern
half harness
#

how would i await?

distant sun
#

did you mean start(), yugi?

old wyvern
#

No, I meant await

forest pecan
#

method doesnt exist

distant sun
#

well there's no await() /shrug

old wyvern
#

huh, lemme check one sec

#

I remember doing this in one of my projects

ocean quartz
#

Could call it on invokeOnCompletion

half harness
#

i could create a custom setter tho

#

¯_(ツ)_/¯

old wyvern
#

Im pretty sure it was await

#

Might be an extension

#

Gimee a min, Android Studio taking its good time loading up

distant sun
#

is there an url for last successful build for github actions like on jenkins?

ocean quartz
#

Could be an android function

old wyvern
#

oh sorry I was right the first time around

#

its a CompletableDeferred<Unit>()

#
val onlineDefer = CompletableDefer<Unit>()

CoroutineScope(Dispatchers.IO).launch {
    onlineDefer.await()
    println("online")
}

onSomeEvent {
   onlineDefer.complete(Unit)
}```
half harness
#

but can't i just use a custom setter?

old wyvern
#

a custom getter?

half harness
#

setter*

old wyvern
#

For what?

half harness
#

like that

#

not sure if i did it correctly

#

but something like that

old wyvern
#

Sure

#

Whatever you're doing should probably be invoked separately

#

Having such effects on a setter may end you up with a confusing setup later on

half harness
#

hmmmmmm

#

alr

#

ty

timber oak
#

What is the equivalent of PDC before 1.14? Is it just straight out NBT with no API?

ocean quartz
#

Yup no api for it before 1.14

timber oak
#

Oh no, gotta rewrite my entire plugin lmao

#

ARGHHHH

#

ffs

#

So how would something like this be done with no API?

            NamespacedKey key = new NamespacedKey(customBows, "Custom-Bow-Identifier");
            PersistentDataContainer tagContainer = meta.getPersistentDataContainer();
            tagContainer.set(key, PersistentDataType.STRING, "Super-cool-bow");
onyx loom
#

no u dont

timber oak
#

I need to rewrite the PDC parts

onyx loom
#

u just dont support anything below 1.14 😎

frail glade
#

Been working on a few projects that were originally written around the 1.8 era and use a lot of NMS and it's been such a blessing to update them to 1.17 because I can literally replace 100 lines of code with 4 lines.

old wyvern
#

Create your own version independent abstraction and have implementations for different versions

timber oak
onyx loom
#

via backwards has nothing to do with this

timber oak
#

I'm far from experienced enough to do this I think

old wyvern
onyx loom
#

hey @ocean quartz hows ur gradle plugin coming along? i wanna use it 😖

timber oak
old wyvern
#

Did you read through the comments?

#

I havent written out what you do in them

timber oak
#

Oh shoot

#

Sorry

old wyvern
#

Then you create the appropriate implementation after checking the version you're on

onyx loom
#

en bee tee A pee eye

ocean quartz
timber oak
onyx loom
#

oh shit

#

i mustve missed it

#

pls link again 🙂

ocean quartz
#

id("me.mattstudios.triumph") version "0.2.0" ;p

old wyvern
onyx loom
#

omg thank

timber oak
old wyvern
#

👍

timber oak
#

I need to be better at just asking google lol

steel heart
#

Petition to add let me google that for you command to Barry!

#

yeah Valdemar

#

being a good googler is a crucial skill towards self teaching

timber oak
ocean quartz
#

=google

steel heart
#

=randommattlibrary

ocean quartz
#

Yas

steel heart
#

rip doenst exist

#

would have been so useful

ocean quartz
timber oak
#

Btw I should make it public right?

steel heart
#

looks like u have 2 methods with the same name and same param types in the same consecutive order

old wyvern
#

yes

steel heart
#

or no?

old wyvern
#

it just needs to be public

onyx loom
#

hey @ocean quartz what was the annotation thingy for the plugin.yml?

steel heart
#

oh wait he implements the interface?

#

nvm then

old wyvern
#

Yes

steel heart
#

Yugi stop having 32103901239 iq lol

#

unfair advantage

frail glade
#

Nahhh he needs that to work on the JS expansion OMEGALUL

onyx loom
#

😵‍💫

old wyvern
#

😳

old wyvern
#

btw glare, it seems some people are still having the gcclib issue

#

Im assuming qjs still requires the lib but just a lower version that more people seem to have

#

💀

timber oak
#

Yugi how would you get the meta required for the PDC from the Object value?

old wyvern
#

Might just have to switch back to nashorn after all

half harness
#

Placeholderapi groovy expansion 😎

old wyvern
#

Take whatever you need as a constructor argument for it

#

And store it as a field

timber oak
old wyvern
timber oak
#

I'll just add another param then

half harness
#

y not replace javascript expansion with groovy

old wyvern
#

Lua might be worth it tbh

tranquil crane
#

basic expansion

old wyvern
half harness
#

true

#

but in 1.17

#

nashorn won't work at all

old wyvern
#

Nashorn does work

half harness
#

simple js code should work in groovy

#

O

old wyvern
#

It just needs to be shaded in

half harness
#

i thought it didn't

#

oh

#

slimjar

#

:))

timber oak
#

I can't make a constructor for an interface right?

old wyvern
#

We went with qjs for the test because it was faster

half harness
#

ic

old wyvern
steel heart
#

why not switch to Skript expansion

old wyvern
#

oh lord

half harness
#

wait can't u just slimjar in nashorn

#

ez

ocean quartz
#

Oh yeah Yugi, i was searching about kts and there's hardly anything about it
Only found one old repo and it had so many errors :weary:

old wyvern
#

not runtimed tho

#

the jar is included

old wyvern
ocean quartz
#

Actually let me check if he does

old wyvern
#

It doesnt have as well features as jsexp tho I think

timber oak
old wyvern
#

Just bare minimum suppourt

half harness
#

can i have a 1-class kotlin code review :))

old wyvern
#

You write different constructors as per the need of the implementation

old wyvern
timber oak
half harness
#

its a small class

#

so im not sure if theres much i can improve

#

but

#

¯_(ツ)_/¯

#

actually

#

why not send the whole lib

ocean quartz
#

Huh interesting alright imma try updating that one

ocean quartz
cinder flare
half harness
cinder flare
#

YES

#

i ❤️ u

#

keep up the good work

ocean quartz
#

Trying at least xD

distant sun
#

And chat when 😤

ocean quartz
half harness
distant sun
#

Mf no

#

I need that :(

old wyvern
#

Matt, if you want to try, you can reuse the jsexp source and just change out the evaluator for a kts impl

cinder flare
#

ill just be happy when we can deprecate JS entirely

onyx loom
#

@ocean quartz ☹️

ocean quartz
#

Alright alright I'll work on it 😩

distant sun
#

Pretty sure the kts expansion is mostly done

old wyvern
#

It is?

onyx loom
#

it is done i think

#

sx done it a long time ago

cinder flare
#

probably not for modern versions

old wyvern
#

It looked like it barely had classes doing bare minimum

ocean quartz
#

I'll fix it

onyx loom
#

😃

#

thanks babes

old wyvern
#

oh wait, it does work, just needs to fix the injection of the kts jsr

timber oak
#

Yugi can you help in #development whenever you got time please?

onyx loom
#

also just a suggestion matt. ik having + in gradle is kinda bad, but it could be cool for the functions to have a default version parameter so it uses latest to cut the boilerplate even further 🙂

quiet depot
#

hello

onyx loom
#

hi pig

old wyvern
#

hello

#

world

#

bad jokes everywhere

#

rip

quiet depot
#

yes

old wyvern
#

😷

#

yOuCheWbr

obtuse gale
#

lmao that dude again

forest pecan
#

whos that kid

old wyvern
#

xD

half harness
#

that guy friend requested me

#

although i denied it

old wyvern
#

idk someguy from devden spamming everyone

forest pecan
#

lol

half harness
#

oh hes the guy that wants everything custom

#

even tho the plugins exist

old wyvern
#

lol

half harness
onyx loom
#

well yes, custom = good, right?!?!?

onyx loom
#

😃

ocean quartz
#

Try 0.2.1 ;p

forest pecan
#

streaming stoneblock if anyone wanna join vc 🙂

frail glade
#

I wish I didn't have so many libraries in my plugins lol. I want to stop having to runtime downloading stuff but I'm just over the SpigotMC limit.

ocean quartz
#

Didn't know this was a thing ;o

hallow crane
#

there's a..spigotmc limit?

frail glade
#

I think I'm like 200Kb over if I fully shade Kotlin

hallow crane
#

oh you mean jar size limit

#

so yeah you're gonna need runtime

#

Luckperms' methods are good for runtime downloading

ocean quartz
#

Lmao

frail glade
#

Too bad pdm doesn't work on Java 16

hallow crane
#

Luckperms does

steel heart
hallow crane
#

var is a disgraceful keyword and shows the downfall of humanity and programming in whole

steel heart
#

You’re big dumdum

#

It’s a good internalization feature

hallow crane
#

it shows lack of intelligence and lack of motivation to do the best

steel heart
hallow crane
#

it is a good thing in languages that were built to be dynamically typed

#

but not java

steel heart
#

Why not?

#

Type inference tho

#

Anonymous type inference also

hallow crane
#

no

steel heart
#

Yes lol

hallow crane
#

kotlin is okay

#

but not in java

steel heart
#

Why?

#

Justify please

old wyvern
hallow crane
#

because it wasn't built to be like that

steel heart
#

What

hallow crane
#

I hope you know I am messing with you

steel heart
#

I hope so also

#

You started to freak me out

hallow crane
#

var is a disgraceful keyword and shows the downfall of humanity and programming in whole

#

that sounds legit

steel heart
#

🥲

ocean quartz
old wyvern
ocean quartz
#

Ooo that's actually pretty cool ;o

old wyvern
#

Pretty much a similar compiler hack to lombok xD except you dont need a plugin to stop ides from complaining

steel heart
#

Woooooooooooo

onyx loom
#

soon triumph-gui-kotlin, whenever yugi can work on it

ocean quartz
#

Nice nice ;p
If Yugi pushes what he has I can try finishing it ;p

onyx loom
#

last question with the BukkitMain annotation, where would i change all of the info, like depend, author, description etc?

ocean quartz
#

On gradle add the bukkit extension

bukkit {
  depend = listOf("vault", "papi")
}
onyx loom
#

ooo got it ty

#

this is very nice, gj 🙂

cinder flare
#

me.bristermitten

#

what's going on now

gusty glen
#

why is mfgui hosted under BM server?

ocean quartz
#

It's bm's kotlin extension to it

gusty glen
#

oh ic

cinder flare
#

it doesn't have it's own Kotlin extension?

onyx loom
#

😌

cinder flare
#

i thought you were its creator Matt

onyx loom
#

not yet

#

yugi is working on it

ocean quartz
#

Not yet, Yugi was working on it

gusty glen
onyx loom
#

but bms have been available for over a year now lol

cinder flare
#

Ah Yugi, a true renaissance man

ocean quartz
#

Ikr, Yugi is awesome

onyx loom
#

i just recently updated them to the new version of mf gui in the meantime

cinder flare
#

Has his hand in everything that matters

steel heart
#

MATTTT

#

Vinland

#

Saga

#

Vinland

#

Awesome

#

Yeaaaa

half harness
#

wat

frail glade
#

Matt, do you know if I actually need org.jetbrains.kotlin:kotlin-stdlib-jdk8 in my implementation?

#

Wasn't that for versions before Java 8?

ocean quartz
#

I think it's the default now, the gradle plugin should auto add it to the dependencies

ocean quartz
steel heart
#

Tytyteydtsy

frail glade
#

That's really weird. My jar size increases if I remove it.

half harness
#

tfryguh the amount of times i had to release a new version of my lib because i forgot to add open to everything 😩

#

i wished there was like an option in build.gradle to automatically add open to certain classes/packages

#

(since i want to make the majority of things in my libraries customizable and "extendable")

frail glade
#

Wait. I may have just gotten it under the jar limit by removing an extra snakeyaml implementation.

steel heart
#

Stonks

half harness
#

:)

ocean quartz
#

I guess, i feel like if you wanted it to be extendable maybe abstract classes would be better?

half harness
#

i just want to make the extending optional

#

so if you want to change something

#

i don't have to add a million variables

#

you can just simply extend the function and do stuff

#

plus i'd still have to make the functions open

#

with abstract classes

ocean quartz
#

Fair

steel heart
#

@NonExtendable yikes

half harness
steel heart
#

I mean I will probably limit the end user once I get j17 from extending shit

half harness
#

random question - but what benefits do you get out of java versions higher than 8 in kotlin?
I know about record classes and stuff, but that's all specific to java, you don't use that in kotlin

ocean quartz
#

Kotlin changes things based on the version, you'll get performance boots, for example the string concatenation it'll use the jvm one from the lastest versions
Record support, etc
Mostly backend related things

half harness
#

oh

frail glade
#

Alrighty, we're about 100Kb under the limit of Spigot.

half harness
#

are there any things that I'd notice? like maybe some QOL stuff

frail glade
#

Which means any new feature could tip us over.

half harness
#

wait whats the limit? i've heard it was 3mb, 5mb,

obtuse gale
#

it's 100kB over Glare's plugin

#

🙂

half harness
#

lol

#

btw for my data file, should i turn off pretty printing?

#

could be used for debugging idk

obtuse gale
#

¯_(ツ)_/¯

half harness
#

gson seems cool

obtuse gale
#

leave it minified i suppose

half harness
#

hm

obtuse gale
half harness
#

oh

#

true

#

so far it just looks like yaml but uglier 🥲

obtuse gale
#

???????????

half harness
#

what

#

i moved to json

obtuse gale
#

tf you mean uglier lmao

half harness
#

well

#

yaml looks clean

#

but

#

json has like the {} and []

#

and all the "

obtuse gale
#

yaml has like 3 or 4 ways to define a collection of things

half harness
#

wdym collection of things?

obtuse gale
#

e.g. a list or an "array" or a set or whatever

half harness
#

oh

obtuse gale
#
  • if you want a set you have to explicitly define it as a set
#

with !!set or smth idk

half harness
#

with triumphconfig you don't fingerguns

obtuse gale
#

not talking about triumphconfig but sure

half harness
#

lol

#

although ive seen it happen with bukkit yaml

half harness
#

How can i run an action if a variable is true, but only runs the action once every second?

#

a while (!runAction) {} doesn't look very nice

#

(and then once i run the action i set the variable back to false)

obtuse gale
#

imagine having scheduleAtFixedRate 😌

#

lol i'm sure coroutines have scheduling of some sort

#

i mean if they don't that sucks ass

half harness
#

lol

ocean quartz
#

You can delay inside the loop to make it run only ever x time

half harness
#

i guess

#

was wondering if there was anything more specific, but it's only 1 second so i guess it won't hurt