#dev-general

1 messages · Page 188 of 1

old wyvern
#

ah

surreal quarry
#

hes not using kotlin so ? doesn't really change anything

static zealot
#

yeah that's why I said if that makes a difference.

surreal quarry
#

ah ok

old wyvern
#

Peeps

#

I can confirm

#

it only fails for anything more than 1 args

static zealot
#

also you're talking to me like I'm so kind of developer xD. I'm just trying to look smart :))

old wyvern
#

Not specific to any type

static zealot
#

well its weird bcz for me it doesn't Yugi

surreal quarry
#

yea ive used it with multiple args before

old wyvern
#

I have too with earlier versions

surreal quarry
#

do you do anything weird when you setup the commandmanager or whatever its called?

old wyvern
#

Nothing at all

static zealot
#

do you use String[] by any chance? in your default? even tho idk if that would be it

old wyvern
#

Nope

ocean quartz
#

Imma help you in just a sec, let me finish this match xD

old wyvern
#

Alrighty xD

#

Ah found the issue

#

Should have remembered

#

It seems to leave residue CommandBases even if the plugin gets disabled

ocean quartz
#

Oh was it due to hotswap?

old wyvern
#

Not a hotswap

#

Just biletool reloading it on drop

#

Pretty much equivalent to a plugman reload

ocean quartz
#

Oh okay
Also since I'm rewriting it, let me know if you have any suggestions you want added

old wyvern
#

A auto generated help command would be nice. Maybe a @Description annotation so people can define descriptions for the command for the help command to use

ocean quartz
#

Yeah the help is planned ;p

old wyvern
#

Could you also fix the issue with the Command classes still remaining after plugin disables?

#

Currently im having to restart the server on every change except when I use hotswapping

ocean quartz
#

As much as i can, it actually should unregister everything on plugin disable i just don't know why it's not working

old wyvern
#

Yea I think the current issue is that the listener is disabled before the plugin is actually disabled

#

Maybe have a check to validate that the plugin's mainclass is still in the classpath or something?

ocean quartz
#

I can give it a try yeah

old wyvern
#

Alrighty thanks man 😄

empty flint
#

Can I specify an anonymous block in Kotlin that is guaranteed to throw a throwable?

#

Like how () -> Boolean returns a boolean, is there a way to specify something like () -> throws Throwable

hot hull
#

How does one make a mobile app fingerguns

#

I'm getting annoyed by spotify

gusty fulcrum
#

anyone here good with html/css?

hot hull
#

Just ask and someone will help if they know

analog crater
#

What os Frosty?

#

(Pressume you want to do it via code rather than a builder such as unity)

onyx loom
#

How does one make a mobile app fingerguns
@hot hull get android studio and use kotlin, ez claps fingerguns

analog crater
#

XML 😩

hot hull
#

Does IJ not have anything for it?

obtuse gale
#

ive messed around with android studio before, it seems kinda cool

hot hull
#

Like holy fuck spotify is gae

obtuse gale
#

whats wrong with it?

#

FrozenMusic coming soon™️??

hot hull
#

The music recommendation for the genre is absolutely disgusting

#

And yea I was gonna make a music app so I could test shit outside of mc

steel heart
#

@empty flint you could just return an Exception and then throw it?

obtuse gale
#

I named a playlist Chang chang and then a shit ton of chinese songs got suggested

hot hull
#

YouTube has amazing music recommendation if you ask me

obtuse gale
#

I dont mind spotifys playlist reccomendations

#

this thing

onyx loom
#

spotify recommendations are ass i must admit that

gusty fulcrum
#

recommendations are normally really good for my taste in music

hot hull
#

Your taste being 1 specific genre I'm guessing?

obtuse gale
#

yep

onyx loom
#

yea must be

#

i listen to quite a lot but then it be giving me horrible recommendations like jazz or some shit 😬

hot hull
#

Exactly Kali

analog crater
hot hull
#

Ain't nobody wanna listen to fucking full rock, like tf?

obtuse gale
#

where are the reccomendations?

#

Like is it to add to a playlist or somewhere else

analog crater
#

Go to made for you then find your suggest

obtuse gale
#

My daily mixes arent bad

onyx loom
#

hm true

obtuse gale
#

gotta love it when things work, then you restart it, change some code that isnt related to it whatsoever then it breaks

obtuse gale
#

bruh i forgot I changed my method to return a RestAction<Message> instead of a Message and now im missing a shit ton of .queues

hot hull
#

If I store "" to db, will it be null, or an empty string?

analog crater
hot hull
#

Effort, but mk

analog crater
#

Yeah you can store an empty string lol

hot hull
#

Okay good

analog crater
#

But null is usually better in cases

hot hull
#

Nah, null is ew

analog crater
#

E.g name field would be better null than ""

#

Null is faster

#

For most dbs

heady birch
#

It will be ""

hot hull
#

That is not a valid argument, doubt it'd be noticeable even with thousands of users

heady birch
#

And do what jolly person said

#

Dont just insert nothing

#

Insert NULL

hot hull
#

"null" fingerguns

analog crater
#

...

hot hull
#

"null..." okay

heady birch
#

If you were planning on storing empty

#

Might as well just store "null"

#

Its just gonna cause you a load of problems

hot hull
#

Nah

analog crater
#

Yes lol

heady birch
#

Especially if you start searching stuff, all the "" stuff will appear in every search

hot hull
#

Well I mean I'm not searching for that field ever, atleast not directly from the db

heady birch
#

What's the table?

hot hull
#

What does that matter?

heady birch
#

It doesnt because regardless its a stupid decision lol

#

Let me add that to my book "1001 ways to screw a database"

#

Lol

analog crater
#

Is storing a list of strings as "abc,cde,part3" in there?

heady birch
#

Lol

#

Table Player Friends:

player_uuid friends
aeb327-...... "mike, niall, patrick"

analog crater
#

Lmao

astral quiver
#

New version for the KBAPi Tooling released \o/

dusky drum
#

