#dev-general

1 messages ยท Page 531 of 1

old wyvern
#

Slimjar soon to be in wide use across america

#

๐Ÿฅฒ

half harness
#

waffle king do u have a fix for graal?
what are you going to do for java 16 ๐Ÿฅบ

frail glade
#

This is where I poke Yugi.

prisma wave
#

pc has completely frozen

half harness
#

O

prisma wave
#

I hate spigot

#

this is not worth $10

half harness
#

@old wyvern u got poked by @frail glade
โ€ผ๏ธ

prisma wave
#

I just wanna "grill" (use spring and haskell)

onyx loom
#

sounds like a you problem

old wyvern
#

Im currently using J2V8 and hacking it into submission by loading it into the plugin class loader

frail glade
#

Oh is that what you showed me working earlier?

old wyvern
#

Yea

half harness
#

uh

frail glade
#

Does papi parse work yet? ๐Ÿ‘€

old wyvern
#

Will do in a minute, just had some work ๐Ÿ˜…

half harness
#

so uh

boreal needle
#

whats the rationale behind using js?

prisma wave
#

shut up

half harness
onyx loom
#

bro just get more ram

#

not hard

old wyvern
#

Wide-Use, Considerably simple for the casual users

prisma wave
#

papi elm expansion when

old wyvern
#

Soonโ„ข๏ธ

prisma wave
#

๐Ÿ˜Œ

old wyvern
#

Papi Elara Expansion

onyx loom
#

๐Ÿ˜ฎ

boreal needle
#

hear me out here

prisma wave
#

๐Ÿ˜Œ ๐Ÿ˜Œ ๐Ÿ˜Œ ๐Ÿ˜Œ

boreal needle
#

papi native

prisma wave
#

wtf

old wyvern
#

Papi OS

prisma wave
#

isn't papi basically the "message passing" style of the original oop?

frail glade
#

He's looping through every single entity in the world to find all the entities in the given chunk.

half harness
#

Dkim PAPI: ```kt
val placeholders = mapOf("player_name" to "dkim19375")
fun String.parse(): String {
var new = this
placeholders.forEach { (a, b) -> new = new.replace("%$a%", b) }
return new
}

onyx loom
#

except that wont work ๐Ÿ˜Œ

ocean quartz
#

Reassigning a val thonking

static zealot
#

yeah. haven't you guys seen the kotlin 5.2.0 update?

#

now val can be reasigned

onyx loom
#

5.2 ๐Ÿ‘€

static zealot
#

yup

#

oh wait that didn't come out yet?

#

fuck. you didn't see nothing

frail glade
static zealot
#

I think I Was supposed to say you didn't see anything

ocean quartz
#

Idk why the screenshot didn't work lmao

#

Playing runescape and this animal has some serious issues

#

There

steel heart
prisma wave
#
return placeholders.fold(this) { a, (k, v) -> a.replace("%$k%", v) }
#

๐Ÿ˜Œ

distant sun
#

nice

prisma wave
#

sadly java streams still don't have fold

lunar cypress
#

uh

#

reduce?

prisma wave
#

couldnt get that to work in the same way

#

how would you do that with reduce?

#

last time i tried (yesterday) i couldn't figure out what to use for the BinaryOperator

lunar cypress
#

I mean, reduce is a synonym to fold in this case

#
placeholders.entrySet().stream()
    .reduce(
      string, 
      (acc, entry) -> acc.replace('%' + entry.getKey() + '%', entry.getValue()),
      (l, r) -> l
    );```
#

should work

#

I'm not sure why they chose to use a BinaryOperator and not a BiFunction by default

prisma wave
#

Oh

#

Yeah I was looking for like an identity operator and couldn't find one so gave up / got bored

lunar cypress
#

No that doesn't exist

#

It couldn't exist

#

Thing is, that's just for parallel streams

#

So it'll never be used

prisma wave
#

oh

#

I see

prisma wave
ocean quartz
#

Weeb Mitten is back!!!

prisma wave
#

yes sir

#

Reporting for duty

#

we've got a new femboy profile picture

#

coffee made

#

It's coding time

ocean quartz
#

So since you're working on frontend now for dev den, does that make you a Weeb developer?

static zealot
#

hmmm

#

what's dev den?

prisma wave
static zealot
#

yeah. just found it

#

lmao

#

I was remembering something about it

prisma wave
static zealot
#

wait what frontend?

prisma wave
#

but backend is still web ig

#

So

static zealot
#

is it more than a discord server?

prisma wave
#

soon

#

Yes

static zealot
#

link?

native marsh
#

I totally didn't spend 2h debugging simple code (that was working) cuz the config wasn't showing up in my file manager >.> God damn there is no language in this world to make you feel as dumb as Java

static zealot
#

welcome to well developer life I guess.

native marsh
#

I coded before but like never had smth like this happen to me I had to reboot my laptop to see the files

#

but they were there? somehow

#

idk

static zealot
prisma wave
#

๐Ÿ˜Œ

old wyvern
#

๐Ÿ˜Œ

#

React?

#

Elm?

#

Vue?

prisma wave
#

๐Ÿ˜Œ

lunar cypress
#

Apache ๐Ÿคข

prisma wave
#

ITS NOT APACHE

#

I PROMISE

white arrow
#

๐Ÿค” How many mmorpgs inside MC are there

cinder flare
#

like, at least 2

white arrow
#

๐Ÿค” Well I am thinking of creating one.

obtuse gale
#

Thereโ€™s probably about 100 failed ones

old wyvern
#

mcmmo is the most popular

white arrow
obtuse gale
#

haha ill hold you to it

forest pecan
#

Lmao

white arrow
sweet cipher
rotund egret
#

Failing to try is failing to succeed

ocean quartz
#

Someone please shoot me

#

Why, gradle, why
(there is no way to detect if an extension is being used or not so i need this)

onyx loom
#

null ๐Ÿ’ฉ

white arrow
#

What does null do?

