#dev-general

1 messages ยท Page 530 of 1

cinder flare
#

do not try and setup CI/CD or an artifactory

#

that is not fun

forest pecan
#

be prepared to push 100 commits to master just trying to figure out how it works

cinder flare
#

nah I'm not even there yet

forest pecan
#

CircleCI

#

๐Ÿฅฒ

cinder flare
#

nah concourse gang

#

it's very pretty!

forest pecan
#

i am poor and cant host

#

๐Ÿฅฒ

cinder flare
#

this bad boy is like $7 a month

distant sun
#

Doesnt github have a built-in ci sort of?

forest pecan
#

I earn $-7 a month

cinder flare
#

i consider it an investment in my knowledge plus it feels cool

forest pecan
#

yeah

cinder flare
obtuse gale
forest pecan
#

recycling

obtuse gale
#

ew

forest pecan
#

/s

cinder flare
#

dude my town doesn't even have recycling

forest pecan
#

im joking lmao

cinder flare
#

at least not for dorms

forest pecan
#

F

frail glade
#

You what

obtuse gale
#

Pulse drinks his own piss

#

Survival instinct

cinder flare
#

this mf really bear grylls out here

forest pecan
#

as people say

late bramble
#

Leading water preservationist

short warren
#

@hot hull Do you have any recommendations for alternatives to FrozenJoin now that it's discontinued?

cinder flare
#

FrozenJoin ๐Ÿฅฒ

short warren
#

I just need a good lightweight join/leave customizing plugin

cinder flare
#

for 1.17?

distant sun
#

Essentials?

short warren
#

Yes 1.16 into 1.17

cinder flare
#

I mean I'm sure I could fork FrozenJoin and make it work on 1.17 in like an h our

short warren
#

Does essentials have that many options though that support different group options

cinder flare
#

I dunno probably, take a look

#

If you really want FJ, I can probably do it for ya in a bit

short warren
#

Doesn't have to be FJ but it was nice while it was on Spigot

cinder flare
#

oh dang why'd he remove it

short warren
#

It's only on Songoda now

cinder flare
#

oh well what's wrong with that

cinder flare
#

ah I see

#

alright hold on I'm having a hard time with this other plugin, I'll take a break and work on FrozenJoin ๐Ÿ™‚

short warren
#

You don't have to, I'm sure I can find something else so that you don't have to spend time on this

#

Though I appreciate it

cinder flare
#

I mean Frosty's a good pal of mine, can't hurt to help him out

#

plus it'll give me more practice migrating plugins

short warren
#

True

#

The source is on GitHub too, will also give me a chance to see how plugins are migrated since I have very little experience coding with the bukkit/spigot API

cinder flare
#

Oh yeah that's how I'm migrating it lmao, would not be doing this if I had to decompile

#

Gotta love open source software, it allows others to carry the torch for you when you quit lmao

short warren
#

Ya

#

I just meant that I could look at the old source and then the updated source

cinder flare
#

ah true true

obtuse gale
#