Hello im having a issue with Nexus Repo when i try to push an artifact i get:
Return code is: 405, ReasonPhrase: PUT.

#

Received status code 405 from server: PUT

heady birch
#

Maybe it doesn't like PUT

#

Or its want's PUT

#

405 = Method not allowed: Put

#

do Post or patch or something

dusky drum
#

i mean gradle uses put i cant change that.

#

either im using repo url wrong or im just stupid

prisma wave
#

it's always been fine for me

#

Probably wrong URL

dusky drum
#

how should link look like @prisma wave

#

thats how mine looks

prisma wave
#

you using Sonatype nexus?

dusky drum
#

i guess

prisma wave
#

I mean

#

It's a yes or no answer lol

dusky drum
#

and how do i know if i use sonatype, i mean there is sonatype folder yes.

#

it is sonatype yes.

prisma wave
#

Surely you know what you installed?

dusky drum
#

yes latest version nexus

prisma wave
#

ok

dusky drum
#

sonatype nexus repo manager

prisma wave
#

The URLs are usually url/repositories/maven-snapshots then

#

Or maven-releases obviously

dusky drum
#

okay

prisma wave
#

Just navigate to the repositories in the admin panel and copy the URL

dusky drum
#

i did that

prisma wave
#

If it's a releases repository it won't allow updating artifacts

#

hm

prisma wave
#

Oh

#

You can't do that

#

You can't deploy to a group repository

dusky drum
#

what should it be then, i've never used nexus

prisma wave
#

Because how could it tell what actual repository you want to use?

dusky drum
#

hosted?

prisma wave
#

No

#

One of the specific ones

#

snapshots or releases

prisma wave
#

No...

#

I mean the maven-snapshots repository

dusky drum
#

but i want custom repo

prisma wave
#

maven2 hosted then

dusky drum
#

okay

#

so its like that i get it now, i was kinda confused but ok i understand it now, thanks!

prisma wave
#

Np

dusky drum
#

kinda switched from JFrog, and even jfrog was wierd

#

nexus is way easier

prisma wave
#

Nexus is usually regarded as the best

dusky drum
#

nice

jovial warren
#

there is no such thing as a "Nexus Repository Manager" that isn't made by Sonatype

heady birch
#

Come on dawg. Get that maven outta here. Get that maven out of here. Someone come get this man/ Get that maven outta here. Get that maven outta of here.

onyx loom
#

Come on dawg. Get that guy outta here. Get that guy outta here. Someone come get this man/ Get that Niall outta here. Get that guy outta here.

ocean quartz
#

Niall sinning again cryingblob

heady birch
#

Ooh he adding Java to the project I dont know if that good Imma ask my boss he know better. WHAT Come on dawg, Get that Java outta here. Get that Java outta here. Man come one. Get that Java outta here.

onyx loom
heady birch
#

Think of a bad technology

#

I can replace gradle and kotlin with bad ones

onyx loom
#

maven and java

dusky drum
#

anyone has idea how i could make SRV record for Nexus?

prisma wave
#

Setup a reverse proxy instead

#

With nginx or whatever web server you use

dusky drum
#

apache

prisma wave
#

Ew

dusky drum
#

what=

heady birch
#

Nginx

prisma wave
#

Apache kinda sucks but ok

dusky drum
#

why would it suck?

prisma wave
#

Well for one thing it's XML

#

But as far as I know nginx is faster and less vulnerable to certain attacks

dusky drum
#

attacks like?

prisma wave
#

They've probably patched this but last I checked Apache is vulnerable to a slow loris attack

dusky drum
#

okay then i'll install nginix

prisma wave
dusky drum
#

here insatlled

#

how do i setup reverse proxy now?

prisma wave
#

there's an example on Sonatype website afaik

#

You can pretty much copy paste it

#

nexus docs*

dusky drum
prisma wave
#

yeah that'll redirect domain.tld/nexus to the thingy

#

You'll need to change server name tho

dusky drum
#

haha refused to connect XDD

heady birch
#

Are image formats stored in metadata or something

#

E.g if I'm uploading them to a server via spring do I need to keep the file extension

dusky drum
#

yay i made reverse proxy 🙂

prisma wave
#

nice

dusky drum
#

yo whats better Chunky or WorldBorder plugin?

obtuse gale
#

Chunky because I like the name

hot hull
#

Chunky is better

dusky drum
#

i mean its updated, while worldborder isnt being updated any more "officialy"

#

so lets go chunky

obtuse gale
#

and wb’s name sucks

dusky drum
#

gotta wait those 9h

remote goblet
#

When an eclipse user complains about you using direct access to a mutable set map instead of using bukkit getters/settings PU_PepeCringeW

hot hull
#

:kek:

onyx loom
remote goblet
onyx loom
#

crusade?

remote goblet
#

the worst kind

onyx loom
hot hull
#

Ori, you also using kotlin by any chance?

remote goblet
#

yes

#

i refuse to use java mmSitStareMocha

hot hull
#

Sheesh, doubt the man even knows what that is

remote goblet
#

he did actually

hot hull
#

:O

onyx loom
#

what did he say Kappa

hot hull
#

He should know better then

remote goblet
#

Me:
Getters/Setters are cancer
so ima stick with my direct access for now
this also isnt java my friend salute

Eclipse Weeb:
ik its koltin

Me:
my friend not to be disrespectful
but dont comment on code when using eclipse ide LoveBear

#

they hadn't said anything afterwords

heady birch
#

Afterwords

#

Afterwards

#

Technically they mean the same in this context? Since it is after the words

remote goblet
#

shut

old wyvern
#

Direct access?

onyx loom
#

yea what context is this btw

old wyvern
#

You arent directly accessing most ussually if you using kotlin

#

The fields you declare are just properties with hidden backing fields

remote goblet
old wyvern
#

That isnt "direct access"

#

A getter is not idiomatic in Kotlin. It uses properties to provide something similar to getters and setters

ocean quartz
#

Kotlin generates getters and setters when compiling