ocean quartz
#

Gives you pain

cinder flare
#

It really does

hallow crane
#

quantum immortality

prisma wave
#

null fans vs Nothing enjoyers

rotund egret
#

Optional users -> Sadness

cinder flare
#

Some | None gang

ocean quartz
#

@old wyvern Using pluginManager and shadow to shade ๐Ÿฅฒ

org.gradle.api.plugins.InvalidPluginException: Could not apply requested plugin [id: 'me.mattstudios.triumph', version: '0.2.0.1'] as it does not provide a plugin with id 'me.mattstudios.triumph'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).

I guess i'll have to contact myself

onyx loom
#

๐Ÿ˜‚

half harness
#

lol whats a good gui item that respresents lobby

#

can't think of anything

#

xD

old wyvern
#

Compass

obtuse gale
#

classic

half harness
#

isn't compass used for like navigating
idk what else to use ยฏ_(ใƒ„)_/ยฏ

obtuse gale
#

well, a hub is a navigation hub / central node

half harness
#

true

obtuse gale
#

you'd use idk a sword for pvp, a grass block for smp and idk whatever for minigames, a fishing rod lmao

#

and a compass for hub :))

half harness
#

pvp ๐Ÿคค

#

i recently upgraded the server to 1.16 though a few days ago so i probably won't be adding any pvp stuff tho

:p

obtuse gale
#

lol

forest pecan
#

Only SMP

#

Lol

winter iron
#

ok

#

so

#

listen up

#

I have multiple abstract classes each with their own data class for serializing it. I then implement the abstract classes as you do and end up with, when trying to deserialize back into a class, this shit

@Serializable
data class SerializableCraftableEquipment(
    val equipment: Equipment,
    val craftable: SerializableCraftable
) {
    companion object {
        fun fromJson(s: String): CraftableEquipment {
            val data = Json.decodeFromString<SerializableCraftableEquipment>(s)

            return CraftableEquipment(
                data.equipment,
                data.craftable.scrapCost,
                data.craftable.moneyCost,
                data.craftable.playerCountdownBukkitRunnable.uuid,
                data.craftable.playerCountdownBukkitRunnable.countdownBukkitRunnable.timeToComplete,
                data.craftable.playerCountdownBukkitRunnable.countdownBukkitRunnable.finished
            )
        }
    }
}
#

now, although the class names are a bit wild

#

is there a better way i can do this

#

basically

#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

winter iron
#

thats basically how i am doing it

#

it looks nice

#

but seems excessive

#

and i can't think if there is another way to do it much cleaner

distant sun
#

There's a thing called gson

#

And you can create adapters for certain classes

winter iron
#

ah i see

#

so it likes creates the dataclasses for you

#

?

distant sun
#

It turns your class into json and vice-versa