What would be the most optimized way to check the distance between entities, (a pet system where the pet will teleport to you if you're far away) Would it just the be move event?

cinder flare
#

I would have an async timer task that runs like once a second

#

because every single move event is murder on server TPS

obtuse gale
#

yeah that was what i figured lol

cinder flare
#

honestly for pet teleporting, you could probably get away with like every 30-40 ticks

obtuse gale
#

yep seems to work well!
thanks :D

cinder flare
#

any of y'all seen a gradle duplicate config.yml thing before?

#

I don't really understand it because there's only one, but it happens when it has the version filter thingy

obtuse gale
#

Did you define a duplicate strategy in the processResources task?

#

Wait a second, how could there be 2 files with the same name? thonking

ocean quartz
obtuse gale
#

Lolol

cinder flare
#

but it took me a bit to realize that swapping out the version identifier makes a new file, it's not mutative

#

so then you set the duplicate policy and it replaces the old one ๐Ÿ™‚

#

which is also extremely helpful because I wanted to do that in my plugin but couldn't remember how

#

so uh, shoutout to Frosty

obtuse gale
#

I thought you typed / instead of *I* lol

cinder flare
#

lmao

obtuse gale
#

mfw git is kidding me ๐Ÿ˜

cinder flare
#

then md5 decided he'd had enough so stopped doing them on this version

frail glade
#

Speaking of changes. Be prepared to update your paper plugins soon.

cinder flare
#

oh?

#

Paper hard fork incoming? lmao

frail glade
cinder flare
#

oh I literally just noticed that actually

#

I was updating FrozenJoin and I was like "huh, that's weird url". Went to it, redirected me to the papermc.io, decided to change my repo link ๐Ÿ™‚

obtuse gale
#

ooooh boy

obtuse gale
cinder flare
#

I know I can't wait

ocean quartz
#

mf-gui breaking soon ๐Ÿ˜ญ

sweet cipher
#

You haven't seen the movie?

cinder flare
ocean quartz
#

How much I've missed groovy gradle

cinder flare
#

i love KTS

#

and you can't take it away from me

ocean quartz
#

Me too

cinder flare
#

IJ did it for me bro

obtuse gale
#

tell it not to

cinder flare
#

I think it needed it for the value class

#

and the @JvmInline annotation

ocean quartz
#

Ktor be like

obtuse gale
#

what the fuck

#

why is that part of the style guide

#

no what

#

why the fuck would they do that

ocean quartz
cinder flare
#

cause who cares

#

WAIT

#

it wasn't even used

#

IJ lied to me

obtuse gale
#

PepeLa

cinder flare
#

woah woah @ocean quartz there's a triumph gradle plugin??

ocean quartz
#

Yeah

cinder flare
#

what it do???

ocean quartz
#

Adds utility for adding common dependencies, like spigot, paper, adventure, etc
And auto generates plugin.yml

cinder flare
#

oh woah

#

man at some point you're just making an MF plugin if you use all of the MF utilities

#

autogen plugin.yml, auto import paper, autogen config, autogen menus, autoget messages

ocean quartz
#

All the utilities to make creating plugin easier and yet never finish a plugin ๐Ÿฅฒ

cinder flare
#

hey man that's okay

#

I do neither, so you're better than me at least

ocean quartz
#

@old wyvern Managed to get the pluginManagement stuff working on my plugin, i'll see if i can for SlimJar too, probably won't since it's such a mess with shadow ๐Ÿ˜ฉ

#

Ayy main class detection working on Java 16 :pog:

hot hull
#

:ping:

cinder flare
#

now that's what I like to hear

#

a full MF-suite for Java 16

cinder flare
#

yes yes, $1 will do

hot hull
#

Sheesh

old wyvern
#

lmao

cinder flare
#

im stealing all Frosty's clout

obtuse gale
#

Lmao

old wyvern
#

xD

hot hull
#

I'm expecting 10k downloads by the end of summer.

obtuse gale
#

Haha sure and I'm expecting to be alive by my 30s ๐Ÿ™‚

hot hull
#

Nah, heart failure at 25 is what I'm betting

prisma wave
old wyvern
#

Oh boy...

obtuse gale
#

Classic j2v8

dusky drum
#

it just fails

steel heart
#

Pretty sure you can run it with like โ€”stacktrace (double dash my iPhone keyboard is just fucked)

old wyvern
#

Selecting the topmost element on the fail tasks list on the left also ussually shows the stacktrace

jovial warren
#

I mean, it kinda makes sense, since Ktor has a hell of a lot of functions that need to be directly imported, but just no

static zealot
#

๐Ÿฅฒ

old wyvern
#

papi is still on the old package name I think

#

It only changes from papi3

prisma wave
#

I saw peacocks yesterday

#

It was very cool what do you think

timber oak
#

Awesome lol

late bramble
#

weird looking frog

steel heart
gilded granite
#

gonna make a game in swing

#

goodbye mental health

static zealot
#

@boreal needle I just went to the link and the colors you showcased are different. I gotta say I Like the showcased one more

boreal needle
#

theyre different for each project

static zealot
#

oh wait

#

yeah little problem

#

if you go to new.lucyy.me/pronouns

old wyvern
#

Double slash

boreal needle
#

yeah ive just found that

static zealot
#

it goes to new.lucyy.me/pronouns//description

#

my bd

#

bad

boreal needle
#

lmao why do i never find these things until after ive published it

#

ok fixed

prisma wave
#

why is "Nouns" capitalised

old wyvern
#

Pro

prisma wave
#

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

old wyvern
#

xD

#

uh

#

anyone used Eclipse Memory Analyser before?

prisma wave
#

no ๐Ÿ˜Œ

heady birch
#

reckon mc 1.17.1 will change protocol version

prisma wave
#

probably

#

ugh

#

why does Optional#stream have to be in java 9

heady birch
#

๐Ÿคฆโ€โ™‚๏ธ
for (Thing thing : things) {
thing...
}

prisma wave
#

i do not care

heady birch
#

.map(|t| {
});
^ i dont know how you use this

prisma wave
#

๐Ÿ˜Œ

old wyvern
#

๐Ÿ˜Œ

prisma wave
#

rust

#

i think

old wyvern
#

oh, that looks weirdly close to ruby's lambda

prisma wave
#

yeah they look very similar

heady birch
#

nope

#

its Caucho's Quercus

#

Quercus is Caucho Technology's 100% Java implementation of PHP 5 released under the Open Source GPL license. Quercus comes with many PHP modules and extensions like PDF, PDO, MySQL, and JSON. Quercus allows for tight integration of Java services with PHP scripts, so using PHP with JMS or Grails is a quick and painless endeavor.

With Quercus, PHP applications automatically take advantage of Java application server features just as connection pooling and clustered sessions.

prisma wave
#

you need to be put to death

heady birch
#

well some one had to think 'hey I got a great idea'

#

at least its not o:xml

prisma wave
#
    public static Optional<Config> load(Configuration config) {
        //noinspection unchecked
        return Optional.ofNullable((List<Map<String, String>>) config.getList("Patterns"))
                .map(patterns -> patterns.stream().map(pattern ->
                        new BanPattern(
                                pattern.get("Pattern"),
                                pattern.get("Replacement")))
                        .collect(Collectors.toList())
                )
                .map(Config::new);
    }
``` i both love and hate this
violet creek
#

What libraries help you develop plugins faster or save you time? I'm currently using MFGui & MFCommands. Any other libs that you can recommend me?

old wyvern
#

People ussually end up making a tiny library of what they commonly reuse

prisma wave
#

yeah honestly making your own is probably more productive for the smaller stuff

#

then just find frameworks for the bigger things

violet creek
#

Alright, thanks.

onyx loom
#

?mf

compact perchBOT
onyx loom
#

config: coming soon ๐Ÿค”

prisma wave
#

๐Ÿ˜ก

#

mf monopoly: going soon

onyx loom
#

@ocean quartz should i change this? ik u still want to add to it but atleast its ready for production i guess

prisma wave
#

suggest something better

quiet depot
#

automation with gson

prisma wave
#

overkill

quiet depot
#

hardly

prisma wave
#

this will be literally 5 classes

quiet depot
#

is it a minecraft ploogin

prisma wave
#

mhm

quiet depot
#

then you'll probably have less lines with gson

#

not overkill

prisma wave
#

spoonfeed me

quiet depot
#

can't

#

need to see code

#

and config

prisma wave
#
Patterns:
  - Pattern: "(?i)actbab"
    Replacement: "account created to bypass a ban"

  - Pattern: "cheat()?"
    Replacement: "you used illegal modification"
#

you've already seen most of the relevant code

quiet depot
#

need config and ban pattern

prisma wave
#

public class BanPattern {
    private final String replacement;
    private final Pattern pattern;
}
quiet depot
#

where's the constructor

prisma wave
#
public class Config {
    private final List<BanPattern> patternList;
}
#

cba to copy that

#

boilerplate

#

it's just a standard constructor with the this.blah = blah

quiet depot
#

you'll need a custom field naming policy with that god awful naming you've got there in yaml

#

or you could just use a respectable format

#

i recommend lower case with underscores

old wyvern
#

Piggy

quiet depot
#

hello

old wyvern
#

is there a way to retain a class between expansion reloads

quiet depot
#

brister if you fix the naming it's like 1 line of code

prisma wave
#

fine i will change naming

#

ok

#

what is the code to load

old wyvern
#

j2v8 is trolling rn with a classloader leak, which makes it very hard to load the library again

#

๐Ÿฅฒ

#

I was thinking of returning true in the persist method, but that retains more than needs to be

quiet depot
#

give me a sec

#

i have to check papi 3 to see how it loads files

#

can't remember how to use snakeyaml

#

what happened to quickjs yugi

#

also what's going on with javet

prisma wave
#

new Yaml(map)?

old wyvern
#

Javet is unlikely to work, its on V8 9, which requires a library installed on linux

#

J2V8 and QuickJS seem to work on both

quiet depot
#

what did the author say

old wyvern
#

Looking through j2v8, it seems to use v8 8

#

so yea, what he said was true, this is an issue from 9

quiet depot
#
private static final Gson GSON = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
private static final Yaml YAML = new Yaml();

// in method
return GSON.fromJson(GSON.toJsonTree(YAML.loadAs(yamlString, Map.class)), Config.class);
old wyvern
prisma wave
#

thank

#

oh

quiet depot
#

fak

prisma wave
#

how do i get bungee Configuration to a string

quiet depot
#

u don't

#

2 sec

#

let me look at bungee

old wyvern
quiet depot
#

@prisma wave just read ur file contents

#

u don't even use the bungee api

prisma wave
#

hmm

#

ok

#

lucky that this is all the config will have in

#

hopefully

quiet depot
#

method scales to any config type

#

I always write my configs like this

#

i haven't used bungee/bukkit config api in yonks

quiet depot
old wyvern
#

Mhm

#

Works fine on my linux installation

quiet depot
#

make an issue for it in papi 3

#

at this point I'd just continue with quickjs

#

since javet doesn't work without gcc and j2v8 has memory leaks or whatever

old wyvern
#

Alrighty

ocean quartz
onyx loom
#

๐Ÿ‘

ocean quartz
prisma wave
#

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

#

no

#

not true

#

you are LYING

boreal needle
#

i never came up with a better username

#

does anyone have anything at all

obtuse gale
#

not_lucy_mc

boreal needle
#

nah thats even worse

obtuse gale
#

Lmao

boreal needle
#

i did look at losing the underscores at one point but the github name is already taken

#

and id look like i copied you

static zealot
#

the

boreal needle
#

why the?

static zealot
#

why not?

obtuse gale
boreal needle
#

seriously i have nothing at allllllll

obtuse gale
#

Hm

static zealot
#

Disguised Hamster

#

SpikyLegsLOL

obtuse gale
#

Lmao

static zealot
#

HamsterMilk

boreal needle
#

lmao what are those

static zealot
#

DrSpiky

#

lmao

#

names

boreal needle
#

the thing is

#

i have a razor

#

i am not spiky

static zealot
#

lmao

#

there we go

obtuse gale
prisma wave
#

You can't force a name

#

It needs to have history and personality

static zealot
#

it has history and personality

#

you did and still have a razor and its your razor

prisma wave
#

๐Ÿ˜Œ

static zealot
boreal needle
static zealot
#

I made it for my brother first, He wanted a name that's not taken so I just put in Blitz for some reason then I said, he's a gamer so BlitzGamer works, and then just added 88 at the end to make sure it really isn't taken (also I like 8)

static zealot
boreal needle
#

brb buying a boost

static zealot
#

so changed it

#

omggg

#

I can set my nickname without boost

#

that's cool

prisma wave
static zealot
prisma wave
#

Patrick Bateman

#

My inspirational figure ๐Ÿ˜Œ ๐Ÿคฉ ๐Ÿ˜ณ ๐Ÿ˜Š

#

A true sigma male

static zealot
#

or is it Patrick Batman?

prisma wave
#

Same person

#

Well same actor

static zealot
#

omg we found out who batman is

#

oh fuck

#

...

#

๐Ÿ˜ข

#

I have a razor

boreal needle
#

is that a dev general meme now

static zealot
#

wait are you not changing your name to that?

boreal needle
#

no lmao

static zealot
#

๐Ÿ˜ข I like it

boreal needle
#

i was joking

static zealot
#

ok bye then

boreal needle
#

nah i have some slightly more cutesy ideas

#

if i survive whatever you're about to do to me that is

obtuse gale
#

lucyy-dev ๐Ÿ˜Œ

boreal needle
#

no

#

lucyy-mc is bad enough

static zealot
# boreal needle nah i have some slightly more cutesy ideas

here some better ones: Razorrex IHasRazor Razor Razor Razor Razorasaurus Rex Razor Razor Uber Razor Razor Disguised Razor RazorRazorOMG RazorRazorLOL RazorRazorLMAO IamRazor RazorMilk MindOfRazor GamerRazor The Razor Gamer DrRazor RazorRazorpopper BigRazorRazor ItIsYeRazor R4z0r Razor Boy Razor Girl Razor Person Captain Razor Total Razor The Razor Razor Dude The Gaming Razor Gaming With Razor Mr Game Razor Ms Game Razor

obtuse gale
#

Wow okay

#

Hurt

boreal needle
#

please no razor

static zealot
#

The Razor Gamer

#

xD

prisma wave
#

RazorRazorpopper

#

What a name

static zealot
#

lmao

#

ItIsYeRazor

#

xD

#

Captain Razor

#

they're all so good

prisma wave
#

Gaming with Razor lmao

#

The Razor Razor Dude

static zealot
#

ow u doing?

#

xd

boreal needle
#

Xx_R4z0r_xX

#

beautiful

obtuse gale
#

RazorMilk lmao

prisma wave
#

๐Ÿ˜Œ

#

BigRazorRazor

boreal needle
#

we're not getting anywhere here lmao

obtuse gale
#

Razor Razor Razor

boreal needle
#

brb imma go look for free github usernames

obtuse gale
#

xd

prisma wave
#

BuggyLucy
Crolucy
Dollucy
Extenlucy
FizzLucy
Gatelucy
GorgeousLucy
HopeLucy
Inuslucy
LucerneLucy
LucreLucy
LucyAgcy
LucyAlly
Lucyanti
LucyBen
LucyBlab
Lucygn
LucyLunacy
LucyLurker
LucyMarcs
Lucymter
LucyPac
LucyStories
Lucyte
LullerLucy
LunesLucy
LungyiLucy
OneLucy
Ontelucy
OracyLucy

static zealot
#

xD

obtuse gale
#

LucyLurker

boreal needle
#

Microsoft OneLucyโ„ข๏ธ

obtuse gale
#

\โœจGorgeousLucy\โœจ

boreal needle
#

no

obtuse gale
#

Yes

boreal needle
#

its gotta be at least factual

static zealot
#

Flucytosine

prisma wave
#

How about "Krypton"

static zealot
boreal needle
#

how about "kwypton"

#

my claim to fame

prisma wave
#

go on

ocean quartz
#

Uwu

prisma wave
#

so it

#

Do it*

boreal needle
#

seeing as that's the only contribution ive ever made to someone elses project

prisma wave
#

Why did I randomly get a tweet notification of someone that I'm not even following what

grizzled jolt
#

Hi, is it possible for me to register to the ecloud!

static zealot
#

@pallid gale ^^^

boreal needle
#

ask cube

static zealot
#

cube will ping you when he wakes up

#

probably

prisma wave
#

funnylucy

static zealot
#

maybe

#

idk

#

xd

prisma wave
#

funnyrazor

old wyvern
#

Apparently the JarFile class is system dependent for some reason

static zealot
boreal needle
#

lmao stop with the razors

old wyvern
#

Clearly

static zealot
#

TheRazorOfRazors

prisma wave
boreal needle
#

;-;

old wyvern
#

It fails to find file path on a specific configuration

static zealot
#

__razor

onyx loom
prisma wave
#

__razoryy

old wyvern
static zealot
#

__razor_uwu

boreal needle
#

no

#

no razor

#

no underscores

old wyvern
#

Absolute lies by this menace of a man named gosling ๐Ÿฅฒ

obtuse gale
#

java_bad

boreal needle
#

absolutely no uwu

static zealot
#

no_razor_no_underscores_no_uwu

prisma wave
#

make him PAY

old wyvern
#

Yes, Simon will be our lawyer.

prisma wave
#

๐Ÿ˜Œ

static zealot
#

simon cowell ?

boreal needle
#

its a no from me.

old wyvern
#

Simon YourMum

static zealot
prisma wave
#

I would let Simon dominate me (in a court of law)

old wyvern
boreal needle
#

i almost met simon cowell once

static zealot
#

me2_razor

boreal needle
#

my steel band auditioned for bgt

prisma wave
#

razor_haz_met_simon_cowell420

old wyvern
#

Simon Cowell is the irl name of the howard guy from bbt right?

prisma wave
#

uh

old wyvern
#

Maybe not

#

๐Ÿฅฒ

static zealot
#

lmao

prisma wave
#

bbt?

onyx loom
boreal needle
#

no

onyx loom
#

โ˜น๏ธ

old wyvern
#

Big Bang Theory

prisma wave
#

โ˜น๏ธ

#

Oh lmao

#

no

boreal needle
#

i missed a few opportunities

static zealot
#

time to google lucyy razor simon cowell on tv

prisma wave
#

I don't think so

boreal needle
#

you dont know the name of the band :)

onyx loom
#

no thats definitely not simon cowell @old wyvern lol

old wyvern
#

xD

onyx loom
#

well maybe they have the same name idk, but this isnt the same person for sure

obtuse gale
prisma wave
#

There's only 1 real Simon

static zealot
#

and that's Simon Razor

prisma wave
#

Simon Razor-Jones

boreal needle
#

what have i started

static zealot
#

dw. we'll forget about the razor thing in a few days

#

maybe

boreal needle
#

lmao

obtuse gale
#

maybe

prisma wave
ocean quartz
#

Regex espacing be like

obtuse gale
#

\\\\\\\

prisma wave
#

why havent they yet!

ocean quartz
distant sun
ocean quartz
#

I wonder, does the path look like this on linux too?

obtuse gale
#

/

ocean quartz
#

Hmm if it does than this would break ๐Ÿ˜ฉ

obtuse gale
#

You can quickly test on WSL, can't you?

#

But I mean \ joined paths is a Windows construct for whatever reason :^)

boreal needle
#

thank you windows very cool

ocean quartz
#

Probably not too quick to test
Does anyone here have linux and want to do a quick testing for me?

boreal needle
#

how quick are we talking

ocean quartz
#

Just run this

fun main() {
  println(File("any file here please").path)
}

And tell me if it's \ or /

boreal needle
#

sure 2 secs

obtuse gale
#

Should be /

#

afaik it's joined by File.separator (I think that's the field?)

ocean quartz
#

Huh yeah it takes from FileSystem separator

obtuse gale
#

Paths ๐Ÿ˜Œ ๐Ÿ˜ฉ

ocean quartz
boreal needle
#

yeah @ocean quartz its a forward /

ocean quartz
#

Ah yeah that would definitely break this, thank you!

#

I found a way that should work on both now

boreal needle
#

thoughts on personal .net domains?

#

im thinking about getting one for this new username when i get there

#

just waiting to hear back from github about usernames

ocean quartz
#

Perfect

ocean quartz
boreal needle
#

fair enough

ocean quartz
#

!>!>!!!!

boreal needle
#

!

ocean quartz
#

Can someone please explain to me why there is two of these? This is so dumb

old wyvern
#

Because md_5

#

๐Ÿ˜Œ

ocean quartz
#

Fair enough

boreal needle
#

this is so dumb
bukkit be like

ocean quartz
#

Like, author: "Matt" and author: ["Matt", "Yugi"] are both allowed by yml iirc

distant sun
#

well it doesn't matter if yaml allows both or not, I'm pretty sure that bukkit configuration api turns one element into a list if you call getXList
and even outside of bukkit api, you can 100% check the value type (if it is an array or a single value) and then process it however you want

#

so it is just a stupid thing made by whoever designed plugin.yml

prisma wave
ocean quartz
#

Yeah

#

I do that now

cinder flare
#

Smart Matt ๐Ÿ˜Œ

distant sun
#

eh

#

more of Lazy Matt

cinder flare
#

Either way, it's a good Matt

old wyvern
#

Nothing better than a infinite gc loop ๐Ÿ˜Œ

cinder flare
#

Is this still happening with V8 too?

#

At this point just make a lua interpreter

old wyvern
#

Its happening specifically with J2V8

sweet cipher
old wyvern
#

QuickJS probably doesnt have this issue, but it irks me that this cant be fixed

#

There must be some way

old wyvern
cinder flare
#

What's even causing it

#

Do we know?

old wyvern
#

Looking at the heap dump, there may be a phantom reference somewhere

#

But I cant find it in any of the V8 classes

cinder flare
#

Hmm

prisma wave
sweet cipher
#

Yep

old wyvern
#

Oh is that a reference to the Vision guy?

ocean quartz
#

Yeah xD

old wyvern
#

xD

static zealot
#

@boreal needle i just got a notification saying @someone replied to a message from The Razor Razor dude and I was so confused for a second :)))

cinder flare
#

Yeah why is that your name lol

static zealot
#

To honor the razor

#

Lmao

cinder flare
#

What razor

old wyvern
#

E-Razor

boreal needle
#

lmao

#

so im looking for a new username

#

and blitz suggested a load and fsr loads had the word "spiky" in them

cinder flare
boreal needle
#

but i am not spiky, i own a razor

#

hence the razor joke started

cinder flare
#

Ah I see

gusty glen
boreal needle
#

i have ideas tho

old wyvern
#

Try Xx_ElaraUser_xX, if that fails try Xx_ElaraUser_1_xX or Xx_ElaraUser_12_xX or Xx_ElaraUser_123_xX

cinder flare
boreal needle
#

what if

#

i dont use elara

old wyvern
#

Bad

#

Elara Good

#

"No elara" bad

boreal needle
#

i use serverside js

#

enough said

cinder flare
#

Bro

static zealot
# cinder flare Yeah why is that your name lol

Lucy asked for a new nickname and i used a generator and found a lot of random names like HamsterMilk, spikylegs and things like that. Then lucy said I have a razor and Mitten said that a nickname should have a backstory and whatever and I said IHaveARazor its a good name and now it has a funny backstory as well

old wyvern
#

That reminds me of that regular show episode

static zealot
#

Then i used the same generator to generate nes based on the word razor

boreal needle
#

i dont have nick perms here

#

sad

old wyvern
#

DustBoat? or something like that

static zealot
#

And got this one and a lor of other funny ones

cinder flare
boreal needle
#

blitz could you change my nickname

#

i have no money

static zealot
#

Can't

boreal needle
#

:(

gusty glen
old wyvern
#

Trash Boat yes

#

thats it

static zealot
#

Can only change my own

old wyvern
static zealot
boreal needle
#

i am considering buying a boost just to change it for the month

static zealot
#

It sticks tho

boreal needle
#

yeah i dont want it forever

static zealot
#

So if u don't change back you get stuck woth that one until you boost again

cinder flare
#

Heh

old wyvern
static zealot
#

Dk if it was backstory or whatever he said

static zealot
#

This*

old wyvern
#

Ahh

#

Have I got the perfect name then

#

Simon Peyton Jones

static zealot
#

Lmao

old wyvern
#

The perfect amalgamation of History and Personality

boreal needle
#

i do have some ideas

#

serious ones

cinder flare
#

Such as????

boreal needle
#

reeeeeee

cinder flare
#

I think it's cause you used js

boreal needle
#

this worked literally 10 seconds ago

cinder flare
#

Exactly, js is a fickle Mistress

boreal needle
#

ay i fixed it

#

turns out i had the wrong relative path

prisma wave
#

Probably

old wyvern
#

๐Ÿ˜Œ

gusty glen
old wyvern
#

Holy cursed formats

distant sun
#

๐Ÿคข

gusty glen
#

what is the equivalent of kt with in java?

gusty glen
distant sun
#

none

old wyvern
#

Both are quite weird to do in Java. Go conventions accept them tho

gusty glen
#

is it cursed as well?

old wyvern
#

yes ๐Ÿ˜ท

distant sun
#

in a language where you don't have to specify the type, might not look that bad but yes, it's horrible

gusty glen
#

what is the time complexity of bubble sort? I read it was O(n^2) but that is not true

gusty glen
#

bubble sort boils down to (pseudo kotlin)KT for (i in indices) { for (j in 0 until lastIndex - i) { if (shouldSwap J with J + 1) { swap(J, J + 1) } }so if I had a list with 2 items and ask the algorithm to sort it, by the logic of O(n^2) it would take 2^2, or 4 swaps (at most), but look, the outer loop will loop 2 times, and the inner loop will run twice for the first item, but only once for the second item, totaling 3 loops instead of the expected 4

old wyvern
#

totaling 3 loops instead of the expected 4

gusty glen
#

this discrepancy grows as the list growls

old wyvern
#

There isnt a expected 4

gusty glen
#

O(n^2)

#

where n is the amount of items in a list

old wyvern
#

When you generally speak of time complexity, you are reffering to the upper bound time complexity, i.e, Big Oh, this is a bound, not an expected value

#

You mentioned it yourself in your sentence, it would take 2^2, or 4 swaps (at most)

#

(at most)

gusty glen
#

yeah, the loops bubble sort make does not vary in the same list size

#

what I want to know is why 3 is not 4 in this case

#

if you have a list with 10 items, the time bubble sort takes is not 10^2, but 10 (first loop) + 9 (second loop) + 8 (third loop) ... 1 (last loop)

#

then why is bubble sort classified as O(n^2) if it's not n^2, why?

prisma wave
gusty glen
prisma wave
#

it's linear time if the list is already sorted I think

old wyvern
#

So for all you could care, an O(n^2) might be referring to an actualling "running time" of (0.1 * x^2) + (5 * x) + 2 or whatever

#

In case of the common optimized bubble sort, it is n(n-1)/2

prisma wave
#

^^ or n^2 basically

#

It's an abstraction

old wyvern
#

mhm

gusty glen
old wyvern
#

n(n-1)/2 != nยฒ
n(n-1)/2 = O(nยฒ)

old wyvern
#

it takes only the higher degree* variable in the running time equation and discards the coefficients and constants

gusty glen
#

what is a higher degree variable

old wyvern
#

That is slightly worded wrong ig, the degree is the equation in the highest power of the variable in the equation (in 1 variable)

#

So here you have n * (n - 1) / 2 which simplifies to (n^2)/2 - 1/2

gusty glen
#

I have a question about this implementationCPP void bubbleSort(int arr[], int n) { int i, j, temp, flag=0; for(i = 0; i < n; i++) { for(j = 0; j < n-i-1; j++) { // introducing a flag to monitor swapping if( arr[j] > arr[j+1]) { // swap the elements temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; // if swapping happens update flag to 1 flag = 1; } } // if value of flag is zero after all the iterations of inner loop // then break out if(flag==0) { break; } }

old wyvern
#

Yes?

gusty glen
#

shouldn't the flag be set to zero before enter the inner for loop

#

cause if the elements have not being swapped in one full iterations, that means that the list is already sorted, correct?

old wyvern
#

Yes

#

it should be

sly sonnet
#
if  ( hours   < 24
   && minutes < 60
   && seconds < 60
)
{return    true
;}         else
{return   false
;}
sly sonnet
#

i am looking up coding styles on google, found this on some wikipedia page

#

it looks like shit

gusty glen
#

I gotta do some diagrams describing a spring boot app, what kind of diagrams better represent this kind of system?

ocean quartz
gusty glen
#

apparently when IJ runs a console app, it doesn't have a console since System.console() returns null

cinder flare
#

apparently this was fixed in Jun 2017

#

might also be worth looking at that

prisma wave
#

not that it's really supposed to be used in imperative languages

cinder flare
#

that don't look that great with all those brackets yeah

prisma wave
#

Really the only time you'll use braces in haskell is records

forest pecan
#

Whatโ€™s the best way to swat off people who ask for 1.8 support or something under 1.16

#

Someone give me a line lmao

obtuse gale
#

"That version is not actively supported nor my targeted audience, if it works it works, if it doesn't I'm not gonna go out of my way to make it work"

#

"wOw HoW rUdE"

obtuse gale
#

"Mojang does not support it, why should I?"

cinder flare
#

Java 16 only gang

forest pecan
#

Well yeah ig 1.17, but tbh i wouldnt be surprised if some people were on 1.16 still cause some plugins still need to be updated

oak raft
#

Assuming you head over to the valorant section, is it possible to make a discord bot that displays that kinda stuff?

frail glade
#

If it returns JSON data, of course.

oak raft
#

It doesn't specify thonking

#

How would I know

ocean quartz
#

It's an API it'll like 100% be JSON

obtuse gale
#

what if it's YAML

#

๐Ÿ˜Œ

oak raft
#

I like the way you think emily

#

Expect the unexpected 5Head

sweet cipher
#

Itโ€™s probably xml

cinder flare
#

html api gang

half harness
#

world's largest plugin sizeโ„ข๏ธ

cinder flare
#

wtf did you shade in bro

half harness
#

lol

obtuse gale
#

spigot api lol

cinder flare
#

did you shade the entirety of minecraft lmao

half harness
obtuse gale
#

nah yeah the whole server jar

half harness
#

btw these are all the relocations

#

more than u think fingerguns

#

half of them are jda libs

#

then other is stuff where i have no clue where they came from

#

i don't have many dependencies

#

those depends are big tho

obtuse gale
#
listOf(
    "lib.package.one",
    "lib.package.two",
    "lib.package.three"
).forEach { relocate(it, "my.package.lib.${it}") }

๐Ÿ˜Œ

half harness
#

๐Ÿ˜’

#

also the server im helping developing for is using skript and the antixray skript always spams console ๐Ÿฅฒ

#

might not be antixray

#

thats what they told me

#

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

#

i should probably use slimjar sometime

#

but its midnight

#

and i should sleep

#

smh second image didn't load

#

oh i had to move the slimjar below shadow

ocean quartz
#

Ayy finally adding commands that work :kek:

obtuse gale
ocean quartz
#

Nice

half harness
#

lol

#

should i relocate slimjar or no?

#

i feel like i should
but i dont want to break anything

obtuse gale
ocean quartz
half harness
#

aw

#

slimjar has failed me

ocean quartz
#

What happened?

half harness
#

1 sec im in the middle of getting the exception

#

PLUGINPlugin.kt:54 is ```kt
ApplicationBuilder.appending(description.name).build()

#

i have no idea what to do

ocean quartz
#

Wtf is that error lol

half harness
#

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

#

thats the full error

ocean quartz
#

Any idea @old wyvern? ^

half harness
#

its 12:30 midnight so ima go to sleep, but if u find a solution plz ping me ๐Ÿ˜„

old wyvern
#

@half harness update to 1.2.2

#

Make a gradle.properties files in yiur project root and add slimjar.version = 1.2.2 there

#

Already discussed this with the pebblehost staff earlier. They have their java executable renamed for security purposes so bytebuddy has trouble finding it.

cobalt arch
#

I have a question, how do I get staff before I start a server? Like I need some programmers and builders but I just don't know how. Maybe you can help me?

old wyvern
pallid gale
jovial warren
old wyvern
prisma wave
#

You should delete it

static zealot
#

ah yes

native marsh
#

hi

static zealot
#

hello

native marsh
#

lol watch me ask a stupid question

#

uhh I come from javascript and c# and I can't figure out how to set up a java project any way someone can help me with smth so basic? (I am using VSCode for my code editor but ig if I understand how to do it I could aply it to any code editor... this shouldn't be important I think?)

static zealot
#

you should use an ide for java. most recommended one here is IntelliJ

native marsh
#

but like uhh that's paid... I think? wait I gotta fact check this

static zealot
#

nah. there's a "Community" edtion

#

is what I use, and a lot of people do

#

or you could get the ultimate version if you're a student or I think with the OS license as well

native marsh
#

I am a highschooler so idk if that's still like gonna get me the sudent pack? idk what to call it sorry my english is kinda bad I am really strugling at times to express myself

static zealot
#

but if you don't want or know how to do all that, believe me the Community edition works just great

native marsh
#

ok got it

static zealot
native marsh
#

yeah found the page eventually

static zealot
#

ah alr

native marsh
#

time to sudo make install and hope I don't have to do more googling I will be back once I got it installed

#

if I got any other questions

static zealot
#

they do have great docs and usually when you search how to something in intellij their docs pop up first

lunar cypress
#

There are also pre built binaries for IntelliJ

#

you don't have to build it yourself

native marsh
lunar cypress
#

should also be in most package managers

static zealot
#

yeah it is in pkcon snap and apt I Think

#

thos I Know of

native marsh
#

not in the linux mint one odly enough

lunar cypress
#

Mint definitely has it

#

Since it also uses the Ubuntu repos

native marsh
#

I know it should but I searched it and it didn't know up and comand line apt install intellij-idea-community did return no package found

lunar cypress
#

I actually have mint on my laptop, I don't remember if I installed IntelliJ there though

native marsh
#

I jsut finished installing it now :)