old wyvern
#

Except they decided for fields to automatically be properties without beign explicit for some reason

onyx loom
#

ori u wanna make that code hella sexy

remote goblet
#

i already know how

#

to it the clojure way

onyx loom
#

fun PlayerExpChangeEvent.onExpGain() {}
fingerguns

heady birch
#

I like kotlins way

remote goblet
#

ah yes

heady birch
#

But its annoying when some method doesnt support the kotlin way

old wyvern
#

personally not a fan of the implicit property

onyx loom
#

☹️

heady birch
#
defaultCloseOperation = EXIT_ON_CLOSE
setLocationRelativeTo(null)
``` 😫
old wyvern
#

SwInG

onyx loom
#

😩

ocean quartz
onyx loom
#

lol

#

Object.checkNotNull

heady birch
#

Intrisics

old wyvern
#

I really wish they separate that at some point

heady birch
#

Java:
int[] ints = new int[] {0};

Compiled from Kotlin:
new ArrayList<>(Collections.singletonList(0)).toArray(new int[0]);

onyx loom
heady birch
#

The true power of kiteboard's design

#

I can add support for features so easily technically

onyx loom
#

technically

#

but what about reality kek

heady birch
#

A group implementation and component implementations and a group component implementation factory + adapter methods (if packet based) = new feature

ocean quartz
#

Just fount out you can create custom code completions for IJ

steel heart
#

ye

#

I mean there is no discussion why IJ is superior

ocean quartz
#

Got so used to Kotlin that println in java was getting annoying (i know there is sout already but this is better imo) so i made this xD

old wyvern
#

lol

steel heart
#

ye I mean thats kinda lit

prisma wave
#

to it the clojure way
@remote goblet no getters and setters in clojure

#

or in elara

#

or in Go

#

or in Haskell

#

etc

ocean quartz
#

Sx was showing me some stuff yesterday from his go server and it's pretty cool

prisma wave
#

indeed

#

Go is a nice language

#

I'd almost say perfect

ocean quartz
#

Kinda wanna learn it at some point

prisma wave
#

It's super easy to learn

ocean quartz
#

Like he described, Kotlin C++

prisma wave
#

the cool thing is that you get the speed of something like C++ but no manual memory management unless you need it

#

yeah that's pretty accurate lol

onyx loom
#

👁️

south parrot
#

there's a good way for increase the perfomance at connections with MongoDB? for example, using HikariDB u can get better connection perfomance in MySQL

old wyvern
#

Mhm

ocean quartz
#

Hikari has Mongo, no?

south parrot
#

Hikari has Mongo, no?
@ocean quartz I'll read it, thank you

#

HikariCP is a JDBC connection pool. You can't use it for NoSQL databases. It also doesn't have drivers for anything: it's a connection pool.
#

nvm

ocean quartz
#

Ah okay, wasn't sure about it

astral quiver
#

fun PlayerExpChangeEvent.onExpGain() {}
fingerguns
@onyx loom eventFlow<PlayerExpChangeEvent>.onEach {}.launchIn(pluginCoroutineScope)
fingerguns

onyx loom
#

what the frick

ocean quartz
#

Coroutines fingerguns

old wyvern
#

Now it shows the title even in my local server, or anywhere for that matter xD

onyx loom
#

🤔

#

wth is that texture pack btw

old wyvern
#

idk some random one

onyx loom
#

a diamond shaped hotbar

#

unique, but wierd

old wyvern
#

lol

obtuse gale
#

trash

#

Would there be any advantage to have some VRAM in place of DRAM for a minecraft server?

onyx loom
#

potentially yea

#

how much does ram affect mc servers tho 🤔

obtuse gale
#

Not sure, but would graphics primarily only help with rendering chucks and whatnot?

onyx loom
#

i mean its definitely an interesting question

obtuse gale
#

I’m thinking about setting up a server in house, just don’t know how much of a difference having VRAM would be over just some sticks

#

¯_(ツ)_/¯

astral quiver
#

Bukkript is making me depressive again

#

I'm all day tring to fix this issue

#

reports=[ERROR Built-in class br.com.devsrsouza.kotlinbukkitapi.libraries.kotlin.Any is not found (test.bk.kts): java.lang.AssertionError: Built-in class br.com.devsrsouza.kotlinbukkitapi.libraries.kotlin.Any is not found]) I don't know how I will support relocation on this

obtuse gale
#

just restart your router

#

ez fix

pastel imp
#

@astral quiver that's maybe more of a question to ask in #development

astral quiver
#

I already give up

ocean quartz
#

When you're rewriting something and find a piece of code that you can't explain what the fuck it's doing there or even what purpose it has

#

Yo wtf, was i drunk writing this, i named it completionMethod which is just a reference to the method annotated with CompleteFor

surreal quarry
#

@ocean quartz the issue a few days ago with wrong usage using mf-cmd, did any solution ever come up. I am getting the wrong usage message in game, my code is https://paste.jaims.dev/ujojoxevup.rb

south parrot
#

LMAO minecraft glitched from staying afk on hypicel too long
@old wyvern for some reason i got scared

ocean quartz
#

@surreal quarry What gives you wrong usage?

#

I'm pretty sure i see your problem, you want to make targetName optional but didn't mark it as such

surreal quarry
#

ah

#

i thought the nullability covered that my bad

#

yea it works fine when i provide that argument, so thats definitely the issue

ocean quartz
#

Yeah, nullability is not for optional, it's just required for invalid arguments, string shouldn't need it unless it's optional

surreal quarry
#

ok cool

#

thanks

heady birch
#

Who want to do a kotlin code review

heady birch
#

pretty sure thats sampled from somewhere

#

apparently not

#

sounds similar though

obtuse gale
#

with java do i use int or Integer lol, idk how primtiives or whatever work, i havent touched java in ages

heady birch
#

Use primitive unless you need an object

onyx loom
#

never heard those niall

obtuse gale
#

So, quick question, if I have a class that extends a base class, in the base class if I have like a loop looping over all the methods in the class, can I make it loop over all the methods in the class that extends it, not just the base class?

#

Im just kinda messing around with this kinda stuff loll

quiet depot
#

So, quick question, if I have a class that extends a base class, in the base class if I have like a loop looping over all the methods in the class, can I make it loop over all the methods in the class that extends it, not just the base class?
@obtuse gale yes.

obtuse gale
#

how

quiet depot
#

how would you approach it normally?

obtuse gale
#

I mean idk this is my first time doing this kinda stuff

#

I tried just looping over the methods, but it only gave me the methods from the base

quiet depot
#

getClass().getDeclaredMethods

old wyvern
#

Are you doing it in the constructor of the base class?

obtuse gale
#

That only returns me the method in the base class, I want the methods in the class that extends the base class

#

no

quiet depot
#

are you assuming that, or have you actually tested it?

obtuse gale
#

tested it

#
    public final void test(){
        System.out.println("getClass().getName() = " + getClass().getName());
        for (Method method : this.getClass().getDeclaredMethods()) {
            System.out.println(method.getName());
        }
    }``` This is in the base class, and im calling it on an instance of the class that extends it, and it prints out the name of the base class, and then `test`