#
class Person(
  val name: String = "", // default values for an empty constructor
  val age: Int = 0
)```

```json
{
  "name": "name here",
  "age": age here
}```
winter iron
#

i think i have discovered magic

#

i might be able to just annotate the class i want to serialize :?

#

testing time

distant sun
#

Not necessarily

ocean quartz
# old wyvern ๐Ÿฅฒ

They both have the same gradle-plugins file in the meta-inf, legit don't know why it doesn't work .-.

ocean quartz
#

I found the fucken issue

#

It's publishing a .module file, which for some reason breaks gradle

#

Once the file is deleted it works perfectly fine

old wyvern
#

Ohh ๐Ÿ’€

rotund egret
half harness
#

With SlimJar.... is it normal that it takes like 10 seconds each server start to load the same libraries?

forest pecan
#

how many libraries do you have

half harness
#

4

forest pecan
#

i got 15 and it takes around 5 seconds

#

only 4??

ocean quartz
#

Which libs?

half harness
#

nvm then i guess

half harness
# ocean quartz Which libs?
    slim 'net.dv8tion:JDA:4.3.0_280'
    slim 'org.codehaus.groovy:groovy-jsr223:3.0.8'
    slim ('io.github.dkim19375:dkim19375jdautils:2.8.10') {
        exclude group: 'org.jetbrains.kotlin'
        exclude group: 'org.jetbrains.kotlinx'
    }
    slim 'org.jetbrains.kotlin:kotlin-reflect:1.5.10'
forest pecan
#

You know, how jars are loaded is that every single class must also too

#

be loaded

half harness
#

yea i just realized

forest pecan
#

well let me rephrase that

#

that isnt actually entirely true

#

with the every single class being loaded

obtuse gale
#

that is not true at all lol

forest pecan
#

however, it is a recursive fashion i heard

half harness
#

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

forest pecan
#

it is loaded for whatever classes rely on it

#

its not all class being loaded at once obviously

#

from what i heard, classloading is recursive

obtuse gale
#

i was actually reading the language spec on class loading the other day

#

very interesting

forest pecan
#

or something weird

#

that needs every class loaded or smthin

#

idk

forest pecan
#

thats quite a ton of steps

half harness
#

YESSS

#

I FINALLY GOT AN EVAL COMMAND IN MY BOT XD_ _ _ _ _ _ _ _ _ _ _ _

why did i spend like 15 hours on this thing

#

well technically it's not my bot

forest pecan
#

๐Ÿฅค

half harness
#

f

forest pecan
#

no pay?

half harness
#

i keep forgetting

#

i dont have nitro

obtuse gale
#

thank god ๐Ÿ™

half harness
forest pecan
#

you know, you should really find a server with pay lol

half harness
#

lol

ocean quartz
forest pecan
#

^

half harness
#

idk ๐Ÿ˜ฉ

#

i like coding

#

i wanted a server

#

so that my skills have a use

forest pecan
#

like dkim ngl even though your coding sometimes is bad but like its decent

half harness
#

-_-

forest pecan
#

ngl mine is trash

half harness
#

wat

forest pecan
#

but you should find a server with pay

#

lol

half harness
#

well

#

this is how the dms went

#

lol

#

haven't spoken in 3 months

#

aaaaaaaaand then it went like this

#

hey at least i've got admin permissions :))

obtuse gale
#

if youre working for free

#

mineswell make your own server

half harness
#

no i dont want to go through all that

#

i don't enjoy managing servers anymore

#

i like to code

#

not configure

obtuse gale
#

just make someone else

#

ez

half harness
#

that's what im doing

obtuse gale
#

you handle coding and have owner

half harness
#

im the only developer

obtuse gale
#

hm it would be cool to be the owner and only dev, then have a manager that does the shit you dont want to

half harness
#

although my rank is with the helper rank ๐Ÿ˜”

obtuse gale
#

lol there on the same level?

half harness
#

it's like this:

#
Moderator
Me
Bot that i made
Helper
#

not on the same

#

but right next to each other

obtuse gale
#

lol wtf

#

since when was developer below any staff ranks

half harness
#

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

obtuse gale
#

other than managers

half harness
#

then theres the bot

#

lol

obtuse gale
#

on mmc jr dev was like right below owner and developer LOL, but now its like admin level

half harness
#

jr dev ๐Ÿ‘€

obtuse gale
#

idk developer needs access to shit

half harness
obtuse gale
#

jesus you can literally give yourself owner LOL

#

as long as your opped its gg

half harness
#

well not on the discord server

#

on the mc server yea

#

XD

obtuse gale
#

ye whatever on disc

half harness
#

oh and one time in the vc

#

one guy was like "dkim can you give me a bunch of enchanted gapples"
then the owner was like "why not ask me? dkim doesn't have any perms"
Me: oh I can give myself perms

#

also they didn't ask the owner because of this little joke

#

from about 4 months ago

#

anyways

#

i finally got eval command ๐Ÿ˜Ž

#

with groovy

#

graalvm was too painful lol

old wyvern
#

It shouldnt take too long after the first startup

#

Depends mostly on the size of your library

half harness
half harness
cinder flare
#

probably checks hashes

half harness
#

oh

old wyvern
#

Downloads required checksums, compares the checksum between the file and the one from the repo.
On loading relocated files, loads up attributes saved earlier and compares any updates for change in relocations and such.

#

If anything fails, deletes them and redownloads the failed ones and retries

half harness
#

ic

#

ty :D

#

slimjar ftw

old wyvern
#

lol

obtuse gale
ocean quartz
obtuse gale
#

extra hyper bold font

ocean quartz
#

yasss

half harness
#

image not loading

#

._.

#

oooo big font

also how do u have better colors?

#

mine is just green and white ๐Ÿ˜ฉ

#

also ur background looks cooler too ๐Ÿ‘€

ocean quartz
#

Ayy awesome, very little information needed and the plugin will fill everything else ๐Ÿคค

half harness
#

what how does it fill in the name

obtuse gale
#

that yml color scheme just looks like the default for atom one dark though lol

obtuse gale
#

lol

ocean quartz
half harness
#

o

#

anyways gtg

#

cyaaaa

ocean quartz
#

As simple as this

half harness
#

no the name

#

where does it get the name

obtuse gale
#

Amazon Web Services

half harness
#

epic

ocean quartz
#

Oh you had main there before

#

Name is simple project.name

half harness
#

ya

#

mistyped

half harness
#

h

#

thats cool

frail glade
ocean quartz
#

Lmao

obtuse gale
#

lol

#

thonking github drunk?

ocean quartz
#

Ayy perfect, exactly like the wiki example

sweet cipher
#

Actually the wiki example is like yours

ocean quartz
#

๐Ÿ˜Œ

glossy pendant
#

Hello everyone I have a problem coming up.. In general, I have furniture on the server, it stands on armor stands. The problem is that they disappear. Not all. Only part of it. And not immediately, but after a while.
There are no plugins for cleaning up.

#

Everything is fine on my other server. Although the plugin is the same.

#

ArmorStand part = (ArmorStand)Loc.getWorld().spawn(Loc, ArmorStand.class);
part.setVisible(false);
part.setHelmet(new ItemStack(Material.IRON_AXE, 1, (short)(AnomalyConfig.DurabilityHitGravi)));
new Anomaly(Type, Hit, Loc, true, false, part);

hot hull
#

Make the stands unbreakable

glossy pendant
#

Players can't break them. It's like they're being cleared off the map

potent nest
#

Armor Stands aren't just removed by the game

unkempt tangle
distant sun
#

is there any way I can add a folder to my iij project that for example is on another disk, so I can view its content?
I have a test server for some of my plugins and would be amazing to be able to have the server folder on each project

quiet depot
#

symlink

distant sun
#

ic

#

you mf, thanks @quiet depot

native marsh
#

so like in java (if it's as c# is) you create a class ans it's gonna be loaded without having necessarily to refer it... right?

#

oh romanian

#

:)

steel heart
#

My favorite programming language is node js ๐Ÿ™‚

old wyvern
native marsh
#

@steel heart hmm r u mocking me?

native marsh
native marsh
#

I'ma be back

steel heart
#

I am just stating my objectively true opinion

native marsh
#

there fixed ehat I said

#

to make sense

old wyvern
#

You either use them in place or use Class.forName

static zealot
#

btw guys u want to ruin hundred of thousands of people's life? I know the perfect way to do it

#

and totally legal. I think

old wyvern
#
class A {
  static {
    System.out.println("A was loaded");
  }
}

public class B {
  static {
    System.out.println("B was loaded");
  }
  public static void main(String[] args) {
      A a;
  }
}
#

The output would be

B was loaded
A was loaded
#

A is loaded on reaching its reference in psvm

static zealot
#

captchas.

#

and I'm not talking about adding them to your website

#

I'm talking about ruining them.

old wyvern
#

How nice.

steel heart
#

๐Ÿ˜”

static zealot
#

most captchas (when they add a new type of image/search term/whatever), they trust the people will do what's right and tell the AI which one is a truck for example. and after a few thousand of people agree, it just takes the image and believes them. Soooo... all you gotta do is take a few thousands of your friends, wait for a new captcha item to show up and spam the wrong images as being correct

#

the AI will believe you and at least for the next few days it will ruin a lot of people's life.

#

until someone sees what's happening and they will either take down the AI or teach it what's wrong and what's not

sly sonnet
#

What if you don't have any friends?

old wyvern
#

a few thousands of your friends What

static zealot
#

exists*

winter iron
#

@static zealot why are you tryna destroy communities instead of building them up? Midlife crisis?

old wyvern
#

Isnt there like a law like where a person can atmost actually know around 300-400 people in their lifetime?

static zealot
winter iron
#

+1

static zealot
old wyvern
#

Im pretty sure there was, it was in one of VSauce's videos

#

No, you forget people when you know too many

sly sonnet
#

it probably applies to usa

static zealot
#

its not a written law wxip.

half harness
old wyvern
#

lol

static zealot
#

its just how our brain works

sly sonnet
#

i'm pretty sure that here in european union we don't have something like that

old wyvern
#

idk, saw it a while back

static zealot
winter iron
#

Capped out on the brain capacity

old wyvern
#

back when he actually used to actively upload ๐Ÿฅฒ

static zealot
#

imagine my brain rn thinks my brain is actually good

half harness
#

what are some other user stats ๐Ÿค”

#

can't think of anything

sly sonnet
winter iron
#

date joined

half harness
#

ah

#

good idea

winter iron
#

time lapsed

#

message count

static zealot
sly sonnet
static zealot
#

card number

#

card pin

half harness
sly sonnet
#

home address

half harness
#

lol what if i put ip address on there

static zealot
#

those all should be public information

winter iron
half harness
#

wait

#

how do i get playtime

winter iron
#

expiry date

static zealot
half harness
old wyvern
#

death date

winter iron
#

true

half harness
#

theres like 5 players at all time on the server

#

soooo

sly sonnet
#

making ip's public is a fucking sin

winter iron
#

people are way to protective over their ip nowadays

static zealot
#

there are people that actually think IP addresses should be public information... they never got DDOSed lmao

quiet depot
#

yes the 300-400 thing is a real thing

winter iron
#

just because idiots abuse it

#

๐Ÿ˜ฆ

static zealot
half harness
#

what if i ddos dos localhost

old wyvern
static zealot
#

firmly believe that

quiet depot
#

but 300-400 is a bit high

#

thought it was like 100

old wyvern
#

Do you remember which video he said it in?

quiet depot
#

no

old wyvern
#

rip

quiet depot
#

would be vsauce or veritasium

old wyvern
#

xD

quiet depot
#

i assume

old wyvern
#

I think it was Vsauce

half harness
#

help i can't decide if it should be Date Joined or Date joined

#

lol

old wyvern
#

I only started seeing veratasium like a month or two ago

quiet depot
#

smh

#

not even an og fan

static zealot
#

when I was younger I used to play on smaller minecraft servers (made by even younger people than me) and I can't even count how many times I've got ddosed by them. even tho they were small ones and lasted for seconds it happened

old wyvern
#

I've been watching just VSauce for the most time

old wyvern
quiet depot
#

i only ever got ddosed once

#

clicked an ip tracker

old wyvern
#

Does jni break with relocation? ๐Ÿฅด

quiet depot
#

no clue

half harness
#

no clue

old wyvern
#

Relocated j2v8 and this started happening

quiet depot
#

you don't need to relocate anything

#

papi expansions don't need relocation

#

they're isolated

old wyvern
#

Im loading it into the plugin classloader

quiet depot
#

oh

#

hehe

old wyvern
#

xD

quiet depot
#

if you need to modify papi to make this work, feel free to

#

just open a pr

old wyvern
#

Alrighty, also, theres an issue with papi where the getResource in a expansion returns resources from the papi jar

quiet depot
#

ah yes

old wyvern
#

Is this intended?

quiet depot
#

no

old wyvern
#

ah

quiet depot
#

but it makes sense

#

papi class loader is a parent to every expansion class loader

old wyvern
#

Shouldnt a URLClassLoader still search the urls for resources?

quiet depot
#

i might have misunderstood

#

what getresource method

old wyvern
#

Class#getResource or Classloader#getResource

#

and their stream variants

#

But I think you get the point

quiet depot
#

ye erm it should check the expansion jar first

#

idk

old wyvern
#

it seems to be only checking in papi atm for some reason

#

For eg: I have a header.txt file in jsexp jar, but it doesnt fetch it, have to manually get code source and extract it

quiet depot
#

well that's a bit weird because I purposely switched it to the current system a while ago, just to use resources in the expansion jars

#

previously it wasn't possible

old wyvern
#

Im on the latest papi jar from spigot

quiet depot
#

i'll have a quick look at the code but I can't do any testing atm

old wyvern
#

alrighty

quiet depot
#

don't see any reasno why that would happen

static zealot
#

something's wrong. I can feel it. Only 10-40 fps

#

this is so strange. still using the graphics card over cpu but I'm back at how I Was before. even worse sometimes. My cpu and ram is doing just fine according to my system monitor

#

and I have less fps with browser closed than I used to have with it opened

old wyvern
#

getClassLoader here returns the correct URLClassLoader thats a child of papi's PluginClassLoader

winged mica
#

Is there a way to fix 'repositories' cannot be applied to '(groovy.lang.Closure)' on IntelliJ? It is very annoying

prisma wave
#

not really

#

Just disable the warning or use gradle kts

half harness
#

usually fixes it

#

either that or invalidate cache & restart

#

or use kts

winged mica
half harness
#

show build.gradle

#

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

#

if invalidate cache doesn't work then reloading gradle won't work

winged mica
#

so have I to migrate to kts?

old wyvern
#

Migrate to Elara Build Tool

#

Ez

static zealot
#

look what they did to my boy PiggyPiglet #showcase ๐Ÿ˜ข

old wyvern
#

xD

static zealot
#

but at least we got a face reveal

half harness
#

Pog

#

i need help

compact perchBOT
#

There is no time to wait! Ask your question @half harness!

half harness
#

im deciding if i should use plugman since i want to update my plugin in a server with players in it

#

since there's almost never 0 players until night

static zealot
#

๐Ÿฅฒ

half harness
#

D:

#

i already have plugman installed

#

from last night

static zealot
#

daily resets smh

half harness
#

i do

#

at night

#

since no one's online

#

wait how do big servers do it then

#

since its like always online

static zealot
#

nah

half harness
#

oh they probably cycle the server restarts

#

so certain amount of servers are always online

static zealot
#

they probably have multiple servers for each minigame and do it one at a time or something

#

or in batches

half harness
#

yea

#

the server i dev for doesn't D:

static zealot
#

and they just move the players to another open server

half harness
#

which is why im debating to use plugman

static zealot
#

well. you can use it. bcz then an error will pop up, a plugin will break and you'll have to restart anyways xD

half harness
#
pros:
+ no restart and no mad people
cons:
- plugin might break and uh.. that won't go well
half harness
#

but

#

i didn't really want to restart

old wyvern
#

You can easily setup your own proper reloadable system separate from bukkit if you really wanted to

half harness
#

also thanks to slimjar ๐Ÿฅฐ my 50mb plugin doesn't take 3 minutes to build and upload to the server

half harness
old wyvern
#

Yes you would have to

half harness
#

O

#

uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

#

so like intellij debug but not in the same machine

#

I think im too nooby for that

half harness
old wyvern
#

You can have a isolated classloader that gc's before loading the next one

half harness
old wyvern
#

๐Ÿ˜Œ

half harness
#

how hard is it from a rating of hard to harder

old wyvern
#

I dont think its too hard

half harness
#

๐Ÿคจ

#

i don't even know what isolated classloaders are ๐Ÿฅฒ

old wyvern
#

You literally just need to remove the reference to the classloader and throw in a gc hint for it to unload everything

prisma wave
old wyvern
half harness
#

uhhh

old wyvern
#

You cant access classes from the current classloader through it

#

Ideally the parent of that classloader would be the parent of the system classloader

half harness
#

uhhhhhhhhhhhh

old wyvern
#

Ok, ill stop before you get a seizure

#

๐Ÿฅฒ

prisma wave
#

๐Ÿ˜Œ

half harness
#

๐Ÿ˜–

prisma wave
#

Imagine having classes to load

half harness
#

Imagine not

old wyvern
#

bm, any idea if jni is supposed to break with relocations?

prisma wave
#

no idea but seems like it probably would

old wyvern
#

ah rip

#

wtf xD

prisma wave
#

๐Ÿคจ

old wyvern
#

getRuntimeSarcastically

winter iron
#

so it doesnt get it?

static zealot
#

does newer versions of bungee or waterfall require java 16?

obtuse gale
#

Probably not

jovial warren
#

does the compiler just know that it will eventually return since it's a while (true) loop or something?

#

I don't actually get how Java allows that

#

it is a function that does actually return things

#

Function<DynamicOps<?>, Function<Pair<String, Pair<Either<OldEntityTree, Unit>, Entity>>, Pair<String, Either<List<NewEntityTree>, Unit>, Entity>>>> is the type of the function btw ๐Ÿฅฒ

old wyvern
jovial warren
#

ah right

#

now, the million dollar question, Kotlin doesn't allow that, since it sees a while (true) as something that returns Unit, any ideas what I can do here?

#

a.k.a how can I translate that into Kotlin?

old wyvern
#

break and return after

jovial warren
#

I could just put optional.get() at the end, since ik I'll never get there anyway, and that satisfies the return

#

wait wtf

#

Kotlin says it's unreachable code, but if I remove it, it complains about being the wrong type

old wyvern
#

What change did you make?

jovial warren
#

just added optional.get() outside the loop to satisfy the return

#
// We will never get here anyway, since the loop never breaks, it only returns, but the compiler isn't smart
// enough to figure that out apparently, but it knows that this code is unreachable :thonking:
optional.get()
```I think that'll do it
old wyvern
#