static zealot
#

I personally installed the toolbox manually from the website then installed IntelliJ from the toolbox

#

and that was because the one from the package manager didn't show my activity status in discord xD

#

had to do the same with discord, install it from the website

lunar cypress
#

Oh yeah I had that issue with Discord on mint I think

#

the RPC apps wouldn't work, had to use the tarball

quiet depot
#

discord deb works for me with rpc apps

#

but for all jb apps definitely use toolbox

prisma wave
#

Yeah just use toolbox

#

Even if your repo has it

native marsh
#

thanks for the support starting up :)

half harness
ocean quartz
#

@static zealot Mood

native marsh
#

weird question how tf you rename a file in intellj idea

#

cuz I been looking for the rename button for ages oof

old wyvern
#

right click -> refactor -> rename

obtuse gale
#

Select it, shift F6 ๐Ÿ˜Œ

native marsh
#

thanks :)

static zealot
#

took it a while

ocean quartz
#

I don't think i'm missing anything else right?
Taking from the wiki:

permissions:
  test.foo:
   description: Allows foo command
   default: op
  test.*:
   description: Wildcard permission
   default: op
   children:
     test.foo: true
#

Hmm now that i look at it, the children thing looks bad thonking

#

Would this look better?

children {
  child("test.foo", true)
}
obtuse gale
#
children(
    "test.foo" to true,
    "test.bar" to false
)
half harness
prisma wave
#