heady birch
#

DeclaredMethods are the ones in the actual class I believe

#

then getMethods() by itself returns the ones from parents right?

quiet depot
#

correct

obtuse gale
#

that gave me all the methods from Object, but not the ones from the class that extends it

quiet depot
#

well, sounds correct

#

try getMethods

obtuse gale
#

oh wait maybe im just being dumb here lol I think i messed something up

heady birch
#

Oh yea piggy question about annotations

obtuse gale
#

oh yeah

#

its just me being udmb

old wyvern
#

xD

obtuse gale
#

Like really dumb...

heady birch
#

If I'm using stuff like @Nullable and @NonNull, in interfaces, should I transfer down to implementations or not?

#

Because IJ atleast seems to infer them any way, but from a convention point of view

quiet depot
#

they should be transferred

#

imo

#

there's no convention that I'm aware of that covers the use of such parameter annotations, so it's up to personal opinion

empty tangle
#
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/noahmanscher/MinecraftPlugin/Main (class file version 58.65535). Try running with '--enable-preview'

Can you guys help me figure out what causes this error? I'm using my IDE to compile, so I'm not sure how to run with "--enable-preview"

heady birch
#

Ok

quiet depot
#

@empty tangle what jdk are you using?

empty tangle
old wyvern
#

IntelliJ does warn you the add the annotations to the inherited classes too tho

empty tangle
#

shit

quiet depot
#

don't download the jdk from java.net, and noah, is this a public plugin?

empty tangle
#

i just might've figured it out myself

quiet depot
#

chances are you don't want to be using jdk 14

empty tangle
#

is this a public plugin?
It's not 😄

#

hence the name "McPlugin" lol

quiet depot
#

aight well, frankly I've got no clue how to add the flag to ij's build system

#

I recommend using a build tool such as gradle, which makes such configurations trivial

empty tangle
#

i just might've figured it out myself
Do I need an older JDK when using Spigot 1.8.8?

quiet depot
#

no clue

#

that's not the issue at hand btw

#

you're using a preview language feature in java, you need to explicitly enable that when compiling

#

or, simply not use the feature

old wyvern
#

You can set it in Project Structure

empty tangle
#

preview language feature
What could such a feature be?

quiet depot
#

paste the class

#

=paste

compact perchBOT
#
HelpChat Paste

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

old wyvern
#

Project SDK

empty tangle
#

I'm not using whatever IDE that is

quiet depot
#

yugi that's not useful unless he wanted to downgrade

#

it's intellij

#

what on earth are you using lol?

onyx loom
empty tangle
#
package com.noahmanscher.MinecraftPlugin;

import com.noahmanscher.MinecraftPlugin.commands.HelloCommand;

import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {

    @Override
    public void onEnable() {
        new HelloCommand(this);
    }
}
#

what on earth are you using lol?
You don't want to know 😳

quiet depot
#

no, I really do, because it's likely affecting you in every way possible

onyx loom
#

ecl...ipse....? 🤢

obtuse gale
#

🤮

empty tangle
#

even worse

#

vscode

obtuse gale
#

netbeans/

#

oh

quiet depot
#

wtf

obtuse gale
#

welp

onyx loom
#

😬

old wyvern
#

Oh he has jdk 1.14 installed?

quiet depot
#

yes

obtuse gale
quiet depot
#

he needs to enable preview features

old wyvern
#

welp

empty tangle
#

or just avoid preview features

quiet depot
#

yeah well

#

you're not using any there lol

old wyvern
#

I have a prof who used sublime text for Java

quiet depot
#

there's absolutely nothing wrong with that?

#

I've personally used sublime for java

#

but vscode

old wyvern
#

😂

quiet depot
#

yucky

empty tangle
#
package com.noahmanscher.MinecraftPlugin.commands;

import com.noahmanscher.MinecraftPlugin.Main;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class HelloCommand implements CommandExecutor {

    public Main plugin;

    public HelloCommand(final Main plugin) {
        this.plugin = plugin;
        plugin.getCommand("hello").setExecutor(this);
    }

    @Override
    public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
        if (!(sender instanceof Player)) {
            sender.sendMessage("Only players may execute this command.");
            return true;
        }

        final Player player = (Player) sender;

        final String perm = "hello.use";
        if(player.hasPermission(perm)) player.sendMessage("Hi!");
        else player.sendMessage("You don't have sufficient permissions to use this command. Required permission: " + perm);

        return true;
    }
}

This is the other class

old wyvern
#

What would be bad about VS code comparitive to sublime

onyx loom
#

my teacher said to me today that we will be using notepad for javascript in the future 😭

quiet depot
#

that's not the problematic class

heady birch
#

@Autowired

quiet depot
#

nothing serious yugi, these days vscode is arguably superior to sublime in virtually every category except speed

old wyvern
#

Ah