hmm

static zealot
#

@prisma wave

prisma wave
#

๐Ÿ˜Œ

jovial warren
#

what is it with people going "oh hey, I can't post images in this channel, let's just go to some completely unrelated channel that allows images and post the images there"

static zealot
#

he doesn't understand english at all. we've tried to make them use google translate but instead he decided to spam the channels

#

so I had to mute him

obtuse gale
#

Lmao

old wyvern
#

ะ’ะพ-ะฟะตั€ะฒั‹ั…, ะฒั‹ ั€ะฐะทะผะตัั‚ะธะปะธ ัั‚ะพ ะฒ ะฒะธั‚ั€ะธะฝะต. ะ ะดะปั ัะบั€ะธะฝัˆะพั‚ะฐ ะฒั‹ ั€ะฐะทะผะตัั‚ะธะปะธ ั€ะฐะทะผั‹ั‚ะพะต ะผะฐะปะตะฝัŒะบะพะต ะธะทะพะฑั€ะฐะถะตะฝะธะต ะฒัะตะณะพ ะฒะฐัˆะตะณะพ ะฝะพัƒั‚ะฑัƒะบะฐ.

static zealot
#

I mean... He probably did understand something, bcz I asked him to use it and first time he replied with use that bastard yourself (this being google translated)

#

