#dev-general

1 messages ยท Page 538 of 1

ocean quartz
#

There likely are search a bit I'm sure someone did it

half harness
#

alr ty :D

prisma wave
#

Just do a while loop + delay()

#

Not pretty but it's not blocking

obtuse gale
#

help me

#

final NodesConfiguration.FalsePermissionNodesInclusionStrategy falsePermissionNodesInclusionStrategy = this.nodesConfiguration.falsePermissionNodesInclusionStrategy();

potent nest
#

I don't see any issue

obtuse gale
#

absolutely not

#

not in the slightest

prisma wave
#

then you are truly doomed

obtuse gale
#

โ˜น๏ธ

prisma wave
#

Repent

#

Reject java

#

Embrace [other language]

obtuse gale
#

Jython

prisma wave
#

๐Ÿ˜Œ

forest pecan
#

JNI

obtuse gale
#

man i somehow just rebased from upstream without noticing

#

almost fucked up before pushing hhhhhhhhhh thank god it didn't let me

#

rebase -i to the rescue reversed_fingerguns

steel heart
#

Very pog

obtuse gale
#

lmao wat

#

why xD

steel heart
#

Itโ€™s so I can keep up with the code

obtuse gale
#

heh

distant sun
#

DTF > SDF

jovial warren
#

java.time >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> java.util time

distant sun
#

๐Ÿ™‚

steel heart
jovial warren
#

you know the DateTimeFormatterBuilder is actually on the list btw of the top 10 longest classes in the entirety of the JDK

steel heart
#

Oh lol

#

d;DateTimeFormatterBuilder

ruby craterBOT
#
public final class DateTimeFormatterBuilder
extends Object```
DateTimeFormatterBuilder has 31 methods, and  1 extensions.
Description:

Builder to create date-time formatters.

This allows a DateTimeFormatter to be created. All date-time formatters are created ultimately using this builder.

The basic elements of date-time can all be added:

  • Value - a numeric value
  • Fraction - a fractional value including the decimal place. Always use this when outputting fractions to ensure that the fraction is parsed correctly
  • Text - the textual equivalent for the value
  • OffsetId/Offset - the zone offset
  • ZoneId - the time-zone id
  • ZoneText - the name of the time-zone
  • ChronologyId - the chronology id
  • ChronologyText - the name of the chronology
  • Literal - a text literal
  • Nested and Optional - formats can be nested or made optional

In addition, any of the elements may be decorated by padding, either with spaces or any other...

This description has been shortened as it was too long.

jovial warren
#

and yes, DateTimeFormatter is the java.time equivalent of SimpleDateFormat

steel heart
#

Damn why didnโ€™t I know this already

jovial warren
#

stop using java.util.Date and start replacing it with java.time.LocalDateTime

distant sun
#

ZonedDateTime ๐Ÿ˜

jovial warren
#

lol

prisma wave
distant sun
#

useful for when your host is not in the same region as your players

old wyvern
#

Imagine not having 2 different time libraries that are the exact same just relocated with minor changes that produces each other at some point and is a complete mess

jovial warren
#

I find the temporal accessing system is really nice tbh in java.time

#

like the way you're meant to access the, for example, hours component of a certain temporal accessor would be to give it a temporal unit of type hours, such as ChronoUnit.HOURS

#

but that also allows for you to create your own temporal units

#

and your own temporal accessors

distant sun
#

val betterDay = ChronoUnit("BetterDay", 72, TimeUnit.HOUR)

jovial warren
#

ChronoUnit is an enum

old wyvern
# distant sun `val betterDay = ChronoUnit("BetterDay", 72, TimeUnit.HOUR)`

Arman Cekin & Faydee - Better Days (Lyrics) ft. Karra
Stream this song on Spotify: https://open.spotify.com/track/4fJBUcEiRtPI99EHO6WtrR?si=s1NobzN5TRCeEtYXiSnYpg

Submit your music: AirwaveMusicTV@gmail.com

AirwaveMusicTV - Music for your heart. ๐Ÿ’›

Follow my Spotify playlists: http://spoti.fi/2yL5B3I

Spotify Playlists
AirwaveMusicTV Favorites...

โ–ถ Play video
distant sun
#

who asked you

jovial warren
#

so you could, for example, make ticks an actual unit by implementing TemporalUnit and using it to convert a given time into ticks

distant sun
#

and that's just amazing

prisma wave
#

๐Ÿ˜Œ

jovial warren
#

and that's also something you can't do with the legacy time API in java.util

#

you can create your own fields, units, amounts, accessors, and adjusters for your own complete time system if you want to

old wyvern
#

Oh boy! I do love reinventing the wheel now!

prisma wave
#

I am trying to resist the urge

#

I wanna say it

jovial warren
#

what

old wyvern
#

say it

prisma wave
#

Time is impure and therefore evil

old wyvern
#

YES!

jovial warren
#

lol

old wyvern
#

We need to kill time

prisma wave
#

๐Ÿ˜Œ

jovial warren
#

kek

prisma wave
#

freeze time

old wyvern
#

Wait s

prisma wave
#

Make it pure

old wyvern
#

so wait

#

If I waste my time

#

im killing time, right?

lunar cypress
#

I already complained elsewhere yesterday that java has DateTimeFormatter but not DurationFormatter

#

and it will continue to bug me

distant sun
#

^ agree johnny

prisma wave
lunar cypress
#

They almost took everything from Java 7 joda time

#

except that

#

for whatever reason

prisma wave
#

Apache ๐Ÿคข ๐Ÿคข ๐Ÿคข

#

Genuinely feeling ill

lunar cypress
#

god this css

#

Java 5 times

prisma wave
#

What CSS?

distant sun
#

yea idk

distant sun
#

welp

lunar cypress
#


 PeriodFormatter yearsAndMonths = new PeriodFormatterBuilder()
     .printZeroAlways()
     .appendYears()
     .appendSuffix(" year", " years")
     .appendSeparator(" and ")
     .printZeroRarelyLast()
     .appendMonths()
     .appendSuffix(" month", " months")
     .toFormatter();```