empty tangle
#

I just use VSCode for everything else and didn't want to download another IDE

quiet depot
#

well, that's a huge mistake

#

java by far has the most developed ides out of any other language

obtuse gale
#

How would one change the name of an Inventory?

quiet depot
#

you're shooting yourself in the foot by not using one

#

I recommend intellij

#

I strongly recommend against using anything but intellij (for java)

old wyvern
#

How about everything on paper fingerguns 😂

onyx loom
#

no, we will force ur hand to use intellij fingerguns

old wyvern
#

god

onyx loom
#

this is not a recommendation reversed_fingerguns

quiet depot
#

onto the actual problem noah

#

I've got no clue how to enable preview features on vscode

#

I recommend downgrading your jdk

#

and for the love of god, don't download from java.net

#

AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

empty tangle
#

whats the big difference?

onyx loom
#

allows licensing or smth when ur selling projects? smth like that

quiet depot
#

oracle's lawyers will hunt you down and kill you if you start making money off their binaries

old wyvern
#

add --enable-preview to the compiler args ?

empty tangle
#

add --enable-preview to the compiler args ?
Yes. But I don't know how to edit compiler args

obtuse gale
#

do arrays not have .forEach in java?

quiet depot
#

you can construct a stream from an array via Arrays.stream

#

that's as close as you can get though

obtuse gale
#

ah ok

empty tangle
#

does java not have for ... of ... loops?

obtuse gale
#

thats what I needed to do

quiet depot
#

it does noah

#

streams just look nicer

obtuse gale
#

How tf does a lambda or whatever work for the .filter

quiet depot
#

what language you coming from?

obtuse gale
#

() -> those tihnsg lol

quiet depot
#

filter accepts a predicate

#

you get an argument, and return a boolean

obtuse gale
#

yeah

#

how do i get the arg

old wyvern
#

@empty tangle try checking Run > Open Configurations

quiet depot
#

argument ->

empty tangle
#

Which jvm should I use for AdoptOpenSDK?

obtuse gale
#

only ever used this stuff in kotlin before lol

quiet depot
#

hotspot

old wyvern
#

Havent used VS code for Java but I assume openign the configuration file remains the same throughout extensions

regal gale
#

@quiet depot you finished adapting GraalVM onto PAPI 3 yet?

quiet depot
#

haven't even started

#

javascript expansion is low priority

#

and it's important to note I'm not adapting graalvm into papi 3

#

merely their superior javascript interpreter

#

what language you coming from?
@empty tangle

empty tangle
#

I'm not sure what you mean.. JavaScript might be the answer you're looking for

quiet depot
#

yeah, just wondering what language you were using before starting on java

#

web js, or node?

empty tangle
#

both

#

I've created a verified Node bot

quiet depot
#

is it open source?

empty tangle
#

It was

quiet depot
#

but not anymore?

empty tangle
#

👍

quiet depot
#

why?

empty tangle
#

It's harder to monetize

quiet depot
#

oh

empty tangle
#

?

#

@quiet depot which jdk version would you recommend?

quiet depot
#

I personally use 8, but that's because the majority of plugins I make are for use on servers which aren't my own

#

and 8, is currently the most used java version in the mc community

onyx loom
#

is it not the most used in general?

quiet depot
#

I haven't got a clue

#

but that's not as indicative as bstats

old wyvern
quiet depot
#

mind you, bstats isn't perfect either, but it gives a very good idea

onyx loom
#

2% kotlin 🌝

old wyvern
#

Groovy

#

welp

quiet depot
#

@old wyvern that's even worse than jetbrains', purely for the inclusion of javascript

old wyvern
#

lol

quiet depot
#

it was obviously made by, a complete and utter idiot

old wyvern
#

😂

#

Didnt notice that being there lmao

empty tangle
#

@quiet depot is there a channel where I can send images

old wyvern
compact perchBOT
#
Uploading Images

Please use imgur to share screenshots and other images.
Imgur

quiet depot
#

=imgur

#

jrebel lol

#

fuck jrebel

#

greedy bastards

old wyvern
#

😂

empty tangle
#

yikes. give me 10 minutes then

quiet depot
#

takes seconds noah

#

you go to the site, press control + v, and paste the link here

#

only one more step than uploading it to discord directly

empty tangle
#

what

onyx loom
#

do u have to login to imgur?

empty tangle
#

thats so smart

quiet depot
#

no kaliber

empty tangle
quiet depot
#

noah I can't defend it lol

onyx loom
#

o i never knew that

quiet depot
#

honestly not sure what the point of imgur is, in this context

#

@pallid gale why don't we just allow people to upload images?

old wyvern
onyx loom
#

tier 2 can fingerguns

pallid gale
#

^

quiet depot
#

ic

onyx loom
#

i feel like it might be fine for tier 1s tbh, because u only get tier 1 after a couple messages

#

so if theyre a bot, they cant spam images straight away

#

but shrug_animated

quiet depot
#

@empty tangle did you download 14.0.2?

#

or 8?

#

if the latter, change the path

#

and also follow the red instruction

empty tangle
#

14.0.2 - I'll get 8 when i can make it work

#

nvm

#

thats such a dumb argument

quiet depot
#

if you can make 14 work, no point in getting 8

pallid gale
#

People are less likely to post random images/memes in general areas if it actually requires effort to upload first

onyx loom
#

@old wyvern thats cursed font lol

old wyvern
#

💀

onyx loom
#

hm fair fc

#

but can i get access to images in support channels fingerguns

#

almost t7 now reversed_fingerguns

pallid gale
#

one day

onyx loom
#

☹️

empty tangle
#

I'm pretty sure it's the correct path

quiet depot
#

well, follow the red instruction in the original image

empty tangle
#

Remove bin?

#

Alright

quiet depot
#

from the path

empty tangle
#

yeah yeah

quiet depot
#

don't actually delete the folder

empty tangle
#

lol

obtuse gale
#

do I need to shade for the jetbrains annoations?

quiet depot
#