but then deleted and said he doesn't know what I Mean

#

again in russian

prisma wave
# old wyvern ะ’ะพ-ะฟะตั€ะฒั‹ั…, ะฒั‹ ั€ะฐะทะผะตัั‚ะธะปะธ ัั‚ะพ ะฒ ะฒะธั‚ั€ะธะฝะต. ะ ะดะปั ัะบั€ะธะฝัˆะพั‚ะฐ ะฒั‹ ั€ะฐะทะผะตัั‚ะธะปะธ ั€ะฐะทะผั‹ั‚ะพะต ะผ...

K I'm sorry I had to send this to you but now that you have opened it you can't stopped reading this. Hi my name is Teresa Fidlago I died 27 years. If you don't send this to 20 people I will sleep by your side forever. If you don't believe me search me up. Teresa Fidlago. So send this to 20 people. A girl ignored this and her mom died 20 days later. NO SEND BACKS!!!! #copied. Sorry I had to send this. Btw this is not fake search her up on google. Someone send me this and i had to do the same, iโ€™m taking no risk of ignoring this message tell me why this keeps happening. another grandma read this and sent it to 20 people but the internet went of on 19. She was found cut into 5 pieces after 1 day. Make sure you send all 20

Help!!!!!! PLZ what is this plz im sorry if this is bad frowning