ew

#

default = OP

half harness
#

๐Ÿ˜’

#
import mf.DefaultType.*
#

๐Ÿ˜Œ

#

bm

prisma wave
#

ew

obtuse gale
#

๐Ÿคฎ ๐Ÿ’€

half harness
#

lol

#

but i think enum is better

#

so theres 0 chance of typo

sweet cipher
#

default = OPERATOR

half harness
#

or forgetting what default types there are, plus then there can be KDocs

prisma wave
#

why use enum when you could use sealed class + object ๐Ÿ˜Œ

half harness
#

um

#

๐Ÿคข

prisma wave
#

elaborate

old wyvern
#

dkim bad

half harness
#

ok

#

yugi

#

help

obtuse gale
#

Haha

half harness
#

slimjar

old wyvern
#

Yes?

half harness
#

uh

#

something's not relocating or smth

prisma wave
#

i think it means slimjar bad

half harness
old wyvern
#

runtime relocations should be specified in slimJar block

#

not in shadowJar block

half harness
#

ya i did

#

wait

#

ya

#

i did

prisma wave
#

mostly

old wyvern
#

Send me your build file

half harness
#
slimJar {
    relocations.forEach { String first, String second ->
        relocate first, second
    }
}
```this is the slimjar bit
old wyvern
#

Send your jar

half harness
#

i dont have it rn

#

reverted

#

i tested in production server ๐Ÿฅฒ

ocean quartz
old wyvern
#

lol

old wyvern
#

I need atleast the slimjar.json or your entire build file to verify if you're doing something wrong

obtuse gale
half harness
#

hmmm

old wyvern
#

You also build with shadowJar task, correct?

half harness
#

yes

#

i'll try reverting the revert

#

lol

old wyvern
#

lol

#

Looks like a relocation mismatch between slimjar and shadowjar

#

so you most likely have something wrong between those

ocean quartz
#

๐Ÿ˜Œ

half harness
obtuse gale
half harness
#

lol without slimjar my jar is 47mb

ocean quartz
#

Also Yugi, testing with the pluginManager is so fast, all i do is publish to local then refresh on the test project and it's already updated

frail glade
#

Ooo, that looks nice.

old wyvern
#

Thats awesome, the buildscript way is so fucked

ocean quartz
#

Ikr

old wyvern
#

At some point I just started testing on the gradle portal with cryptic versions and then deleting

#

๐Ÿ˜‚

half harness
ocean quartz
#

Amazing, i'd do the same xD

old wyvern
#

You dont have a relocation specified for kotlin there dkim

old wyvern
#

or wait no

#

hmm

half harness
#

so uh

#
shadowJar {
    relocate 'kotlin', "${basePackage}.kotlin"
    relocate 'me.dkim19375.dkimbukkitcore', "${basePackage}.dkimbukkitcore"
}
```so i put this
#