no

obtuse gale
#

epic

empty tangle
#

woop woop

quiet depot
#

oh btw

#

changing to openjdk shouldn't of fixed your issue

empty tangle
#

i know

quiet depot
#

you still need to enable preview features

empty tangle
#

yeah...

#

Can I compile the plugin from a CLI?

quiet depot
#

yes

#

but please, just use a build tool

empty tangle
#

VSCode can do it for me

#

I just thought using CLI might make it easier to change settings

obtuse gale
#

does 1.16 not support java 14 for plugins?

empty tangle
#

@quiet depot seems like I can change the compiler settings in a launch.json file

#

Hell yeah!

quiet depot
#

ayy

empty tangle
#

No errors

quiet depot
#

now you can scrap all that and just setup gradle, by following the guide I linked before 😄

#

or learn the language a bit more first

#

up to you which you do first

#

getting intellij should also be on your todo list

empty tangle
#

or learn the language a bit more first
wym. im a java master

#

😳

onyx loom
#

does 1.16 not support java 14 for plugins?
@obtuse gale try and see 🌚

quiet depot
#

oh yeah?

#

i'll be the judge of that

#

(warning, a response could definitely take an indefinite amount of time)

onyx loom
#

🤔

empty tangle
#

*slowly backs away*

#

also

#

*happy noises*

onyx loom
#

nice flex

empty tangle
#

?

quiet depot
#

that badge is not indicative of the quality of your code, at all

#

wow

#

completely missed the /s at the end

#

i swear i'm blind

empty tangle
#

that badge is not indicative of the quality of your code, at all
you're god damn right it aint

#

i dont consider myself very good at js either

obtuse gale
#

How would one round the number up to the nearest x?

quiet depot
#

wat

#

x decimals?

obtuse gale
#

Like the nearest multiple of x

onyx loom
#

nearest multiple thonk

old wyvern
#

Divide by that, ceil and multiply by that

obtuse gale
#

let x = 10 for simplicities sake rn,
say i give it 5 it gives me 10, if i give it 14 it gives me 20

onyx loom
#

how would 14 round up to 20

obtuse gale
#

how would it not

onyx loom
#

am i being dumb or what

obtuse gale
#

if x is 10 in this case

onyx loom
#

the nearest is 10 no?

old wyvern
#

He doesnt mean rounding

obtuse gale
#

keyword up

onyx loom
#

so u wanna round ALWAYS up?

obtuse gale
#

yes

onyx loom
#

ic

heady birch
quiet depot
#

⌈14/10⌉*10 see kaliber

#

yugi u smart

#

i never would've thought of that

onyx loom
#

niall u really wanna trigger people

obtuse gale
#

tf is

quiet depot
#

ceiling function

obtuse gale
#

ah

old wyvern
#

😄

obtuse gale
#

Anyone got a nice hex colour method i can copy + paste?

old wyvern
#

wdym hex color method?

obtuse gale
#

like that translates hexes to colours in 1.16

old wyvern
#

Doesnt the hex separated by the chatcolor symbol work?

#

Havent really messed with 1.16 colors yet, but from what Ive seen from here that works

onyx loom
#

i copied mine from frosty

#

let me get it

obtuse gale
#

:))

old wyvern
#

§x§F§F§0§0§0§0
I expect thats red?

onyx loom
heady birch
#

Yes its red

obtuse gale
#

and is this #<hex>?

onyx loom
#

ye

obtuse gale
#

ew its kotlin

onyx loom
heady birch
#

Is it a chat component

obtuse gale
#

the one time i decide to do something in java i cant even copy + paste smh

onyx loom
#

lol

heady birch
#

I have a custom chat component but of course that only works if your using a chat component

onyx loom
#

niall i think u have to send hex as chat component right?

heady birch
#

Monki flip

old wyvern
#

That should be easy to translate to Java aj

onyx loom
#

extension functions in java sad_fingerguns

old wyvern
#

Util pattern 🤷‍♂️

onyx loom
#

cmon man

#

get that pepper off there

#

was working fine before (still on 0.0.26, 0.0.27 broken kekw), but just booted test server up for first time in like 3 days 😦

prisma wave
#

This is not a pdm problem

#

It's a YOU problem

#

Can't accept it for its flaws

#

Smh

#

Anyway

onyx loom
#

🤔

prisma wave
#

Send buildscript

onyx loom
#

everything is same since last time lol

prisma wave
#

This is probably kotlin 1.4 causing problems again

onyx loom
#

so it should be working

prisma wave
#

Evil Andrey

#

Hmm

#

clean pdm build?

onyx loom
#

ive a feeling it happens whenever u shut down ur pc

#

idk y

prisma wave
#

lol

#

That would be weird if it did

onyx loom
#

yea clean build worked lmfao

#

now let me try shutting down my pc OMEGALUL

#

bc it works when i restart the server just fine

#

it works 🌝

prisma wave
#

Huge

onyx loom
#

but very weird tho, because others have had that error before

prisma wave
#

pdm takes another W

#

Yeah it seems to just happen occasionally

onyx loom
#

only after a clean build tho 😐

prisma wave
#

Probably kotlin being evil

onyx loom
#

possibly we just need to always clean build when using pdm 🤔

prisma wave
#

no

#

Never do that

#

It will be super slow

onyx loom
#

ik lol

prisma wave
#

i spent YEARS perfecting the caching and I don't intend for it to be wasted

onyx loom
prisma wave
#

many years

#

Blood sweat and tears went into that caching mechanism

onyx loom
#

might need to work on it more considering it stops working occasionally

prisma wave
#

pff

#

So does everything

onyx loom
#

really need to find the source of that issue tho, very weird

prisma wave
#

Probably some so called "prank"

#

I will find whoever is responsible

heady birch
#

NiallDeps

#

while (cantDownload) {
tryAndDownload();
}

onyx loom
#

niall once again with the enterprise logic

prisma wave
#

while (niallDeps.exists()) {
dont();
}

#

Competition eliminated