obtuse gale
#

"support"

prisma wave
#

development general

static zealot
#

in github is there a way to view a project or even a class at some point in time (after a specific commit I mean)

half harness
#

wdym?

static zealot
#

basically have a snapshot of the project before x commits

#

or something

hot hull
#

You can go check commit history

half harness
#

^

static zealot
#

yeah. that's what I'm doing but I'm not sure if the commit I am at is the latest I've made a change in (to this line).

frail glade
#

If you click that, you can browse the project in entirety from that commit's standpoint.

static zealot
#

oh

#

damn. ty

civic bridge
#

hello

#

not working player_name deluxemenu

half harness
#

wrong channel

static zealot
#

alr. so what I did is, I've updated a branch and then merged from the main branch and some lines took over. I Just wanted to see when this happened

prisma wave
dusk holly
#

Hello everyone, I would like to announce that I am not interested in 1.17.
Thank you and have a nice day

static zealot
#

oh boy @hot hull u ever saw this?

#

these are the first messages from Glare I Think

hot hull
#

Ban him.

static zealot
#

I can only remove him as my friend I'm afraid. b

#

but he has repented so maybe he doesn't need to be banned

frail glade
#

Skript ๐Ÿคข

static zealot
#

XD

#

that's your first message. smh

#

I'm so fucking confused. Why every time I Download something directly from discord, it goes in /tmp

#

??

#

I don't even get to move it

#

is there some way I can change the download path?

half harness
#

lol

#

rip

static zealot
#

this is so trash. Every time I have to open the browser and put the link in there. Or if its a file, then I have to open and go to the channel and download from there

half harness
#

aww slimjar doesn't work with plugman

#

lol

ocean quartz
#

Good

#

As it should

#

We all should add a check to our plugins to disable if plugman is on

winter iron
#

Make a maven repo with a single check to disable if plugman is being used and call it "fuck-plugman" v0

steel heart
#

should I go with hocon, toml or yaml?

half harness
#

if it's a spigot plugin then yaml since most server owners have never heard of the others fingerguns

ocean quartz
#

I like hocon

steel heart
#

hmm yeah me too

ocean quartz
#

I think it's what sponge, etc use

steel heart
#

ooo

obtuse gale
#

Hocon is nice

steel heart
#

dkim yeah I mean another benefit is that yaml flow style is basically json with comments

ocean quartz
#

Hocon is like organized and readable yml/json

steel heart
#

๐Ÿฅฒ

obtuse gale
#

Hocon is json but user friendly lol

#

And with comments

ocean quartz
#

Yeah

steel heart
#

oh but it isnt a superset of json right

obtuse gale
#

No it's not

steel heart
#

aighty poggy emily

distant sun
#

Any idea if is possible to split a long string on yml with |- and still allow unicoded characters? You usually need to use double quotes for unicoded characters to be rendered but that will make the string annoying to write

obtuse gale
#

what

distant sun
#

you can use |- to write a string on multiple lines and then these will be joined with \n into a single line

#
key: |-
  line 1
  line 2
  line 3```
Will be come `line 1\nline 2\nline 3`
steel heart
#

oh yeah

#

have you tried?

distant sun
#

That's what I use but unicoded chracters (eg \uA000) aren't being parsed

#

but found a workaround

steel heart
#

๐Ÿ˜ฎ

distant sun
#
key: "\
  line 1\n\
  line 2\n\
  line 3\
"```
steel heart
#

oh jesus

#

hmm have u tried >

distant sun
#

yeah but I need the lines to be joined with \n and is the equivalent of using single quotes

steel heart
#

oh nvm

#

Looks like something yaml as of now doesnt support

obtuse gale
#

"as of now" lol

steel heart
#

Yeah was just reading through the yaml syntax docs

obtuse gale
#

@prisma wave

#

Ooooh I know

steel heart
#

Ooooh you know

obtuse gale
steel heart
#

Ah nice having to use forge now

obtuse gale
#

You have my condolences

prisma wave
obtuse gale
#

Lmao

steel heart
#

We all love forge

ocean quartz
#

forge is a nightmare

hazy widget
steel heart
#

Looks enormously sus

ocean quartz
#

It is not

half harness
#

๐Ÿ˜Œ

steel heart
#

Bruh forge crashed IntelliJ twice now

half harness
#

lol

steel heart
#

No not funny

#

I hate forge

#

Fucking indexing 40 mins and then decides to crash

half harness
#

not lol*

ocean quartz
jovial warren
#

man, I'm actually dying of DFUitis at this point, I swear

frigid burrow
#

I need help plsss

#

My mic is working whenever i test it out in discord but whenever im in a call it doesnt work unless i use push to talk

#

doesnt work as in theres no audio at all

jovial warren
#

tried making sure you have voice activity enabled in settings?

frigid burrow
#

yes voice activity doesnt work for me only push to talk does

jovial warren
#

or tried turning down the voice activity range?

#

the sensitivity, that's the one

frigid burrow
#

yessssss thx

#

it worked

jovial warren
#

yw

jovial warren
#

try using the data fixer upper

#