final def basePackage = 'me.dkim19375.PLUGIN.libs'

old wyvern
#

You need to relocate both to the same packae

#

relocate 'kotlin', "${basePackage}.kotlin"
Specify this in slimjar

#

You dont really need to specify any of the relocations in shadowJar

#

just apply them all in slimjar block

half harness
#

oh

old wyvern
#

its transitively applied to shadowJar

prisma wave
#

"sPeCiFy tHiS iN sLiMjAr" ๐Ÿ™„ ๐Ÿ™„ ๐Ÿค“ ๐Ÿค“

half harness
old wyvern
#

Im assuming the issue here was that
The kotlin package was relocated in jar,
relocation not provided to slimjar,
therefore kotlin class references in kotlinx wont get relocated, so it still refers to the original one

half harness
#

ah

#

ic

half harness
#

actually

#

where is kotlinx coming from

old wyvern
#

coroutines

obtuse gale
#

uranus

half harness
#

oh its coming from dkimcore

old wyvern
#

Just move all relocations to slimjar block and test first, we can move from there

half harness
#

uh

#

ok

#

testing ๐Ÿ˜ฉ

prisma wave
half harness
#

i do

old wyvern
#

I swear bm's pfp is changing like every minute

forest pecan
#

No more weeb smh

prisma wave
#