#

:)

onyx loom
#

give this man a medal for his intuitiveness

prisma wave
#

Absolutely not

#

The only medal he deserves is the medal of death

heady birch
#

can i download PDM with PDM

prisma wave
#

probably

#

shut up

#

:(

heady birch
#

I will have to try it at some point

prisma wave
#

I would highly recommend you don't

#

but sure go ahead

#

:)

heady birch
#

Guess what I learnt yesterday

prisma wave
#

¯\_(ツ)_/¯

heady birch
#
 @GetMapping("/country/{country}")
public String getCountry(final Model model, @PathVariable final Country country)
``` Is possible in spring
#

no need to use {id}

prisma wave
#

wow

#

Revolutionary

heady birch
#

thymeleaf bean

prisma wave
#

spring just became the first framework

heady birch
#

?

prisma wave
#

they have revolutionised java

onyx loom
#

can i download PDM with PDM
@heady birch PluginDependencyMangerPluginDependencyManager

prisma wave
#

burn it

#

not allowed

#

unacceptable

#

😡 !!

#

um excuse me maam you forgot the clojure logo reaction

onyx loom
#

i dont have it in my collection 😭

#

who the frick put terraria emoji

rotund egret
#

👀

onyx loom
#

i remove an emoji to make way for the beautiful clojure moon

prisma wave
#

thank

onyx loom
#

and u completely disrespect clojure like that

prisma wave
#

does not work

#

Someone will die for this

rotund egret
#

Santa?

onyx loom
#

ok add it

rotund egret
#

🎅

onyx loom
#

NO

#

NOT SANTA

prisma wave
#

Btw :elaramoon: is in the making

onyx loom
#

remove NOW

prisma wave
#

mods

onyx loom
#

great fingerguns

prisma wave
#

Admin

#

We have a troll

onyx loom
#

is terfs making it?

prisma wave
#

nah some other dude

onyx loom
#

ah ok

prisma wave
#

Admin kindly remove this "troll" from the server

onyx loom
#

hopefully it turns out good 🙂

rotund egret
#

Whom'st've troll?

prisma wave
#

they seem to think they are being "comedic"

#

I need help

compact perchBOT
#

There is no time to wait! Ask your question @prisma wave!

onyx loom
#

very "comedic" indeed

obtuse gale
#

who what when where

prisma wave
#

Help

onyx loom
#

😠

prisma wave
#

Barry

obtuse gale
#

I need halp

prisma wave
#

there is a troll in the discord server

#

@compact perch do something idiot

onyx loom
#

@compact perch

prisma wave
#

@compact perch

onyx loom
#

@compact perch

prisma wave
#

@compact perch

onyx loom
#

@compact perch

prisma wave
#

@compact perch

onyx loom
#

@compact perch

prisma wave
#

@compact perch

onyx loom
#

@compact perch

prisma wave
#

@compact perch

obtuse gale
#

@compact perch

onyx loom
#

@compact perch

prisma wave
#

@compact perch

onyx loom
#

@compact perch

obtuse gale
#

@compact perch

prisma wave
#

@compact perch

rotund egret
#

👀

onyx loom
#

@compact perch

obtuse gale
#

@compact perch

prisma wave
#

@compact perch

onyx loom
#

@compact perch

obtuse gale
#

@compact perch

onyx loom
#

free xp if u ask me 👀

prisma wave
#

@compact perch

onyx loom
#

@compact perch

obtuse gale
#

I dont think messages this short count

#

@compact perch

onyx loom
#

nah lol

#

plus its duplicate

obtuse gale
#

@compact perch

prisma wave
#

@compact perch

#

I want to slaughter Barry where he stands

#

He is corrupt

#

Not banning the "troll"

dusky drum
#

1 question so for minecraft i have to make SRV and not reverse proxy right?

prisma wave
#

yes

dusky drum
#

okay

prisma wave
#

Because reverse proxy is only for http connections afaik

dusky drum
#

ok

obtuse gale
#

Hello lady and gentle man..
My spring webhook endpoint no work. this is dire situation.
Please fix URGENT!

ocean quartz
#

Why yall abusing Barry? cryingblob

obtuse gale
#

barry abused us

onyx loom
#

fuck barry

ocean quartz
#

Wow

onyx loom
prisma wave
#

Barry is not dealing with the troll

#

Lazy

onyx loom
#

yup

#

trolls think theyre SO funny 🙄

prisma wave
#

I will not accept this

#

this chat has been plunged into a wretched cesspit of despicable scum

ocean quartz
#

Who's trolling?

onyx loom
#

this DESPICABLE scum

obtuse gale
#

@compact perch

onyx loom
#

@compact perch

dusky drum
#

wtf

heady birch
#

Come on

#

Why do your spring endpoints never work

obtuse gale
#

I don no

#

But it broke and me sad

#

@RestController
@Service
class AHHHHHH{
    @PostMapping("/AHHHHHHH")
    fun AHHHHHH(
            @RequestHeader headers:Map<String, String>,
    ){
        println("Received")
    }

}``` Thats all ive got lol
#

That should work shouldnt it?

heady birch
#

What why

#

Do you want it to display something?

obtuse gale
#

Im just tryna get it to work rn, it worked once, now it wont work anymore

heady birch
#

Also unless you mean to post that. Use @GetMapping not @PostMapping

#

You dont need @Service

#

Do you need those headers

obtuse gale
#

I mean yeah I will

onyx loom
#

fun AHHHHHHHHH

heady birch
#

Your also mean't to return something

obtuse gale
#

i am?

#

I dont wanna change the pages content or anything tho

#

Im just trnya listen to webhook

#

PostMan isnt even giving me a response i dont think - unless im just looking in the wrong spot

heady birch
#

Uh

#

Does post man work

obtuse gale
#

normally

#

Ive used it before with no issues

heady birch
#

Because of course your web application is on localhost I dont know how postman works

obtuse gale
#

it should

heady birch
#

Postman wont give you a response

obtuse gale
#

it has in past