imagine a decently big, decently complex library with a README that has 3 lines that explain how it works and very scarce comments

ocean quartz
#

Well that's not an API

jovial warren
#

it's a library, close enough lol

obtuse gale
#

the real challenge is trying to stay in there lol

prisma wave
#

imagine a library with functors ๐Ÿ˜Œ

obtuse gale
#

@prisma wave

#

you know how you said that in Java, an Optional is technically a monad, right?

ocean quartz
prisma wave
#

yes

obtuse gale
#

what about Stream?

#

or CompletionStage?

ocean quartz
#

Does that mean Java > Haskell?

prisma wave
#

i think both of those are too

#

maybe CompletableFuture instead of CompletionStage

#

because you need to be able to turn an a into an m<a>

obtuse gale
#

yeah

prisma wave
old wyvern
prisma wave
#

^

obtuse gale
#

lol

old wyvern
#

No proper Monad interface possible

#

Shame

prisma wave
#

sad

#

weak goofy ass type system

ocean quartz
#

Also randomly found this

interface Monad<C<_>>: Functor<C> { //Invalid Kotlin code
    fun <A, B> flatMap(ca:C<A>, fm:(A) -> C<B>): C<B>
}
#

Kotlin bad

prisma wave
#

kotlin bad

jovial warren
#

C<_> thonking

old wyvern
#

kotlin bad

#

Scala better

#

Haskell Best

prisma wave
#

๐Ÿ˜Œ

jovial warren
#

ofc that doesn't work, since _ is reserved, and tf is <_>

#

how did you expect that to work

old wyvern
jovial warren
#

I'm curious how you expected that to work Matt

#

like what about that not working confuses you

prisma wave
#

๐Ÿ˜Œ

#

randomly found this

old wyvern
#

๐Ÿ˜Œ

jovial warren
#

that wouldn't work in Java either

cinder flare
#

It's probably like a name convention in Haskell

jovial warren
#

probably lol

old wyvern
#

Nope

#

lol

prisma wave
#

nope

#

it's probably demonstrating that type classes aren't possible

obtuse gale
#

what is a type class exactly?

prisma wave
#

similar to a trait

obtuse gale
#

read a few things already but can't really understand ๐Ÿฅฒ

prisma wave
#

basically an interface but more powerful

#

and all of the interface's methods are static

obtuse gale
#

uh

neat obsidian
#

Hey, How can I check if a user on the spigot forums exists with the api ?

obtuse gale
ocean quartz
prisma wave
boreal needle
#