#

this is what joda time had

#

you could use it as a printer and parser

distant sun
#

I see

boreal needle
#

i missed my daily exp yesterday and lost my streak ;-;

static zealot
#

good for u

#

ohh something's happening

jovial warren
static zealot
#

shh

#

they're using BlueJ So no spell checking for them

jovial warren
prisma wave
static zealot
#

BlueJ

old wyvern
static zealot
#

I have evolved to my last form

old wyvern
#

Is that helix drago?

static zealot
#

Fusion Dragonoid

old wyvern
#

Looks a bit more animated than I remember

old wyvern
#

After new vestroia?

static zealot
#

pretty sure its the last form

old wyvern
#

oh

#

I forgot what the last season was called

#

mechaton invasion?

#

something like that

static zealot
#

the last one I didn't watch as much bcz it was a bit different

#

from the rest

old wyvern
#

yea there were robots

static zealot
old wyvern
#

lemme check

static zealot
#

and mechanic stuff

#

I forgot xD

old wyvern
#

Mechtanium Surge

#

yes

static zealot
#

yeah

old wyvern
#

Battle gears and huge robots, and more huge-er robots

static zealot
#

yeah. u seen the new season tho? I haven't. It looks like it sucks

old wyvern
#

The final battle was drago and 3 bakugan sitting on a robot and fighting a huge robot

old wyvern
static zealot
#

Ic

#

why are they doing this tho? Do small kids actually like this?

old wyvern
#

No idea

static zealot
#

bcz they're doing it or already done it to every good show

#

teen titans, bugs bunny

#

a lot of them

old wyvern
#

Yea they ruined yugioh too

#

Yu-Gi-Oh! Sevens (้Šโ˜†ๆˆฏโ˜†็Ž‹SEVENS, Yลซgiล Sebunsu), stylized as Yu-Gi-Oh! SEVENฦง, is a Japanese anime series animated by Bridge. It is the sixth spin-off anime series in the Yu-Gi-Oh! franchise, following Yu-Gi-Oh! VRAINS, and commemorates the 20th anniversary of the Yu-Gi-Oh! Duel Monsters anime series.The series premiered in Japan on TV Tokyo on Ap...

#

It changed the whole damn game

#

Now there are rush duels

static zealot
#

haven't seen yugioh at all

old wyvern
#

ah

static zealot
#

oh wait

#

nvm I did but when I was very young

old wyvern
#

Ah

#

You probably saw season 0

static zealot
#

to young to remember. I Just remember having a lot of those card

#

there was a dragon or whatever that was pretty good or rare that I had

#

don't remember the name xD

old wyvern
static zealot
#

might be. not sure. but I remember selling it for quite a bit of money.

#

well for me at least it was quite a bit

old wyvern
#

That archetype is still usage in competitive somehow

#

They added suppourt for the new summoning mechanics

static zealot
#

well it wasn't like crazy. just a few dollars probably. but for me at the time that was a lot

old wyvern
#

ah

static zealot
#

I know people are going crazy over yugioh and pokemon cards now

#

I've seen a pokemon card go for like $250k

#

its crazy

old wyvern
static zealot
#

oh. I Didn't even have internet at the time lmao

old wyvern
#

This has existed for quite a long time now

#

atleast in a different name

#

it was dueling network at the beginning

#

Then konami sued them

static zealot
#

but yeah also I had a lot of fake cards as well. bcz they were a lot cheaper xD

old wyvern
#

and they re-released after a year as dueling book

static zealot
#

it was the same with bakugan

old wyvern
#

yea xD

static zealot
timber oak
#

Was NamespacedKeys also first introduced in 1.14 like PDC?

#

Or were they there before

frail glade
#

I think it was 1.12 or 1.13.

prisma wave
#

1.13 I think

frail glade
#

Sounds right.

prisma wave
#

Yeah cuz all the magic numbers got removed in 1 13

frail glade
#

Yeah

forest pecan
half harness
#

whyyyyyyyyyy

#

D:

#

tempting me to switch to kts

onyx loom
#

kts + triumph-gradle ๐Ÿ˜Œ

#

if this is for mc

old wyvern
#

๐Ÿ˜Œ

#

wtf

half harness
#

?

old wyvern
#
    const-string v21, "log-tag"

    const-string v22, "Test logging"

    invoke-static/range {v21 .. v22}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

It doesnt seem to log

#

But If I use a register used by another variable after this, it crashes there, so its running it, but skipping this for some reason

ocean quartz
obtuse gale
#
listOf(
        "first",
        "second",
        "etc"
).forEach { compileOnly(it) }

:kekw:

ocean quartz
#

Verbose ๐Ÿ˜ฉ

obtuse gale
#

When Gradle Java DSL becomes a thing, then we'll talk about verbosity

old wyvern
#

func a b c tho

ocean quartz
#

I think i wrote something like that in here before, it was beautiful

#

๐Ÿ˜Œ

public class GradleBuild {

  @Override
  public void repositories(RepositoryManager repositoryManager) {
      dependencyManager.maven(maven -> {
          maven.add("url");
      });
  }  

  @Override
  public void dependencies(DependencyManager dependencyManager) {
      dependencyManager.add("implementation", "org.something:artifact:version");
  }  

}
half harness
#

lol

obtuse gale
#