yeah

#

weeb can come back if you'd prefer

half harness
#

DefaultDispatcher-worker-3/WARN java.lang.IllegalStateException: No language and polyglot implementation was found on the classpath. Make sure the truffle-api.jar is on the classpath.
anyone know how to fix this? ```gradle
implementation 'org.graalvm.js:js:21.1.0'
implementation 'org.graalvm.js:js-scriptengine:21.1.0'
implementation 'org.graalvm.truffle:truffle-api:21.1.0'

forest pecan
#

Give me that weeb

old wyvern
#

weeb will be slain

forest pecan
#

No

#

Weeb best

prisma wave
half harness
#

there

#

i edited message

#

i didn't test with slim

#

forgot to replace to implementation

forest pecan
#

Dkim

half harness
#

Pulse

forest pecan
#

Do you need a weight loss program

half harness
#

wat

forest pecan
#

Is that why you are using slimjar

half harness
#

yes

forest pecan
#

Lmao

half harness
#

gotta slim down from 47mb to 5mb

boreal needle
#

does anyone know a bstats alternative that works for cross-platform

frail glade
#

That's actually more of an issue with Graal itself. I originally got that working on an update for the Javascript Expansion. Ended up throwing in the towel because it required on-demand classloader hacks to make it load.

half harness
#

uhhhhhhhhhhhhhhhhhhhhhhh

#

uh oh

frail glade
#

bStats has multiple modules.

half harness
boreal needle
#

yeah i have to create separate stats pages for each platform

#

id like to have them all as one

half harness
#

i dont really want to do hacky stuff

forest pecan
#

Make your own like Lstats

#

Idk

#

Lol

boreal needle
#

i might end up doing that

prisma wave
#

How are you supposed to test bungee plugins, I open 2 instances of MC and suddenly I have less than 30MB of ram left

#

Please help

boreal needle
#

get more ram

onyx loom
#

^

forest pecan
#

?download-ram

compact perchBOT
onyx loom
#

^

boreal needle
#

or a massive swapfile with a good ssd

#

one of the two

forest pecan
#

Lmao

half harness
#

Lmao

boreal needle
#

i can comfortably run two paper servers, one proxy and two clients on 16gb

prisma wave
#

I have 16 gb ram and an nvme ssd โ˜น๏ธ ๐Ÿ˜ตโ€๐Ÿ’ซ

boreal needle
#

with i3 mind you so no de overhead

forest pecan
#

I can run a modpack server with 400 mods and a client on 16 gigs

#

Lol

prisma wave
#

I can't even change window to see what's taking up all of the ram

onyx loom
#

set ur mc instances to just use like 500mb

prisma wave
#

yeah

frail glade
#

Can you not just give each client 1GB of RAM and then the server like 3?

prisma wave
#

Probably

obtuse gale
boreal needle
#

screw it imma write a stats module for my website

prisma wave
#

Paper is probably stealing like 8 GB or some bs

sly sonnet
#

did y'all know that singleplayer is basically a server?

prisma wave
frail glade
#

Got that would be funny if you advetised Slimjar like that.

old wyvern
#

lmao