i cant get that username i was going for :(

#

back to the drawing board

static zealot
#

o sad_fingerguns

#

what was it btw?

boreal needle
#

lucylulu

ocean quartz
#

What about lucylu?

boreal needle
#

which now i think about it sounds a bit ehh

boreal needle
ocean quartz
#

Sadge

static zealot
#

lulucy

boreal needle
#

nah that's weird

ocean quartz
#

Lucci

static zealot
#

xD

#

just double the C

#

luccyy

#

xD

ocean quartz
#

Ah I guess in english the cc would have a k sound, was going based on italian

static zealot
#

ugh really?

ocean quartz
#

I think so yeah

#

Cuz, for example thicc

boreal needle
#

i wanna avoid double letters if possible

static zealot
#

well to be honest english ain't my first language. I know 0 things about spelling and pronunciation

boreal needle
#

it depends on the context really

static zealot
#

ugh but yeah

#

access

ocean quartz
#

English spelling and pronunciation are very close enemies

static zealot
#

accept

#

I guess he's right

boreal needle
#

ahh why does this have to be so difficult

ocean quartz
#

Naming is awful ๐Ÿ˜ฉ

boreal needle
#

i just want a cute username

#

is it really too much to ask ;-;

ocean quartz
#

Lulie

static zealot
#

not really. if you don't care about it

#

that's how mine showed up

#

xD

#

Blitz, bcz I thought its a cool word, Gamer bcz for some reason I really thought I'm a gamer and 88 bcz I like 8

#

but now its moving towards BlitzOffline

#

bcz I'm not really a gamer

#

and I'm always offline

#

xD

cinder flare
#

like Italian kinda

static zealot
#

ugh

ocean quartz
#

Yeah my idea was to sound similar to cc from cappuccino

cinder flare
#

yea yea

#

like Lucky Lucciano

static zealot
#

oh lmao. I Forgot about google translate's text2speech system

cinder flare
#

oh he only had one c

static zealot
#

also apparently Looci is already an italian name

#

xD

ocean quartz
#

In a different subject, this is looking great ๐Ÿ˜Œ

boreal needle
#

nice

#

but

#

i still have no username

static zealot
#

does it really need to have something to do with lucy ?

cinder flare
#

yeah what else do you like

#

I liked Stars

#

still do

ocean quartz
#

LucyStar

cinder flare
#

Stucy

static zealot
#

omg

#

that's a great name

forest pecan
#

Pucy

#

Lmao

static zealot
static zealot
steel heart
distant sun
#

meh

static zealot
#

did you guys know that deluxemenus, deluxetags and ezrp have an API?

steel heart
#

DeluxeMenus API

#

Since when

sly sonnet
static zealot
#

well its old. but its on clip's public repo

steel heart
#

Ah man

static zealot
ocean quartz
static zealot
#

deluxetags api tho is up to date

#

or at least very close to being up to date

#

deluxemenus api tho is 1.10.4 xD

#

Soooo... yeah very old

#

like 1.8.8 old

steel heart
#

Oh yeah or do like gradle with JavaVersion which is just a delegated constant to a string

ocean quartz
#

Possible

steel heart
#

Also why do stuff use off heap memory like netty for instance

ocean quartz
#

I guess this could work

steel heart
#

๐Ÿ˜๐Ÿ˜

ocean quartz
#

That's all i'll add though

steel heart
#

Yeah good good good

#

Mostly happy 1.7 didnโ€™t get one

obtuse gale
#

because you can't fingerguns

#

legally

steel heart
#

Even more pog

obtuse gale
#

I wouldn't consider 1.16.5 old shit until mojang releases 1.17.3 though or paper 1.17+ is considered stable

#

but yeah xD

steel heart
obtuse gale
#

lol

sweet cipher
#

Is there any good websites to design a website? I just want to be able to look at something for html.

steel heart
#

Codepen got some dope stuff, wordpress is also nice

sweet cipher
#

I don't want to write html at first, I just want to design the website

ocean quartz
#

๐Ÿ‘€

#

I love gradle kts

onyx loom
#

i need this

#

is this ur triumph gradle plugin?

ocean quartz
#

Yeah, should be releasing as soon as i figure this gradle stuff

onyx loom
#

pog

#

i actually wanna use this

steel heart
#

Groovy is more pog just stating the obvious

onyx loom
#

how would this even look in groovy?

ocean quartz
#

Tbh idk if it works or not in groovy, i haven't tested

prisma wave
prisma wave
ocean quartz
#

Classic groovy

forest pecan
#

What even is the warning saying

#

Lmao

onyx loom
#

Cannot Apply 'String'to 'Object'

#

probably

forest pecan
#

Actually?

#

Lol

ocean quartz
old wyvern
#

๐Ÿ˜Œ

distant sun
#

why is it so shitty smh

old wyvern
#

Elara Build Tool wont have this issue

cinder flare
#

groovy, more like poopy

ocean quartz
#

Yeah, shit doesn't work on Groovy lmao

#

Very nice groovy

No signature of method: build_coh40im117nvcgl869idipx6e.bukkit() is applicable for argument types: (build_coh40im117nvcgl869idipx6e$_run_closure4)

obtuse gale
#

duh

ocean quartz
#

Yeah.. this will be kts only lmao

obtuse gale
#

just make it work for build_coh40im117nvcgl869idipx6e

#

please ๐Ÿ˜ฉ

distant sun
#

Looks like C(PP) errors lol

steel heart
ocean quartz
#

@onyx loom Apologies, i have no idea how to make this work on groovy ๐Ÿ˜ข

steel heart
#

๐Ÿ˜ก

old wyvern
#

There was something about that in the gradle docs

ocean quartz
#

Let me try doing this without extension

#

Well the commands would still be broken because groovy gradle requires a closure while kotlin works with () -> Unit

ocean quartz
#

Sounds like it'd be a lot of trouble to support both ๐Ÿ˜ฉ

old wyvern
#

๐Ÿ˜ฉ

ocean quartz
#

Aight before publishing i need to figure out what is making that .module file

old wyvern
#

publish task makes that by default right?

ocean quartz
#

Does it?

#

Hmm i wonder if it doesn't matter when publishing to gradle portal

old wyvern
old wyvern
#

publishing to local with publishPlugins should have the same result I assume

ocean quartz
onyx loom
ocean quartz
#

๐Ÿ˜ฎ

old wyvern
#

๐Ÿ˜ฌ

#

is this plugin on git mat?

ocean quartz
#

Yeah

#

I changed to build.gradle a bit compared to SlimJar, so trying to get that back together now

ocean quartz
#

@old wyvern Fixed!

withType<GenerateModuleMetadata> {
    enabled = false
}
#

@onyx loom id("me.mattstudios.triumph") version "0.2.0" ๐Ÿ˜Œ

old wyvern
#

๐Ÿ˜ฎ

halcyon flame
#

Hey guys. I really want to learn java and get into making my own plugins. Anyone know any good YouTube series or anything that will help me learn it?

onyx loom
#

?learn-java

compact perchBOT
#
FAQ Answer:

Online Courses:
Online courses are also great for learning java. Some websites that offer them are:

  • Coursera - Free unless you want a certificate
  • PluralSight - Great courses from what I've seen. Mostly Paid
  • Udemy - Never used them myself but they seem to all or at least most be paid.
    My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.

Oracle Docs:
Oracle docs can help a lot at learning and understanding java:

  • Start with this,
  • Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
  • Hit this.
    They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
    That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Other services:
Some other cool services that will help you learn java are:

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

onyx loom
#

there are some good resources here that u should definitely check out

steel heart
halcyon flame
#

Ok

#

Iโ€™ll start learning!

#

Thanks

obtuse gale
#

I want to build a warehouse for each UUID, how do I make it? Please let me know if you like.

lusty flicker
#

Hey I do not know where to ask this. I want to offer my services to a guy from #849215410560827432. When I send him/her a message Discord tells me Your message could not be delivered. This is usually because you don't share a server with the recipient or the recipient is only accepting direct messages from friends. what can I do in this case?

errant geyser
dense dew
#

or send him friend request fingerguns he will probably accept

jovial warren
# ocean quartz ๐Ÿ‘€

I swear you could just have those 3 functions configure a compileOnly configuration and omit the compileOnly there as well

#

and I'm like 99% sure you know how to do that, since you've done it in SJ

prisma wave
#

slim bad

jovial warren
#

at least it actually works properly on Java 16

jovial warren
#

is it just me or is var6[1].substring(0, var6[1].length() - 1) totally redundant

lunar cypress
#

how so

jovial warren
#

wait a minute, is that end index exclusive or inclusive?

lunar cypress
#

exclusive

jovial warren
#

ah right, that's what it is then

ocean quartz
prisma wave
#

pdm(paper("1.7.10")) ๐Ÿ˜Œ

ocean quartz
#

Yeah ^ for example sometime you want to SlimJar it ๐Ÿ˜Œ

round relic
#

right itโ€™s been almost a day since purchase of deluxe chat and I still donโ€™t have #deluxechat

#

whatโ€™s up with this

round relic
#

yep

ocean quartz
#

You can access it already

distant sun
#

Hope you dont limit paper() to a version enum @ocean quartz

onyx loom
#

can i get my 1.8 spigot dependency with this? ๐Ÿ˜

ocean quartz