public class GradleBuild {
@Override

ocean quartz
#

Shhhh

old wyvern
#

gradle.lang.Object

ocean quartz
#

just let it happen

old wyvern
#

modify the Object class

#

๐ŸŒž

ocean quartz
#

Java's Script language, not to be confused with JavaScript

obtuse gale
#

oh god

#

imagine lmao

ocean quartz
#

Jvs

prisma wave
prisma wave
steel heart
obtuse gale
#

A new Minecraft snapshot is out: 1.17.1-pre2
:pogchamp:

#

Deaths of named mobs are now logged
uh okay

steel heart
#

the random feature we all have been waiting for POGGERS

prisma wave
#

game changing really

frail glade
#

Mojang fixed books in pre2 ๐Ÿ‘€

static zealot
#

o?

frail glade
#

They added a limit on the max pages to fix some exploits.

obtuse gale
#

hey, that is not mentioned in the patch notes

#

not even in the bug fixes

frail glade
#

Probably for a good reason.

obtuse gale
#

smh

remote goblet
#

i do hate linux sometimes altLost

prisma wave
#

no you dont

obtuse gale
#

Speaking of Linux

timber oak
#

Can someone explain reflection? I thought I understood it but now I'm getting told that to use this on multiple version I need to use reflection?
net.minecraft.server.v1_8_R3.ItemStack nmsItem = CraftItemStack.asNMSCopy(item);

ocean quartz
#

You don't need to use reflection, it kinda helps in some cases
You can also create modules for specific versions, which is easier than reflection

#

Also

Reflection is an API which is used to examine or modify the behavior of methods, classes, interfaces at runtime.

obtuse gale
#

modify lmao

timber oak
#

So how would reflection be used for using multiple versions?

#

For NMS

ocean quartz
prisma wave
#

because we can do nms.version.ItemStack nmsItem = nms.version.CraftItemStack.asNMSCopy(item);

#

not really that

#

but

#

it's the idea

#

in that it works across every version

obtuse gale
#

And it breaks on 1.17 ๐ŸŒš

timber oak
#

First nms then version?

static zealot
#

no it is not

#

oh wait

#

Hello! I need help.

obtuse gale
#

Okay

static zealot
#

Help !!

#

I am drowning

ocean quartz
static zealot
#

how do I Learn to swim

prisma wave
#

the point of reflection is that version can be ANYTHING

static zealot
#

while in the middle of the ocean?

timber oak
ocean quartz
#

It isn't

static zealot
#

well

obtuse gale
static zealot
#

that's what development is in general

#

a lot of pain and suffering

#

and in the end you realise it was all for a missing character or something like that

ocean quartz
prisma wave
timber oak
#

Like ServerVersion

ocean quartz
#

What?

timber oak
#

Sorry, "made" not "maybe"

#

But I get the idea

ocean quartz
#

Those are for getting the current version the server is running

timber oak
#

Can you by any chance send the ServerVersion class? lol

#

I think I know how you'd make it

#

But it would take a lot of time

ocean quartz
#

It's basically just this

public static final String PACKAGE_NAME = Bukkit.getServer().getClass().getPackage().getName();
public static final String NMS_VERSION = PACKAGE_NAME.substring(PACKAGE_NAME.lastIndexOf('.') + 1);
public static final ServerVersion CURRENT_VERSION = ServerVersion.getByNmsName(NMS_VERSION);
timber oak
#

But ServerVersion is also an enum?

ocean quartz
#

Yeah

timber oak
ocean quartz
#

This isn't part of the reflection though

timber oak
#

Yeah ik, good to have though

#

Also I forgot what the numbers in the parentheses in enums means?

distant sun
#
    /**
     * Main constructor that defines a protocol version representing NX where N is the main version and X is the R version
     * For example NX - 81 - 8_R1
     *
     * @param versionNumber The protocol version
     */```
timber oak
#

Ahhh

#

If I got three classes like this and the bottom two implements the interface, then when I need them should I just get the interface through the constructor and then make getters from the interface?

#

That gets the two other classes

#

Or should I get them individually through the constructor

forest pecan
#

Use the DataContainer

#

Thatโ€™s how you are supposed to use them

timber oak
half harness
#

lol

static zealot
#

dkim. want to play?

half harness
#

not rn

#

also what happened to ur pfp

static zealot
#

I evolved

half harness
#

im slowly changing it

static zealot
#

yeah. kinda slow tho

#

kinda to slow

remote goblet
lucid rock
#

is it possible to combine a .jar and its config into just 1 .jar?

frail glade
#

What

steel heart
#

@lucid rock yeah

#

thats the usual case

#

the config is embedded inside the jar

lucid rock
#

how do you do that?

#

@steel heart

steel heart
#

no need to ping wise guy

#

but what ide do u use if I may ask

#

and what build automation tool

#

like maven/gradle

lucid rock
#

uh do you know any guides how to do that?

steel heart
#

I guess youtube could be a viable option

lucid rock
#

ok

#

thanks for the help!

distant sun
#

best api for creating a java / kt - preferable kt - windows ui?

ocean quartz
#

Probably JavaFx, you could also try something like JCEF which you can basically do something like discord a browser running an app

distant sun
gusty glen
distant sun
#

ahh

naive wraith
#

Hi, anyone knows why this happens?

#

I try to connect to the prelobby but it says this..

#

Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 63

ocean quartz
naive wraith
#

Sorry, and thanks.

ocean quartz
#

Omg, this would be such an amazing feature (this would be on any object even without a companion)

#

@frail glade I think you were the one asking for this as well ๐Ÿ‘€

#

@jovial warren ๐Ÿ‘€

#

@prisma wave ๐Ÿ‘€

#

Jesus there is a feature for everyone lmao

forest pecan
ocean quartz
#

Nope, Kotlin doesn't have that, only and, or, shl, shr etc

forest pecan
#

No

#

Like the feature request

ocean quartz
#

Oh yeah, but this is the official survey so this time they'll definitely work on it if we vote enough

forest pecan
#

Oh ic

steel heart
#

Kotlin is gonna get union types?

#

Damn

ocean quartz
#

Ayy one for @cinder flare as well
I know you've been wanting this

#

Tuples look nice

steel heart
#

Wow

#

I just donโ€™t get it

#

Kotlin just thrives

#

Java is like just idling

ocean quartz
#

Well Java has been doing pretty good past few years, the issue is that they idled for so long

steel heart
#

Nowhere near kotlin when it comes to dev qol stuff

ocean quartz
#

That's true yeah, Kotlin releases new features very often

#

Oh man this one would be great too

steel heart
#

what would that do?

ocean quartz
#

Basically the private property is mutable the public one isn't

#

So you don't expose the list for modification

steel heart
#

Ah

ocean quartz
#

I like most of this but can only choose 3 ๐Ÿ˜ฉ

steel heart
#

pick union types definitely

ocean quartz
#

I have static extensions and collection literals so far, i might go for that yeah, but tuples looking good too

half harness
#

static extensions?

ocean quartz
#

Have you ever wanted to do something like:

Player.something()

Like an static method as an extension, it's not possible for Java objects, you can for Kotlin though like

fun String.companion.something()

This feature would allow it to work for Java's as well

half harness
#

OOOOOOOOOOOOOOOOOOO_ _ _ _ _ _

#

epic

ocean quartz
#

Go vote dkim

forest pecan
#

Vote for trump daddy

half harness
#

vote for what?

forest pecan
#

Recount the votes

ocean quartz
#

The featues

half harness
#

oh

forest pecan
#

Stop the votes!

half harness
#

how do i vote?

#

i thought it was an existing feature

#

๐Ÿ˜’

forest pecan
#

You go to the nearest ballot

#

And click

half harness
#

mhm

forest pecan
#

Tromp

half harness
#

can i just vote for everything

forest pecan
#

Hey thatโ€™s not trump

half harness
#

:))

ocean quartz
#

Only 3 ๐Ÿ˜ข

half harness
#

o

#

rip

#

what if i just keep voting

#

:))

#

did kotlin remove default?

ocean quartz
#

If you have enough emails sure

half harness
ocean quartz
half harness
half harness
ocean quartz
#

No lol

half harness
#

wait

#

what

#

what

#

huh?

#

what

ocean quartz
#

What default are you talking about?

half harness
#

i

ocean quartz
#

Give me an example

half harness
#

uhhhhhhhhhhh

forest pecan
#

I wish there was better ways to specific visibility though

#

Like even in Java

ocean quartz
forest pecan
#

Honestly though

half harness
#

intellij

#

isn't

#

opening

forest pecan
#

And also some sort of way to define accessibility rules idk

half harness
#

nvm i just had to kill it in task mgr

ocean quartz
forest pecan
#

Lmfao

half harness
#

YES
BRING BACK @CheckReturnValue

steel heart
#

internal? @ocean quartz

#

Difference from pack priv and private ?

ocean quartz
forest pecan
#

You canโ€™t use reflection prolly? Iโ€™m guessing

ocean quartz
steel heart
obtuse gale
#

Like legitimately

ocean quartz
#

Yes but internal fun something instead of a bunch of complex shit

steel heart
#

When is jigsaw arriving as preview tho? Java 18?

ocean quartz
#

Jigsaw has been out since Java 9

obtuse gale
#

Uh..

steel heart
#

Oh

obtuse gale
#

Yeah lol

forest pecan
#

lmfao

steel heart
#

What the fuck

ocean quartz
#

It sucks though, no one uses it

forest pecan
#

Have you heard about the Jigsaw project with the Java 16 shit

steel heart
#

Wait do I mix it up with valhalla

obtuse gale
#

Than just a single method or class

ocean quartz
#

I mean yeah I guess both have advantages and disadvantages but i still prefer the access modifier declared in the class

steel heart
#

Is jigsaw the module-info thing or no?

ocean quartz
#

Yeah

obtuse gale
#

Yes

steel heart
#

Ah

#

So valhalla was the primitive generics thing then sorta ?

obtuse gale
#

Yes

ocean quartz
#

Valhalla is the big one with the cool features

steel heart
#

Thank you wise persons

half harness
forest pecan
#

Iโ€™m lagging in real life

half harness
#

what

forest pecan
#

Iโ€™m in Idaho

ocean quartz
#

Sxtanna has been waiting for this feature for so many years

forest pecan
#

The celluar here is barely existent

obtuse gale
forest pecan
#

๐Ÿ˜“

steel heart
#

Lagging irl lmao

forest pecan
#

Yes

ocean quartz
#

Basically this

companion const val hello = ""

As like

public static final String hello = ""

Instead of

companion object {
  const val hello = ""
}
steel heart
#

Oh yeah didnโ€™t they make a petition for that

forest pecan
#

Driving to Yellowstone

ocean quartz
#

He did yeah, I think it is still on the kotlin feedback forum

#
steel heart
#

๐Ÿ˜”

cinder flare
#

YES KOTLIN

#

lesss gooooo

late bramble
#

Are there any plugins I should try making just for improvement in development?
For fun too

obtuse gale
#

An anti cheat

#

/s

late bramble
#

๐Ÿ‘€

ocean quartz
#

Shhh

#

You saw nothing

steel heart
#

Fabric is all good and that except for that it fucked my ass this once

ocean quartz
#

That's a good thing, if it asked for consent first

steel heart
#

No it didnโ€™t definitively

#

But itโ€™s good since it doesnโ€™t crash my ide as opposed to a certain other project

obtuse gale
hot hull
#

How's FJ @cinder flare? We got bungee yet?

cinder flare
#

I have not touched it once ๐Ÿ™‚

#

what kind of bungee do you want?

hot hull
#

Have it run on bungee with no bridge plugins needed

cinder flare
#

Like announce on all servers?

hot hull
#

That as well, but the plugin should only need to be on the proxy to work, instead of individual servers

prisma wave
cinder flare
#

I don't understand what you mean by on the proxy

hot hull
#

Not sure how feasible that is since events be fucky wucky but yea gl

cinder flare
#

maybe I could setup RedisBungee

hot hull
obtuse gale
#

good start i guess lol

obtuse gale
cinder flare
#

yeah but I hear plugin messaging is doodoo

obtuse gale
#

exactly

cinder flare
#

ya so redisbungee

obtuse gale
#

more like redis with bungee instead of using redisbungee xdd

cinder flare
#

well someone is remaking it Im pretty sure

obtuse gale
#

remaking what?

cinder flare
#

does that allow you to just share a redis basically?

#

redisbungee

#

someone forked it

obtuse gale
#

eh thats whatever you wont really learn any redis

#

which will be useful

#

in the future prolly

cinder flare
#

true true

obtuse gale
#

why so hesitant on just messing around with redis?

cinder flare
#

i mean im not

#

a plugin i'm maintaining used a redisbungee thing so I figured it'd be more useful

hot hull
#

If you do go that route, use RabbitMQ or some shit like that

obtuse gale
obtuse gale
cinder flare
#

it's BungeeAdminTools

#

not FrozenJoin

obtuse gale
#

id just use redisson its ez

cinder flare
#

okay ill look it up

obtuse gale
#

jedis will use pub sub, while redisson uses RTopics

#

same concept as pub sub

hot hull
#

But then again, that's not at all what I was suggesting at

cinder flare
#

i have no idea what that means

#

or is that like publisher and subscriber or something

obtuse gale
#

yea it is

cinder flare
obtuse gale
#

yea as well how do you expect him to do it?

hot hull
#

Just throw the entire thing onto a proxy and have it handle subservers without needing the plugin on them

cinder flare
#

so just send the message to the server?

prisma wave
cinder flare
#

well but wait

#

surely you'd want a different message per server

obtuse gale
#

Yes? You can do that on the proxy side of things

#

Why would you need a messaging system to send some join messages lmao

cinder flare
#

but

#

but

#

just have it on every server

#

it accomplishes the same thing

obtuse gale
#

I mean it doesn't harm to have it on the proxy

hot hull
#

Star

#

Why have it on every server when you could just have it on a proxy

cinder flare
#

how is it gonna know about the disconnects tho

obtuse gale
#

Wdym?

cinder flare
#

wait does frozenjoin only do joins

hot hull
#

:bruh:

obtuse gale
#

"contributor"

cinder flare
#

i thought it was join and leave ngl

obtuse gale
#

๐ŸŒž

#

everyone on the homie star tryna learn ๐Ÿ˜ฆ

cinder flare
#

tryina do what frosty never could for his own join plugin ๐Ÿฅฒ

obtuse gale
#

FrozenLeave when

#

StarLeave

#

sounds better

#

leaves

cinder flare
#

nah that's too tacky

#

it's gotta be a nice pun

obtuse gale
#

how bout LearnRedisInNewProjectBeforeAddingIntoAlreadyFuckedWithOne

#

Just name it "Leave Message Plugin WITH GRADIENT SUPPORT 1.17+ !!!" and drop it in spigotmc.org lmao

cinder flare
#

I'll call it RawMsg MF @pallid gale

prisma wave
#

Yo

#

2 lisps and haskell on the most used languages

#

๐Ÿ˜Œ

steel heart
distant sun
obtuse gale
#

Hi ! I would like to use the Has item requirement with an item that has a specific name, what can I do?

#

in deluxemenus

cinder flare
#

I would personally use the CheckItem expansion as that allows you to check for a lot of things including item name

static zealot
#

or

cinder flare
#

damnit blitz I waited explicitly for your answer ๐Ÿฅฒ

static zealot
#

well I Was waiting for you to say it

#

since I saw you type beforem e

#

lmao

#

before me*

cinder flare
#

ya but then I saw you typing and stopped ๐Ÿฅฒ

static zealot
#

yeah. if I open the typing box it says I'm typing but wasn't actually typing

cinder flare
#

awe sheeesh

#

also @quiet depot the PAPI github CI build tries to build for Java 16 but PAPI is still on Gradle 6.7 something so it can't ๐Ÿฅฒ

old wyvern
#

um star

static zealot
#

Starmism

old wyvern
#

You probably should rebase that to developement

cinder flare
#

what's up

old wyvern
#

Your PR to developement branch is from the master branch

cinder flare
#

oh yea hmm well I don't exactly know how

#

is it a problem tho

static zealot
#

git rebranch

cinder flare
#

cause it goes to the development branch of the remote

static zealot
old wyvern
#

git rebase <hash>

static zealot
#

oh rebase

#

lmao

#

I said rebranch

cinder flare
#

lmao

#

what do i put for has

#

a commit hash?

old wyvern
#

Yes, you can do it though ij's ui tho

cinder flare
#

oh how

old wyvern
#

under VCS-> Git -> Rebase

cinder flare
#

bruh

old wyvern
#

Oh I dont think rebase will do here, since you're still on the master branch so all changes on master would be moved

#

reset should be it

cinder flare
#

reset to a commit?

old wyvern
#

Thinking, that would still have issues

lunar cypress
#

what do you want to do

cinder flare
#

move 3 commits from master branch to development branch

old wyvern
#

Move his commit to dev branch

lunar cypress
#

cherry pick

#

do not rebase public branches

cinder flare
#

how to

old wyvern
#

I think he means just moving the changes over manually

lunar cypress
#

even cherry pick is kinda wonky, but it's better than rebase

cinder flare
#

well there is a little thing called cherry pick

lunar cypress
cinder flare
#

but it just said it was already done

old wyvern
#

oh

cinder flare
#

or do I go to the other branch and cherry pick it over

#

ah I seeee

#

johnny big smart tyvm

hollow walrus
#

how do i close minecraft?????

cinder flare
#

you don't

#

it's part of you forever

hollow walrus
#

what

#

please help dude im not jokin

#

help

#

halp

cinder flare
#

open task manager

hollow walrus
#

yes

cinder flare
#

close javaw

hollow walrus
#

ogm tysm i can now live

static zealot
#

ugh. does it not close when you restart pc? xD

steel heart
#

@boreal needle maybe luwucy

static zealot
#

:))))

#

IHaveARazor is still the best one tho

steel heart
static zealot
#

yo @quiet depot any chance you know how to disable mouse wheel click working as a paste and I think a copy as well

#

because it annoys the f out of me. I try to close something in IJ and I Missclick and it just randomly pastes a method I Never knew I copied

#

oh I wonder if its the clipboard thingy

#

nope its not

#

๐Ÿ˜ข

#

yeah. so when I select text and wheel click, it just copies it and then wheel click again, it pastes whatever I had copied

prisma wave
#

why u wheel clicking in the first place

static zealot
#

bcz that's how I click tabs

#

in browser and IJ

quiet depot
#

what the fuck

#

why do you not use left click

#

like a normal fucking human

static zealot
#

because I have to get the X

#

every time

quiet depot
#

what

static zealot
#

with middle click you don't have to click the X to close a tab

#

you can click anywhere on the tab

quiet depot
#

works fine for me

static zealot
#

talking about these tabs

quiet depot
cinder flare
#

ya I've clicked the x my whole life

quiet depot
#

idk if that makes a difference

static zealot
#

with middle click I can click anywhere on that tab. IF I left click, I have to click on the X

#

same in browser

quiet depot
#

try with that addon for browser

#

dunno for ij

#

check keybinds

static zealot
#

I use Firefox

quiet depot
#

sounds like a you problem

cinder flare
#

imagine

static zealot
#

I've checked them. Will wait for ubuntu hideout to answer

#

and no

#

apparently its a thing for everyone that uses ubuntu

cinder flare
#

i would never use firefox smh

#

ya same with ubuntu ngl

static zealot
#

and I could disable it with the tools app but I Don't want to install it xD

#

its funny. everyone wanted me to switch to linux so bad, recommended me KDE Plasman and when I Switched people want me to use some Arch bullshit or whatever

cinder flare
#

Arch bullshit

#

excuse you sir

#

use manjaro if you a bitch

static zealot
#

there's nothing to excuse me for

#

I won't

#

I'm just fine with plasma

cinder flare
#

yikes

static zealot
#

๐Ÿ‘

old wyvern
static zealot
#

k

#

ubuntu

#

better?>

cinder flare
#

no

old wyvern
#

What?

cinder flare
#

ubuntu bad

static zealot
#

leave me alone please or I'll switch back to windows

old wyvern
#

I mean, go ahead of you want to lol

static zealot
#

just leave me alone. I'm suffering enough

old wyvern
#

xD

cinder flare
#

yikes dude

#

blitz needs a hug

#

so do I actually

prisma wave
#

i have close tab bound to Ctrl W

#

like in chrome

cinder flare
#

what if you want to close other tabs

static zealot
#

u move thru the tabs

#

and close the one you want

#

I guess

#

but yeah you're the weird one Star not me

prisma wave
#

mhm

#

alt + left/right

#

then ctrl + w

#

ez

static zealot
#

life is pain

cinder flare
#

whatevs

remote goblet
#

Today I learnt java's twitter account does not know method expressions exist

prisma wave
#

what now

#

tf is a method expression

remote goblet
#

idk

quiet depot
#

dou mean method reference my dood

remote goblet
#

yeah whatever

#

same thing

#

anyway

#

in other news they sent this

#

sir that map(name -> name.toUpperCase()) could very easily be map(String::toUpperCase)

winter iron
#

Well that entire thing would do nothing for me

prisma wave
#
import Control.Monad

main = do 
  mapM putStrLn $ map (++ " " ) $ map toUpperCase friends
  putStrLn ""

``` ๐Ÿ˜Œ
winter iron
#

since friends would be empty

#

๐Ÿ˜ฆ

quiet depot
#

some people strongly dislike method references

remote goblet
#

weird

onyx loom
#

y

#

theyre clean

quiet depot
#

because theyโ€™re ambiguous

remote goblet
#

kaliber we must not question it actually

#

some people use allman and think its clean

old wyvern
onyx loom
prisma wave
#

Control.Monad

remote goblet
#

i dont like too many lines in my code sad_fingerguns

onyx loom
#

yeah how are they ambigious, u know what the stream is

quiet depot
#

@old wyvern propose that you didnโ€™t know map accepted a function

remote goblet
#

sounds like its their problem since you dont know that

quiet depot
#

itโ€™d be impossible to know if we were passing a value into #toUpperCase or not not

#

itโ€™d be impossible to know if it was returning a value or not

remote goblet
#

once again, sounds like a them problem

onyx loom
#

^

remote goblet
#

i hate developer twitter

quiet depot
#

i however very much like method references

prisma wave
#

we do a little functional abstraction

quiet depot
#

because i know how map works

remote goblet
#

its flooded with the 3 languages i dislike the most

prisma wave
#

you shouldn't need to know

prisma wave
remote goblet
#

no

prisma wave
#

yes

remote goblet
#

its flooded with JS, HTML & CSS

old wyvern
#

yews

remote goblet
#

they all equally bore me CB_angery_cry

old wyvern
#

JS bad

onyx loom
#

:smil:

remote goblet
#

I can tolerate JS if its nodejs but that is strictly it

prisma wave
remote goblet
#

i dont think i will jessica

#

the entire of computer programming topic on twitter is literally flooded with js, html, css and github copilot

quiet depot
#

what is 100 days of code

remote goblet
#

i have no clue

onyx loom
#

learn all of them in 100 days ๐Ÿ™‚

prisma wave
#

wtf i love jessica now???

old wyvern
prisma wave
#

this is the best twitter account ever

quiet depot
#

why is learn to code after all the learn โ€œshitty fp langโ€ statements

#

ig she doesnโ€™t consider fp languages as coding

prisma wave
#

take that back

#

it's not coding

#

it's maths

quiet depot
#

just a breezy pastime

#

something that requires minimal skill

old wyvern
#

Java bad

quiet depot
#

frankly sheโ€™s a html dev

#

she would know

remote goblet
#

she retweeted her own tweet CB_angery_cry

prisma wave
quiet depot
#

these are the kind of people using haskell

#

plebeians

remote goblet
#

Jess here made an entire thread about what open source code it

prisma wave
#

jess is my mate

#

she is cultured

#

unlike you uncivilised cretins

remote goblet
#

im sorry to tell you

#

Jess literally only posts front end languages

prisma wave
#

uhh

#

umm

#

well

#

elm is front end...

#

โ˜น๏ธ

old wyvern
#

๐Ÿ˜Œ

remote goblet
#

like her entire page is just

frail glade
#

Fixed that for you.

remote goblet
#

yes

old wyvern
#

๐Ÿฅฒ

remote goblet
#

okay im gonna write something and i wanna know how bad of an idea it is

static zealot
#

k

#

im gonna ignore

#

you and see how bad of an idea it is

onyx loom
#

fixed that for you

old wyvern
#

๐Ÿฅฒ

prisma wave
#

๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜ 

old wyvern
#

Give me 2 days, my professor is shouting at me to finish this project

static zealot
#

/shout YUGI!!! FINISH THE PROJECT!

old wyvern
#

๐Ÿ˜ข

remote goblet
#

well actually

prisma wave
#

how to disable useless paper jvm checker

remote goblet
#

okay this isnt the most recent code however

#

how bad of an idea is it to do the wihle loop in another while loop for sql

old wyvern
prisma wave
#

oh yeah thats a good idea

#

i like this

#

very clean

remote goblet
#

i know this very likely isnt kotlin however

#

I will see I kind of prefer java's alternative if (boolean) value else value2

ocean quartz
#

It is

remote goblet
#

boolean ? value : value2

#

oh

#

okay

onyx loom
#

smh ori

remote goblet
#

i thought id just put that out there, boolean ? value : value2 is a lot better than kotlin's if (boolean) value else value2

static zealot
#

yeah I like it too

#

but its not a thing ๐Ÿ˜ข

#

in kotlin I mean

#

which is sad I MEAN

onyx loom
#

it gets messy

static zealot
#

mean*

prisma wave
#

ternary operator can get really messy yeah

#

it's also weird

#

very weird

remote goblet
#

sadCat i know but i like minimal lines possible

prisma wave
#

bruh

lavish notch
prisma wave
#

if (cond) a else b

ocean quartz
#

Maybe, I don't think I've used the ternary operator that often, like only once or twice it gets too messy

onyx loom
remote goblet
#

i feel like a nerrddddddddd when I use if (cond) a else b

old wyvern
#

nothing like some good

if a then if b then if c then d else e else f else g
static zealot
#

I actually used if a else b but people bullied me for it

#

don't remember who it was

#

bcz they want

ocean quartz
#

if a return, b ๐Ÿ˜Œ

static zealot
#
if () {
  a
} else {
  b
}``` ...
prisma wave
#

how do i get the intellij tabs back

#

like

#

git and things

#

they have disappeared

old wyvern
#

toolbars maybe

#

oh wait, Windows

prisma wave
#

i fixed it

quiet depot
#

u can move all that shit around

prisma wave
#

somehow

#

but uh

quiet depot
#

so much of ij's ui is customizable

#

i used to put custom buttons on my ij toolbar to start my server and build my plugins and shit

#

before I realised keybinds are just so much easier

prisma wave
#

why is this on the left now

remote goblet
#

oh thats gross

prisma wave
#

i know

#

i want it gone

half harness
#

lmao

#

๐Ÿ˜ฎ kotlin

distant sun
#

would h2 be a good replacement for sqlite?

static zealot
#

Oh the build thing

steel heart
#

Gaby itโ€™s faster I believe ?

distant sun
#

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

cinder flare
#

ya what the build stuff goes on the right

#

that's scary BM did you update versions or something

cinder flare
#

then why'd it happen

#

is it gonna happen to me

remote goblet
#

okay what

onyx loom
#

๐Ÿคฃ

hallow crane
frail glade
old wyvern
rotund egret
#

Neat

prisma wave
#

How the heck

old wyvern
#
// compile elara to jvm 
[CoPilot Generating...]

The dream...

prisma wave
#

๐Ÿ˜Œ ๐Ÿฅฒ ๐Ÿฅฒ ๐Ÿฅฒ

old wyvern
#

@ocean quartz is the truimph gradle plugin published?

ocean quartz
#

Yeah

old wyvern
#

Is there any docs or examples?

#

Also, does it work with groovy fine or should I use kts?

ocean quartz
#

Not yet, basically all you need is:
For the dependency extensions import dev.triumphteam.helper.*
Then you can use paper("version") etc
For the plugin.yml feature just add the bukkit expansion and add anything inside it (can't be empty since it's the only way to detect you actually want to use it ๐Ÿ˜ฉ)
Like

bukkit {
  description = "Hello"
}
#

Then mark your plugin main with @BukkitMain

#

And some features work on groovy, like very basic plugin.yml (commands and permissions don't work)
The extensions don't work though'

old wyvern
#

ahh alrigthy

rotund egret
distant sun
#

Welp

rotund egret
#

Though with that being said, h2 is luckperms default

distant sun
#

Thats why I took it in consideration

old wyvern
#

Windows broke ๐Ÿ˜ท

half harness
#

lol

steel heart
#

I know lp uses partly because of speed gaby

timber oak
#

What does Player#updateInventory() actually do? Because I can add items without updating inv?

distant sun
#

I need a local db @steel heart

#

d;spigot player#updateinventory

ruby craterBOT
steel heart
#

yeah well h2 is more aimed to be an in memory db (also why its fast) if I am correct, but have you asked lucko?

distant sun
#

About?

steel heart
#

why their default choice is h2

timber oak
#

Can MetaData be used just like NBT for entities? Or rather, should it?

#

I was thinking of using FixedMetadataValue()

distant sun
#

@steel heart probably because it is the only that doesnt require a server

steel heart
#

So what about sqlite or flat files

ocean quartz
#

Sqlite doesn't require server either

onyx loom
distant sun
#

Well I dont want a file (json or anything)

steel heart
#

Did you ask them? I will do that for you else wise

distant sun
# onyx loom why

Returns the largest element or**ย nullย if there are no elements.**
Probably this

onyx loom
#

but why do we need maxOrNull

#

just make max() that

distant sun
#

Well by looking at kt functions, I see that doX() (eg first()) return a value or throw an exception if none was found

#

And maybe throwing an error for something like max() is not worth idk

onyx loom
#

inconsistent

prisma wave
#

TERRIBLE API DESIGN

onyx loom
#

ikr

prisma wave
#

ooer

#

although haskell isn't any better in this case

steel heart
#

Something that throws and returns null be like
getAsyncValueOrAbortWithExecutionExceptionOrNullIfAbsent()

prisma wave
#

"no runtime exceptions"

onyx loom
#

๐Ÿ˜ƒ

prisma wave
#

elara will fix this

steel heart
#

Lol

prisma wave
#

hmm

#

dividing by 0 in elm = 0

#

interesting

#

or Infinity if it's a float

onyx loom
#

legit

obtuse gale
#

for instance, if I add a metadata value to an ItemStack in my inventory, it will not be there anymore when I drop it to the ground

timber oak
obtuse gale
#

tl;dr idek why it exists in the first place

frail glade
#

Working on updating BannerBoard to 1.17 right now and holy crap I can see why this dude said he didn't have the time for it.

ocean quartz
#

I took a peak at it earlier and was like nope

onyx loom
#

link ๐Ÿ˜ฎ

old wyvern
onyx loom
ocean quartz
#

Lmao

obtuse gale
#

due to a lack of knowledge about the updates
meanwhile, spigot-api stays about the same for years

frail glade
#

I think I'm down to one of the last things. My current wall is WorldMap went from a public constructor to a private and requires more data now in 1.17.

#

A better question might be, given reflection, how would you properly call a method that returns the class initial object type and pass in args to that kind of constructing method?

half harness
#

darbyjack

#

๐Ÿค”

frail glade
#

I tried to obtain Glare but they said it wasn't stale.

#

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

onyx loom
#

lol

#

"not stale"

frail glade
#

Ikr

static zealot
#

I'm such a hard worker

proper plaza
#

How can I get the real yaw? I mean from 180 to -180

obtuse gale
#

oh boy :^)

proper plaza
#

?

static zealot
#

is xmaterials a bit weird or is that just me?

obtuse gale
prisma wave
#

bukkit is kinda very shitty when it comes to everything*

proper plaza
#

And how I could do that? xd

static zealot
#

Meth probably. And that's not a spelling error

static zealot
#

oh IC

#

I'm suppose to match an item stack

#

hmm. this is confusing af

ocean quartz
static zealot
#

I have a material name and data

#

and the plugin is suppose to work on 1.12-1.17

#

how do I make this work with xmaterials ๐Ÿฅฒ

#

bcz there's no way to give it a material/string and data

#

what I'm trying to do basically is make SKULL_ITEM:# work on 1.13+ as well

proper plaza
static zealot
#

or the other way around if possible PLAYER_HEAD on 1.12

static zealot
proper plaza
#

xD

static zealot
#

guess I'll move to #development bcz there's rules I Need to follow smh.

#

smh my head

frail glade
#

So here's the problem Yugi. I need (with reflection) to I obtain the a method that returns a static WorldMap object. The problem is I think Java is getting confused because md_5 stripped his mappings so there's like 4 or 5 different a in the class.

ocean quartz
#

So you want to find a method that has the exact parameters you need?

frail glade
#

Correct and I used the getDeclaredMethod on it and passed in int, byte, resourcekey and it complains that's not a valid one.

ocean quartz
#

I like using methodhandles lookup

final Lookup lookup = MethodHandles.lookup();
final Class<?> clazz = lookup.findClass("TheClass");
final Method method = clazz.getMethod("a", int.class, byte.class, resourceKeyClass);

Can you tell me which method and class? I can try it out too

frail glade
#

It's called a in WorldMap

#

Make sure you're on 1.17 mappings though

ocean quartz
#

Is it this one?

frail glade
#

Yeah

old wyvern
#

ah so its just the parameters are different

ocean quartz
#

@frail glade Seems like I got it

static zealot
#

we always knew u've got it Matt

ocean quartz
#
val lookup = MethodHandles.lookup()
val clazz = lookup.findClass("net.minecraft.world.level.saveddata.maps.WorldMap")
val method = clazz.getMethod("a", Byte::class.java, Boolean::class.java, ResourceKey::class.java) // You'd do the resourcekey with reflection though
println(method)
obtuse gale
#

in kt do you have any way to differentiate between int.class and Integer.class?

#

well not "differentiate" per se

#

but like, get one or the other

ocean quartz
#

Int is basically both int and Integer

#

Well Int is int Int? is Integer