heady birch
#

Because you dont send one

obtuse gale
#

yeah

heady birch
#
@RestController
class MyController {
    @ResponseBody
    @PostMapping("/path")
    fun myMapping(@RequestHeader headers: Map<String, String>): String {
        return "Test data"
    }
}```
obtuse gale
#

When I send the webhook for the first time I get this

#
2020-09-09 01:17:48.240  INFO 28304 --- [io-42069-exec-3] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-09-09 01:17:48.240  INFO 28304 --- [io-42069-exec-3] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2020-09-09 01:17:48.248  INFO 28304 --- [io-42069-exec-3] o.s.web.servlet.DispatcherServlet        : Completed initialization in 8 ms
2020-09-09 01:17:48.486  WARN 28304 --- [io-42069-exec-3] o.a.c.util.SessionIdGeneratorBase        : Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [221] milliseconds.```
#

Only when I send it for the first time tho

heady birch
#

Yeah thats just because new session

#

Well actually by default it wouldn't be stateful

#

Not sure, did you try code above?

obtuse gale
#

yeah one sec

#

could it have something to do with spring security being on or something? If I manually try to go the the page springs default login page pops up

#

just noticed tha

#

bruh

heady birch
#

Most likely

obtuse gale
#

I didnt think to manually go to the page lol

#

how would one disable it

dusky drum
#

wtf is wrong with fawe

heady birch
#
@Configuration
@EnableWebSecurity
public class SarsSecurityConfiguration extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(final HttpSecurity security) throws Exception {
        security.httpBasic().disable();
    }
}
dusky drum
#

rain is floating (hitting invisible) ground.

heady birch
#

Something like that Aj

heady birch
#

dev general

#

do not interrupt our spring conversation

dusky drum
#

okay.

heady birch
#

joking

dusky drum
#

okay.

heady birch
#

also whats wrong in the image?

#

oh

dusky drum
#

air hits invisible ground

#

rain*

#

does luckperms support Hex?

obtuse gale
#

Niall it still doesnt work :((

heady birch
#

Which aspect

south parrot
#

some good tutorial for learn about mongo connections? and commands and these things

analog crater
#

Mongos docs

south parrot
#

tY

#

yikes

heady birch
#

LOL

#

Its not

prisma wave
#

Shame

heady birch
#

But look at his post history

prisma wave
#

Look at his post history

#

lmao

#

He loves rust

heady birch
#

Great minds think alike

prisma wave
#

Great minds use rust

onyx loom
#

that name just tops it off lmao

heady birch
#

I strongly detest things like Vue

frail glade
#

F

#

I've been enjoying NuxtJS and GatsbyJS lately.

frigid badge
#

JS sucks ass

frail glade
#

Okay chill

#

No need to be so hostile

frigid badge
#

but vue is doable

#

I mean it’s just a fact

#

every javascriot developer I’ve spoken says it too

frail glade
#

That's fine. I don't do a lot of JS in it. It's just nice to be modular.

heady birch
#

Thymeleaf 😠

ocean quartz
#

TypeScript!

onyx loom
#

!

frigid badge
#

thymeleaf and other alike templating engines like blade suck

hot hull
#

@frigid badge You're a weeb

heady birch
#

No they don't

prisma wave
#

Let's be honest everything in frontend sucks

astral quiver
#

true

steel heart
#

No

#

You wrong

astral quiver
#

2 vs 1

#

we won!

steel heart
#

Not really

astral quiver
steel heart
#

I mean programming in front end is one thing

heady birch
#

3 vs 1

onyx loom
#

4 vs 1

steel heart
#

Bruh

heady birch
#

So stupid

steel heart
#

How?

heady birch
#

Your just giving the client things to do

steel heart
#

Wym

heady birch
#

I'd rather just generate it on the server then send it

steel heart
#

Lol what

heady birch
#

Rather than send over 10MB of javascript

#

And then it make some requests

astral quiver
#

I lke the idea of doint stuff in the clinet

#

BUT I don't like how its works

#

using Javascript

#

could be a faster languange

#

WASM I guess will change that

steel heart
#

I mean certainly JS, CSS and HTML can be painful

astral quiver
#

I hope

heady birch
#

Nothing wrong with traditional web design

astral quiver
#

The problem is that you have only one choose

heady birch
#

Html forms e.g

#

They work

astral quiver
#

They JUST work

heady birch
#

No stupid popups loading bars and spinners

astral quiver
#

this is the problem

steel heart
#

So like anyone here is a forge pro?

heady birch
#

They do the job when you just need the job doing

astral quiver
#

Other platform we have ALOT of things to choose

steel heart
#

Souza you seem like a forge master

astral quiver
#

👀

steel heart
#

Please help me

astral quiver
#

I just look like one

steel heart
#

Can you write my mod for me ?

astral quiver
#

I really do no much about Forge, I use it years ago

#

currently I know that the folks are using Fabric

steel heart
#

Ah man is that better ?

astral quiver
#

I could, but I don't to do that fingerguns

steel heart
#

And is it compatible with forge?

astral quiver
#

I guess it is

steel heart
#

Also mc 1.16.3 rc :/

astral quiver
#

I guess forge do not work at this version?

#

If a recall, spigot releases first then Forge

steel heart
#

Bukkit?

astral quiver
#

Fabric now is the faster one I belive

#

Bukkit is dead

steel heart
#

Well, fuck my life

#

I wrote like 100 classes in forge

#

And just realized fabric is better

astral quiver
#

If you wrote game things, will be kinda the same

#

but if is the Forge API

#

Uff

steel heart
#

Having my mod on fabric could also give me more clout

#

Yeah I will make tons and tons of abstraction (:

foggy pond
#

Hold up wha

#

If I wanna make a github wiki I need my repository to be public?

#

I don't want to make the repository public until my plugin is released though ugh

#

But I want the wiki to be ready by then

onyx loom
#

no u dont need to

foggy pond
#

How do I make a wiki page for private repositories then

onyx loom
#

wait