#dev-general

1 messages ยท Page 282 of 1

surreal quarry
#

for the name

hot hull
#

L

surreal quarry
#

indeed

empty flint
#

What kind of database do you guys support for your applications that use any?

I'm not sure if I should stoop down to the levels of sqlite and json databases or not

#

I usually like to use MySQL wherever possible

#

but I realize not everybody has a MySQL server running

hot hull
#

Maria fingerguns

surreal quarry
#

try to have at least one file storage and one DB if you can

empty flint
#

so I'm unsure if that would cut off a chunk of users from my plugins

surreal quarry
#

have a json storage by default, but if they want they can enable mysql

empty flint
surreal quarry
#

that works too

#

just any sort of file storage so anyone can use it, then have mysql or mariadb or something as an option

empty flint
#

My problem with JSON/SQLite there is that they don't offer the same features as MySQL and are really limiting in that regard

prisma wave
#

I wanna make an ORM that supports JSON and SQL out of the box

#

That would be cool

surreal quarry
#

json isn't that limiting i dont think

#

yea that would be nice BM

prisma wave
#

Object Relational Mapper

hot hull
#

Welcome to the korm fields

prisma wave
#

Kind of like Gson but it works for SQL too

empty flint
#

right

surreal quarry
#

does korm work for sql too

hot hull
#

Is a smexy thing if you have larger objects

surreal quarry
#

i always thought it was only json

prisma wave
#

Korm isn't an ORM

#

It's quite a misleading name

#

Well it kind of is

#

But it's also a language

surreal quarry
#

it is?

hot hull
#

I love you Matt

prisma wave
#

๐Ÿ˜”

#

Now

#

Forgot what I was gonna say

#

But

#

Yeah

#

A combination of hibernate and JSON

surreal quarry
#

oh cool

ocean quartz
#

Need to try Exposed, seems nice

prisma wave
#

Yeah I'm not sure how I feel about exposed

empty flint
prisma wave
#

kotlin ORM

ocean quartz
empty flint
#

seems nice

prisma wave
#

Judging by looks alone I think I prefer hibernate

empty flint
#

I frickin hate hibernate

prisma wave
#

๐Ÿ˜”

#

Outside of spring it's mediocre

#

But

#

With spring it's great

empty flint
#

probably because I was learning java for the first time when I used it last and it only gave me a fuckton of problems I wasn't ready for

#

Also never used Spring so idk

prisma wave
#

Yeah I mean

#

This might be Stockholm syndrome

#

But I think it is nice

empty flint
#

Can you make plugins with Spring?

prisma wave
#

ask niall

#

But I don't think so

frigid badge
#

you could

#

but why would you lol

prisma wave
#

i think it's difficult because of spigot's classpath fuckery

#

But yeah it doesn't help much

hallow crane
#

@prisma wave hello sir

hot hull
#

Get ghd

#

Gud*

hallow crane
#

sorry what

#

he wrote the code

stuck harbor
#

git gud

#

simple

forest pecan
#

git pull

#

simple

hallow crane
#

I guess I'll have to use HDL.....

#

because of this fatal bug

forest pecan
#

its not always a bug in the library

#

lmao

hallow crane
#

I mean...yeah it is.

lunar cypress
#

you haven't even shown the error

onyx loom
#

classic pdm

hallow crane
#

BM already knows the error. It isn't new, I am just reminding him

forest pecan
#

i wanna sleep

#

but i have 2 fucking assignments

#

and its 3:35 pm for me

obtuse gale
#

@quiet depot mfw Luck forgot about my suggestion about DD but added it from the GH discussion CH_pepecry

forest pecan
#

kekw

forest pecan
heady birch
#

But generally once you start adding stuff like hibernate, maybe a web ui, you easily hit 40MB

forest pecan
#

ok

#

but

#

what the

half harness
#

lmao

#

stop chown before it gets too late-

forest pecan
#

lol

stuck harbor
half harness
#

๐Ÿคท

stuck harbor
#

why would u use nano

#

use VS Code if ur a microsoft pleb

prisma wave
#

outdated?

stuck harbor
#

nano isnt a code editor

#

like really

#

it's good for what it is designed

#

...

#

heretic!

half harness
#

๐Ÿ˜Ž

#

d;jda

ruby craterBOT
#
@@JavaBean(defaultProperty="JMenuBar", description="A toplevel window for creating dialog boxes.")
public class JDialog
extends Dialog
implements RootPaneContainer, Accessible, WindowConstants```
JDialog has 3 fields, 6 all implementations, 30 methods, 3 implementations, and  1 extensions.
Description:

The main class for creating a dialog window. You can use this class to create a custom dialog, or invoke the many class methods in JOptionPane to create a variety of standard dialogs. For information about creating dialogs, see The Java Tutorial section How to Make Dialogs.

The JDialog component contains a JRootPane as its only child. The contentPane should be the parent of any children of the JDialog. As a convenience, the add, remove, and setLayout methods of this class are overridden, so that they delegate calls to the corresponding methods of the ContentPane. For example, you can add a child component to a dialog as follows:
And the child will be added to the contentPane. The contentPane is always non-null. Attempting to set it to null generates an exception. The default contentPane has a...

This description has been shortened as it was too long.

half harness
#

d;jda Message

ruby craterBOT
#
public interface Message
extends Formattable, ISnowflake```
Message has 2 super interfaces, 6 fields, 57 methods, and  2 extensions.
Description:

Represents a Text message received from Discord.
This represents messages received from MessageChannels.

This type is not updated. JDA does not keep track of changes to messages, it is advised to do this via events such as MessageUpdateEvent and similar.

Message Differences

There are 3 implementations of this interface in JDA.

  1. Received Message
    Messages received through events or history query. These messages hold information of existing messages and can be modified or deleted.
  2. System Message
    Specification of Received Messages that are generated by Discord on certain events. Commonly this is used in groups or to indicate a pin within a MessageChannel. The different types can be found in the...

This description has been shortened as it was too long.

stuck harbor
#

lol

half harness
#

tada

stuck harbor
#

jda is on docdex lol

#

also, hmmmm scala

forest pecan
half harness
#

hmm

#

maybe

forest pecan
#

intellij gives u recommendations to switch a for loop to something else

half harness
#

๐Ÿคท

forest pecan
#

such as a simple assignment of copying an array

#

if you are trying to learn a for loop

#

but intellij gives you

half harness
#

fori + tab

forest pecan
#

Arrays.copyOf

half harness
#

๐Ÿ‘€

forest pecan
#

Yeah

#

exactly

#

not friendly

#

for beginers

#

cause they need to learn

half harness
#

'cause thats how good intellij is ๐Ÿ˜Ž

forest pecan
#

?

half harness
#

not for new beginners*

forest pecan
#

Yeah

#

there we g

#

o

#

lmao

half harness
#

notepad++ ๐Ÿ˜ณ
netbeans
notepad

forest pecan
#

only use eclipse if u completely new

#

otherwise

#

just use fcking intellij

half harness
#

lmao

forest pecan
#

lmao

half harness
#

the thing is

forest pecan
#

lol

half harness
#

its sorta hard to switch from eclipse to intellij

#

bc theres some features

forest pecan
#

not really

#

lol

half harness
#

that intellij doesn't

forest pecan
#

not really

#

efe and i know

#

cause we used both

#

๐Ÿคฉ

half harness
#

took me about a month ๐Ÿคท

forest pecan
#

well you were new

#

at the time

#

i used eclipse for 3 years and switched to intellij and got used to it in a day

#

lmfao

half harness
#

anyways ima try godbridging now ๐Ÿ˜Ž

forest pecan
#

my only complain is project strucutre. I wish intellij could have a project explorer

half harness
#

me too

forest pecan
#

or at least hide/show some

half harness
#

also the copy/pasting code feature

#

where u put code into these thingies

#

then u press a keybind to paste it

#

๐Ÿคท

#

ok

#

anyone think its possible to single/double click godbridge?

prisma wave
#

dev-general

ocean quartz
#

Wtf is godbridge? Is that outdated software language?

old wyvern
#

xD

#

I think he means like placing blocks really fast or something

forest pecan
#

Yeah

#

its also known as moonbridging

#

breezily bridging

#

etc

#

they are all similar

#
โ–ถ Play video
surreal quarry
#

is jesus bridging if you do it through a body of water

#

lol

ocean quartz
#

Jesus wouldn't need a bridge, mad lad can just walk over it

surreal quarry
#

true

old wyvern
#

What if Jesus sky bridges with water buckets

ocean quartz
old wyvern
#

๐Ÿ’ง ๐ŸŒ‰

ocean quartz
#

If it's raining can Jesus fly? thonking

old wyvern
#

๐Ÿ˜ฎ

lunar cypress
#

where is the troll face meme with water and oil

old wyvern
#

๐Ÿ˜‚

lunar cypress
#

no not that variation lmao

old wyvern
#

The one where you cover yourself with oil and fly

lunar cypress
#

yeah

#

this meme is so ancient and yet there are so many great spins on it

old wyvern
lunar cypress
#

wait for it to oil

half harness
half harness
#

breezily bridging is slow

#

moonwalk is fast

#

godbridge is fastest

#

telly is fastest*

#

close tho fingerguns

forest pecan
#

tbh it doesnt matter at that point

#

its literally just clicking fast

#

not capping

#

it doesn't matter which method you use, its all the same

#

its all based on your cps

half harness
#

possibly even less

#

๐Ÿคท

forest pecan
#

does it look like you can time blocks very well, dkim?

#

lmfao

half harness
#

I can only single click like 6 blocks godbridge

#

๐Ÿ˜ญ

forest pecan
#

you realize those people are actually clickbaiting. its 100x much harder

half harness
#

ik

forest pecan
#

if you cant have high cps

half harness
#

but its possible

#

๐Ÿคท

forest pecan
#

i tried it before dkim trust me

#

doesnt work out well at the end

half harness
#

well ye its just for fun

forest pecan
#

usually the normal sneak fast bridge is fast enough

#

yeah

half harness
forest pecan
#

Yea sure w/e

half harness
#

๐Ÿ˜‹

forest pecan
#

lmao

half harness
regal gale
#

Even if you're on really high cps, server only manages 20 blocks built per sec thonking

half harness
#

uh

#

20 blocks?

#

or 20 clicks

#

bc those are different

#

๐Ÿ‘€

#

bc theres a really noticeable difference between 20 and 40 cps rmb

regal gale
#

Blocks...

half harness
#

ok

#

that makes sense

#

but no one bridges 20 blocks/second ๐Ÿ™‚

regal gale
#

I can jitterclick my mouse to 13 cps

half harness
#

I get around 10-12

#

13 is hard

#

but i dont jitter

#

bc my aim sucks with it

copper mason
#

If I really try I can squeeze the occasionaly 14 cps out of butterfly but I get a cool 10-12 on average. For bridging butterfly works really well but in pvp it's not as useful

#

But yeah normal speedbridge is usually enough

half harness
#

idk if I butterfly correctly, as I thought myself lol and then figured out that it was a common clicking method, but I get like 12 cps for that

copper mason
#

but I started using schnellerbridge lately which is treating me well so far

half harness
#

schneller = ninja ;-;

copper mason
half harness
#

its just german for "fast"

copper mason
#

I know

half harness
#

and they said in chat

copper mason
#

Ich verstehe Deutsch

half harness
#

uh

copper mason
#

nvm

half harness
#

opens up google translate

copper mason
#

I understand German

half harness
#

o

#

O_O

copper mason
#

thought it was a funny name

half harness
#

i think the bridge name came from a yt called lukaip

#

lol

#

but u can look up "eagle bridge" for the same bridge type

#

although for me it looks the same :p

copper mason
#

haha probably is

half harness
#

its like "schneller breezily" and "breezily" ๐Ÿคฆ

copper mason
#

well breezily is moving side to side

#

with ninja not so much

half harness
#

ig

#

well

copper mason
#

I can't for the life of me breez though

half harness
#

you can move less fingerguns

copper mason
#

kek

half harness
#

try moonwalk

#

๐Ÿคท

copper mason
#

Oh that's a new one

half harness
#

lol

old wyvern
#

bridge-general

half harness
#

๐Ÿคฃ

#

also it turns out i can spawn entities async

#

wait

#

assuming my code is working which it probably isn't

old wyvern
#

Its not about 'can'

half harness
#

I have a system to "switch" from sync to async, and I don't think it works

old wyvern
#

You will have issues at some point

half harness
#

probably

#

my tabcompleter not working ๐Ÿ˜ญ

ocean quartz
#

Pretty sure you'd get an error if you tried spawning it async

half harness
#

that means my method doesn't work

#

rip

hallow crane
#

Correct. You can't spawn entities async

half harness
#

okay

#

then that definitely means that my method doesn't work

hallow crane
#

Unless you have a server that supports multithreading which probably doesn't have a public API

half harness
#

what about getLocation?

hallow crane
#

Ehhhhh

#

Sure

half harness
#

yayyy

jovial warren
#

Good memes

half harness
jovial warren
#

I can't even see that KEKW

half harness
jovial warren
#

Didn't know Bukkit had it's own consumer

ocean quartz
#

I don't know why it does

quiet depot
#

d;spigot consumer

ruby craterBOT
#
public interface Consumer```
Consumer has 1 methods.
Description:

Represents an operation that accepts a single input argument and returns no result.

obtuse gale
#

Probably pre Java Consumer era? ccatrainbowshrug

ocean quartz
#

Assuming it's because it was made in Java 7

jovial warren
#

Consumer wasn't a thing in 7?

ocean quartz
#

Don't think so

wheat spire
#

y'all are using java 7???

#

Im using java 5

jovial warren
#

No but Bukkit was built on it

obtuse gale
jovial warren
obtuse gale
hallow crane
#

I am on Java 1.3

wheat spire
#

I have recently downgraded to java 0.6

ocean quartz
#

You mean upgrade?

hallow crane
#

I have recently decided to make my own JVM using z80 assembly

forest pecan
#

Why lol

hallow crane
forest pecan
#

How is that a joke

#

Lmao

regal gale
hot hull
#

ew

#

@quiet depot So I've got "modules" for certain things, stone cutter damage, phantoms not targeting players with a certain perm, now I need to add another one, however this one will also require a command and a papi class, should I switch to proper modules now, or should I just cram it into a package? (And if I were to switch to proper modules, would it make sense for some to be modules, and some not to be modules if they're smaller)

distant sun
#

@surreal quarry looks hot, for pagination would be possible to add something like buttons to allow players to switch between pages and/or something to change pages on an interval?

regal gale
#
ItemStackBuilder builder = new SkullBuilder()
  .setPlayer(event.getPlayer())
  .amount(3)
  .option().setTitle("&aMy head").apply()
  .nbt().set("Valid", true).apply();```
#
ItemStackBuilder builder2 = new ItemStackBuilder(Material.WHEAT)
  .amount(1)
  .option().setTitle("&aMy wheat").glow().apply()
  .nbt().set("Valid", true).apply();```
#

What's your opinion thonking

hot hull
#

That first apply seems overkill thien

#

Also wouldn't build be a better name for it

regal gale
#

The "apply" returns the Builder class

#
ItemStack finalStack = builder.build();``` ^ the finale here
hot hull
#

Yea,

ItemStackBuilder builder2 = new ItemStackBuilder(Material.WHEAT)
  .amount(1)
  .option().setTitle("&aMy wheat").glow().apply() // <- Why have two, when you could just use it to build the itemstack at the end 
  .nbt().set("Valid", true).apply();
regal gale
#

I might use more implemetation classes in the future, I will just leave it like that for now

#

Also, the PotionBuilder as well

jovial warren
#

Gl finding a CPU that can run that lol

distant sun
#

I got an intel pentium 4 if you are interested :))

hot hull
#

Any reason as to why PaginatedGui#update does absolutely nothing lol

regal gale
#

I also somehow managed to make myself a ServerVersion util to check mc version

hot hull
#

I mean not really that hard just check what version the server package contains lol

regal gale
#

Yeah guess that's true

hot hull
#

@ocean quartz Why is there no CommandManger#unregister method :sad:

#

Making me use reflection smh

old wyvern
#

Its supposed to unregister itself on plugin disable frost

#

Altho I dont think that really works well atm from when I last used it

hot hull
#

Yea not what I need, I need to unregister it when a condition is met

old wyvern
#

I see

hot hull
#

Indeed

empty flint
#

Can somebody help me understand the relation between HikariCP and Exposed?

#

From what I understand now after reading about them, HikariCP can create a connection pool and exposes a datasource for Exposed to use. Then I don't have to manage the pools myself and Hikari does that in the background - did I get that right?

old wyvern
#

Yes

empty flint
#

Perfect. What I don't understand is how to create a new database and switch the datasource to use that. Is that even possible?

#

Can I connect Hikari to a server without specifying the database?

#

Googling it doesn't result in any useful pages, maybe I'm using wrong keywords

old wyvern
#

Oh, afaik that part isn't Hikari's responsibility. You handle that in the same way you normally create databases with jdbc. Hikari only manages the connection pool.

Can I connect Hikari to a server without specifying the database?
Yes

hot hull
empty flint
#

Hm this is a bit hazy then. So I have to connect to the server, create a database, close the connection and then connect Hikari to the db again and pass that DataSource to Exposed and do my stuff like I normally would?

old wyvern
empty flint
#

Or can I connect Hikari, create the db, then switch to the db without closing the datasource and do my shit?

empty flint
#

So even idling connections are still connected to the old catalog

old wyvern
#

Are you sure?

empty flint
#

Hm I'll take a break and come back to it with a refreshed mind

old wyvern
#

Only case mentioned that I could find was it not working on specific drivers altho which ones they mean was not specified

#

I guess give it a try when you are free

jovial warren
#

Exposed?

#

๐Ÿ‘€

#

when I hear Kotlin libraries that I absolutely adore and use all the time being mentioned, I awaken lol

empty flint
jovial warren
#

sure

#

my DM's are always open for business KEKW

distant sun
#

Do you need hikari when using exposed?

jovial warren
#

no, just better to have it

#

actually, thinking about it, I don't even use Hikari in the places I use Exposed lol

distant sun
#

Hmm

#

Does exposed have support for sqlite?

jovial warren
#

yep

distant sun
#

Havent messed much with mysql and mc plugins

jovial warren
#

Exposed's DAO API might even be built in a way that allows you to add support for something like Mongo

distant sun
#

Interesting

#

Mongo is smth special

#

I dont like they way you to queries or smth but .. xd

jovial warren
#

but I believe it's mostly built for relational databases so

jovial warren
prisma wave
#

MittenORM

old wyvern
#

MORM

distant sun
#

Nah im ok with sqlite or mysql

#

Worm

prisma wave
#

import elara/orm

jovial warren
#

and PostgreSQL

distant sun
#

I need to learn more about databases structures though

old wyvern
#

Elara has its own database implementation

prisma wave
#

let database= SQL()

old wyvern
#

No more mysql and shit

prisma wave
#

YEE

#

YES*

old wyvern
#

ElQL

jovial warren
#

H2 is especially good for testing, because it supports in-memory SQL databases

distant sun
#

I have this table where a player (uuid) can have multiple entries but only one with a certain name

prisma wave
old wyvern
#

El-ara

jovial warren
#

el-QL isn't that bad to pronounce either

old wyvern
#

Elara Query Language

prisma wave
#

ahh

distant sun
#

Al quaida

prisma wave
#

I like it

old wyvern
distant sun
#

๐Ÿคฃ

jovial warren
#

okay let's not talk about Al-Qaeda in this christian Discord server

distant sun
#

:))

prisma wave
#

elara killed bin laden

distant sun
#

Somebody teach me how to use .patch files

quiet depot
#

why

distant sun
#

I want to modify essentials but still stay up to date with their changes

timber oak
#

How can I remove a specific amount of items from an inventory? With /rankup

prisma wave
#

I don't think you usually generate them yourself

jovial warren
#

the way you generate patch files is by making changes and turning them into patch files

prisma wave
#

Iirc git can generate them automatically

jovial warren
#

yeah it can

#

no one makes their own patch files

#

git format-patch

distant sun
#

Yea

#

And then what xd

jovial warren
#

also, you can stay up to date with the upstream by just forking and pulling when new changes happen

obtuse gale
#

This Video is sponsored by Raid Shadow Legends

distant sun
#

Wont that override my changes?

jovial warren
#

if they make changes to files you change then it might cause some weird merge errors

#

but apart from that you'll be fine

distant sun
#

And what do I do when that happen lol xd

jovial warren
#

just a word of warning to everyone about making changes like this btw: Git hates merging 2 branches with different histories into one

#

not sure

#

what do you even want to do to essentials anyway?

distant sun
#

Modify some commands and functions

obtuse gale
jovial warren
#

eh, it's a pain

obtuse gale
#

Kinda defeats the purpose if you say that

jovial warren
#

git won't auto merge 2 branches with different histories, so it's your job to go through and manual merge them

obtuse gale
#

Well yeah, machines aren't that smart

stuck harbor
#

that is what a merge conflict is, isnt it?

#

u should expect those

obtuse gale
#

I guess that's the name lol

jovial warren
distant sun
#

Soooo bbg

#

Would make sense to use patch files? xD

jovial warren
#

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

sharp siren
#

hey bombardy

jovial warren
#

hello

sharp siren
prisma wave
quiet depot
#

no

prisma wave
#

didnt think so

#

i cant think of anything else though

quiet depot
#

luck uses "Terminable"

prisma wave
#

hmm

quiet depot
#

i'm not sure if he has an init method though

prisma wave
#

i can't remember what Sxtanna used to use

quiet depot
#

oh maybe it was sx that used terminable

#

one way to find out

#

d;luckperms terminable

ruby craterBOT
#
public enum Tristate
extends Enum<Tristate>```
Tristate has 3 fields, 3 all implementations, 4 methods, and  1 extensions.
Description:

Represents three different states of a setting.

Possible values:

<br />

  • TRUE - a positive setting
  • FALSE - a negative (negated) setting
  • UNDEFINED - a non-existent setting
quiet depot
#

maybe it's just not in the api

prisma wave
#

maybe not

quiet depot
#

or maybe it's just not in luckperms

#

ah it's in helper

prisma wave
#

ah Sx called it State

#

which is similar

quiet depot
#

state isn't an appropriate name imo

prisma wave
#

yeah i agree

#

it seems off

quiet depot
#

ya know

#

there's a very easily solution

prisma wave
#

im not sure Terminable is much better, since that only implies kill

#

which is?

quiet depot
#

instead of one interface

#

two interfaces

prisma wave
#

o

#

true

#

yeah ima do that

quiet depot
#

ez

prisma wave
#

now what to call the 2 interfaces

#

Initializable and Destroyable?

forest pecan
#

Killable KEKW

quiet depot
#

destroyable aint it chief

prisma wave
#

yeah ik lol

#

i cant think of anything else lmao

#

might do RequiresSetup and RequiresCleanup or something

quiet depot
#

just do terminable and rename your method to term() or terminate()

#

and hell no

prisma wave
#

what about init?

quiet depot
#

Initializable is fine

prisma wave
#

alr

quiet depot
#

and i'm basing my opinion on initializable being fine on google's supposed supporting of it being using in api

#

oh

#

misread that answer

#

thought it said google used it in their apis

#

whatever still use it

#

it's fine

prisma wave
#

yea ok

#

although im not sure terminate gives the right impression

#

it's more about cleaning things up

quiet depot
#

neither does destroyable

prisma wave
#

ik kill sucks as well

#

but

#

yeah

#

Clearable?

quiet depot
#

is that what it's doing?

prisma wave
#

kind of

#

it would be for making things that have resources that need cleaning up

#

so PlayerContainer for example holds active players and that needs to be cleaned up once the game ends

quiet depot
#

autocloseable?

prisma wave
#

i am definitely overthinking this but im getting paid to make it so i wanna make sure i do it right

#

hmm

#

isn't that more about IO?

quiet depot
#

for reference luck's terminable is an extension of autocloseable

prisma wave
#

ah

#

hmm

quiet depot
#

file & socket handles are a typical usage

#

but I don't think a required one

#

idk

prisma wave
#

I'll just go Closable and Initializable I guess

quiet depot
#

closeable is taken

#

d;closeable

prisma wave
#

is it?

ruby craterBOT
#
public interface Closeable
extends AutoCloseable```
Closeable has 1 super interfaces, 22 sub interfaces, 1 methods, 109 implementing classes, and  1 extensions.
Description:

A Closeable is a source or destination of data that can be closed. The close method is invoked to release resources that the object is holding (such as open files).

prisma wave
#

o

#

forgot about that

#

it didnt show up in IJ

#

... because i spelt it wrong

#

ok final idea, Resetable

quiet depot
#

abatable

prisma wave
#

ive never heard that word before

#

ever

quiet depot
#

neither

#

but it sort of fits

prisma wave
#

i guess

quiet depot
#

it really depends on your method's contract

#

what are the requirements of this stop method?

prisma wave
#

hmm

#

I havent really thought that through much, but a Component would be required to cleanup any state before it's reused

quiet depot
#

would the initialization of a component have to be redone in order for a component to be reused after termination?

#

or would this reset method reset it to a point post-init

prisma wave
#

I havent put too much thought into this but I would say the first one

quiet depot
#

then simply don't reuse components

prisma wave
#

if we have a HungerGames class init would place any chests and fill them, destroy would unplace blocks, etc

#

hmm

quiet depot
#

oh ok

#

I misunderstood

prisma wave
#

im making this up as i go along so that's reasonable lol

quiet depot
#

yeah I don't usually plan

#

just go with the flow and it usually works out ok

prisma wave
#

mm

#

ive just made a ton of interfaces and a few data classes so far

quiet depot
#

anyone know a super performant http server for java?

#

apparently my http server is actually slower than my search algorithm

prisma wave
#

Isn't that just IO being slow

quiet depot
#

could be

#

idk much about this

prisma wave
#

I'm not sure there's much you can do there

quiet depot
#

well in other news my search algorithm is 50% faster

#

again

#

idek what I did this time

prisma wave
#

nice

hot hull
#

@quiet depot What place should I be looking for to find the stuff for the default javadoc

quiet depot
#

for default javadoc you'd need to add a column to the servers table, and add a modification command (along with a console & bot impl)

hot hull
#

How is it determined right now, just so I have a starting point

quiet depot
#

it's in the config.json

regal gale
#

Piggy it's been 2 days lmao

quiet depot
#

?

regal gale
#

I was gonna be excited about the class loader fix

quiet depot
#

I thought I already told you I didn't find anything

#

@hot hull for something similar, look at how the prefix is implemented

#

it should be basically an identical process for implementing the default javadoc into the storage system

hot hull
#

thonking

"default_javadoc": "jdk",
stuck harbor
#

wh

ocean quartz
prisma wave
#

not sure that's bukkit's fault

#

iirc the tab completion options packet is sent when the player joins

ocean quartz
#

Yeah i guess it's a minecraft thing

hot hull
#

You can update the packet tho iirc

#

As in resend it and it'll get rid of it

ocean quartz
#

As far as i tried i could never get rid of it completely, remember trying that to see if i could help clip since he needed that for dm i think
Well something i can give a shot again

prisma wave
#

i hate it

stuck harbor
#

lol

prisma wave
#

idk where to go from here

hot hull
#

What are you trynna do

prisma wave
#

idk

#

i think i will add logging

hot hull
#

@quiet depot JavadocCategory is what exactly?

#

This would be so much easier if you had atleast the basic components code documented ;C

prisma wave
hallow crane
#

its java

prisma wave
#

ik

#

pain

quiet depot
#

categories are a wip feature

#

they're implemented in storage but you can't use them yet

hot hull
#

Point me in the direction of identifying what javadoc is what

quiet depot
#

you can't

#

and you don't need to

#

it's literally just a string that you're storing

hot hull
#

Disgusting, imagine not having an enum atleast

quiet depot
#

they're not hardcoded?

#

javadocs are completely dynamic

#

they're from a config

hot hull
#

Makes sense

quiet depot
#

if you want to check if the javadoc exists when setting it via whatever command you make

#

then use the /javadocs route

#

check the JavadocsCommand for an example

hot hull
#

You're gonna reee at the code later, but cursed_fingerguns

quiet depot
#

lol

#

yeah that's all automated

hot hull
#

Why do you have to make my life hard

pallid sequoia
#

Hey there, I wanted to ask if you could give me some feedback on the docs of a framework I made (for minecraft): https://art-framework.io
The main question: is it clear how to start and what it does?
I would greatly appreciate any feedback you can give me. Thanks a lot!

prisma wave
#

ooo interesting

quiet depot
#

@hot hull u shouldn't need to touch embeds for this

prisma wave
#

seems pretty robust @pallid sequoia

#

im not sure how i feel about the actual syntax but the documentation is good

hot hull
#

Yea I know I'm just exploring Piggy

pallid sequoia
prisma wave
#

the config syntax

#

the api looks pretty good too

#

does it use classpath scanning?

quiet depot
#

uses lombok :>

#

and org.reflections

pallid sequoia
#

It is implemented, but I got massive problems in combination with the acf (commands) library, so I disabled it for now.

quiet depot
#

what you using jackson for?

pallid sequoia
quiet depot
#

why jackson though

#

if this is for spigot exclusively, spigot shades in gson

#

additionally if that jackson yaml extension you've got there is what I think it is

#

you're shading in snakeyaml, which is already a spigot dependency

pallid sequoia
#

It is not spigot exclusive, just a very small part is for spigot. The platform can be changed freely

quiet depot
#

still might be worth using gson instead of jackson due to the fact spigot (and most other minecraft platforms) already use it

#

on another note, regarding your org.reflections issue

#

classpath scanning as a concept in general is finnicky, and org.reflections itself as a library isn't perfect

#

I recommend simply scanning the jar itself instead

#

if you're not a fan of that you could also try classgraph

#

and guava also has a classpath scanning utility

quiet depot
#

ah ok

pallid sequoia
#

The problem is that the acf has some static code parts and when I try to scan all plugins at load it throws security exceptions when the first player logs in. I did not debug it yet though.

quiet depot
#

ah yeah

#

that'll also affect plugins that use nms

pallid sequoia
#

Do you know a way around that?

quiet depot
#

could simply catch classnotfoundexception

#

assuming that is what's thrown

hot hull
#

Piggy, I think I managed to do it, just need to add the initialization setting the default javadoc and db stuff

#

Once I find where that is tho

pallid sequoia
quiet depot
#

@hot hull ServerCreator

#

pls test ur shit frosty

#

it's super easy to test

#

i'm assuming you have mysql installed

hot hull
#

I modified that already Piggy

#

However for the db stuff, Here you don't interact with db at all, unless there's some hidden shit underneath

quiet depot
#

in servercommand

#

it tells ServerAdapter to apply the object to the raw table objects

#

and then that'll save to mysql

hot hull
#

Neato, meaning I don't need to interact with that at all

quiet depot
#

yep

#

if it worked the way I wanted it to you wouldn't have to touch ServerAdapter or the raw tables

#

but that was too hard to figure out

#

maybe in the future

surreal quarry
# distant sun <@348146715162968065> looks hot, for pagination would be possible to add somethi...

yea i wanted to get it all working with just a method to switch stuff, but iโ€™m adding features like that now. It has a #update() method and #showNextPage(vararg Player) as well as #showPreviousPage(vararg Player) so i figure itโ€™s easy enough to create a runnable for updating it as well as flipping through pages on an interval in whatever plugin you are using jt in, but iโ€™m definitely gonna add something to make the flipping through pages manually better.

hot hull
#

What's with the prefix reset listener Piggy

#

Also I just need the discord module right?

#

@quiet depot

prisma wave
hot hull
#

BM..

prisma wave
#

what

onyx loom
#

๐Ÿฅฒ

hot hull
#

Why would the config be a section and not a file configuraiton

#

configuration*

prisma wave
#

because the source could also be a specific section

half harness
#

also why do u have a saveconfig ๐Ÿ˜›

surreal quarry
#

you making that ORM?

prisma wave
#

nah this is a commission

prisma wave
#

but

#

this interface is supposed to wrap anywhere a section could come from - config.yml, another file, or a specific section in another source

#

so i need saveConfig defined

surreal quarry
#

you would probably need to make a new fileconfiguration

#

then loop the config section writing those values to the fileconfiguration

prisma wave
#

sad

surreal quarry
#

then save that

half harness
#

very ssad

prisma wave
#

ssad

surreal quarry
#

sadd

prisma wave
#

do i just copy all of the keys over manually

#

that sucks

surreal quarry
#

slap some recursion in there

quiet depot
#

@hot hull ye just discord, and prefix reset listener allows u to reset ur prefix if u forget it

#

@ruby crater resetprefix

ruby craterBOT
#

Successfully set the prefix to d;

half harness
#

๐Ÿ‘€

surreal quarry
#

yo

#

my library can call events right

#

i don't need to actually have a plugin do i

prisma wave
#

no

surreal quarry
#

nice

half harness
#

wot

half harness
#

or is it something to shade?

surreal quarry
#

im using my lib in moducore

#

but its gonna be something to shade

half harness
#

u can probably register events

#

idk if it needs javaplugin tho

surreal quarry
#

you can use static Bukkit methods

half harness
#

๐Ÿคท

#

ye

prisma wave
half harness
#

๐Ÿ˜

static zealot
#

what's that?

surreal quarry
#

So this library is going to end up creating x amount of HologramLines, but the library doesn't actually do any storage or keeping of any Holograms that get made, that is up to the plugin to determine if their hologram needs to be persistent, needs to be saved somewhere, etc. Is there a way to easily get all the lines that exist, maybe with recursion or something

prisma wave
half harness
static zealot
#

well i know what it is. but where is it from

surreal quarry
#

i do

half harness
#

that has all the stuff

surreal quarry
#

but i don't store that

static zealot
#

my questions are bad

half harness
surreal quarry
#

its up to the plugin to store whatever they need

half harness
#

like

surreal quarry
#

in case they want holos that don't persist or something

half harness
#

afk

surreal quarry
#

and if i have it persist, i gotta actually start saving stuff

#

my initial idea was it makes it easier to build a Hologram, and then if you want it to persist, you save it, then load it on enable and just call update again so all the people can see the pages they were looking at

static zealot
#

damn idk what to work on. I guess its that time of the year where I check request-free

#

Service] Server Setup

#

k found what to do xD

surreal quarry
#

oh shit

#

BM is orange

half harness
#

idk i think it just should be Plugin stores Hologram that stores everything

surreal quarry
#

damn

prisma wave
#

what the hell

surreal quarry
#

i just got baited

#

so hard

#

fuck you blitz

static zealot
#

:smiling_face_with_3_tears%

prisma wave
#

unanimated pfp ๐Ÿฅถ

static zealot
#

well nitro is not among us

#

I do have the gif

#

but no nitro

prisma wave
#

๐Ÿฅฒ

surreal quarry
#

i guess i can make a manager that they have to create for it to work and have the cache there, then they can choose when or if they want to save that cache

#

that way i will have all holos

static zealot
#

:smiling_face_with_3_tears% should become an emoji

surreal quarry
#

BM you hate mutability. what do you do for a cache that is just a MutableList<Blah>

#

or is mutability ok there

prisma wave
#

Uh

#

Bit of a vague question

static zealot
#

yes vague

surreal quarry
#

I have a cachedHolograms MutableList<Hologram>, and every time a holo is created, it gets added. every time one is deleted, it gets removed. if they save stuff they may want to refresh it by removing stuff & adding it back

#

is it actaully possible to do this without mutability

prisma wave
#

yeah but trickier

#

dw about it

surreal quarry
#

alr lol

prisma wave
#

as long as you're encapsulating it properly mutability is fine

static zealot
#

ok

prisma wave
#

what

surreal quarry
#

lol

static zealot
#

lol

surreal quarry
#

wait

#

i thought i said ok

#

hold up

steel heart
#

Blitz having fun again

surreal quarry
#

i hate you blitz

static zealot
#

oh xD

prisma wave
#

they really thought of everything

surreal quarry
#

lol

static zealot
#

IJ good

half harness
static zealot
#

your discord is broken

half harness
static zealot
#

well that was a gif

#

so I assume that's why it is like that

half harness
#

oh

#

lol

hot hull
static zealot
#

o

#

love the internet speed tho

hot hull
#

Shutup

static zealot
#

well its same as mine

#

nothing to be ashamed of xD

#

that's literally what I get and I have 1 Gbps cable but my network card in my laptop only takes 100 Mbps

#

xD

#

the fun thing is I have a 5G router but my phone is not even 5G xD

#

its weird tho because I thought that 100 Mbps would mean around 12.5 MB/s but its not

hot hull
#

@quiet depot Could you check when you get the chance, idk how to test this badboy cause I small brain https://github.com/Frcsty/DocDex

jovial warren
#

imagine having the GitHub default profile picture for 4 years straight amirite

#

I literally only just updated it today

hot hull
#

Burn the heretic

jovial warren
#

on the same day my GitHub Sponsors app got approved

static zealot
#

github sposnors app? What's that

jovial warren
#

because even though literally no one's gonna sponsor me, I thought I might as well, on the off chance that someone actually does

static zealot
#

ahh

#

ok finally I'm back

#

fuck

#

?help

compact perchBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

static zealot
#

here we go

hot hull
#

kek

jovial warren
static zealot
#

my pfp

#

discord has a limit to how many times you can change

#

and was stuck with the other one

half harness
#

lol

static zealot
#

worth tho

#

James felt for it 2 times even when I had his pfp and name

#

lmao

#

he thought he typed something when I did xD

#

I think I should continue my java courses but I'm to lazy ๐Ÿ˜ฆ

forest pecan
#

havent u already learned java

#

lmao

static zealot
#

well

#

there are 5 courses in total

#

I took 2 of them so far

#

and no

#

I started with kotlin

forest pecan
static zealot
#

there was that meme with java bad kotlin good and when I actually asked which which I should start people seriously told me kotlin so I did it.

#

I don't regret a lot tho

forest pecan
#

well get used to semicolons

#

lmao

static zealot
#

yeah

steel heart
#

Java is noice

static zealot
#

good thing IJ keeps telling me

#

xD

forest pecan
#

lmao

steel heart
#

Somewhat prettier than kotlin ngl

static zealot
#

I even use val sometimes

steel heart
#

Lol in java?

static zealot
#

yeah

steel heart
forest pecan
#

it does exist tho

static zealot
#

well in javascript as well like I literally did it a couple hours ago

forest pecan
#

in java 11 and up

#

i think

#

or smthing like that

#

oh wait

steel heart
#

Thatโ€™s var

forest pecan
#

is it var

#

yeah

#

nvm

steel heart
#

And itโ€™s just scoped I think

#

So we canโ€™t use it for fields

forest pecan
#

mhm

static zealot
#

yeah that's the problem with me sometimes information just mixes together.

#

well one of my many problems

#

lmao

steel heart
#

One to many

static zealot
#

Bad Memory, Laziness, Bad Learner
Toyota

steel heart
#

Dafuq

#

Toyota

static zealot
#

don't you know the meme?

#

seems like it was not that big of a meme. but it was like enumerate 3 bad things and then say Toyota. Like they usually name 3 good things about their car like Fast, Cheap, IDK - Toyota

forest pecan
#

im trying to fucking explain to a bunch of nons on why final is useful

hot hull
#

Pulse, don't sweat it

#

Let them be idiots

forest pecan
#

honestly

#

lmao

#

spigot discord never behaves

prisma wave
#

just say it makes your code faster

forest pecan
#

lmao

prisma wave
#

That's not entirely untrue

forest pecan
#

Yeah

stuck harbor
#

lua's syntax is actually growing on me

#
if (foo) then
  bar()
end
#

mmm

forest pecan
#

@steel heart

#

just get out of the discord lmao

#

that 7smile7 kid is toxic af

prisma wave
#

if foo => bar()

stuck harbor
#

ew

steel heart
#

Everyone cries cuz I pulled a joke

forest pecan
#

lmao

stuck harbor
#

lua comments are

-- Comment mmmm
#

I likey

prisma wave
#

That reminds me of another great language

steel heart
#

Actually @forest pecan

#

Iโ€™m leaving it

forest pecan
#

lmao

steel heart
#

Enough of those dodos

#

Lost too many brain cells

forest pecan
#

lmfao

hot hull
forest pecan
#

all

steel heart
#

All

forest pecan
#

hah

#

first

#

L

hot hull
#

I don't have enough money for all

forest pecan
#

then get money

#

B)

hot hull
#

Oh wait I can't buy any rn

#

Need to go scan some fuckers apparently

forest pecan
#

lmao

steel heart
#

Lol nerd

hot hull
#

Did you just call me a nerd

steel heart
forest pecan
#

omgomg

#

he plays terraria

#

so cool

hot hull
#

Oh god I need to go kill sentients

forest pecan
#

omgomgomg

hot hull
forest pecan
#

thats a blob from terraria

#

or slime

steel heart
#

Terraria?

#

Oh yeah

#

Itโ€™s a GOOD game

forest pecan
#

i pirated it

#

lmao

steel heart
#

Bruh

forest pecan
#

it doesnt work anymore tho

#

xD

#

i was like 5

#

when i made a video on it

steel heart
surreal quarry
static zealot
#

when you're 4 videos ahead of your course ๐Ÿ˜ฆ

surreal quarry
#

ty

old wyvern
static zealot
#

no thanks

#

I kinda stopped taking advice from you xD

old wyvern
#

๐Ÿฅฒ

ocean quartz
#

I wonder how hard it would be to make a .net Kotlin compiler thonking

old wyvern
#

switch

forest pecan
#

hey

#

indian dude

#

can you teach me how 2 dance

#

to song

old wyvern
#

Sure mate

#

Or maybe go ask your mum

static zealot
#

I teached her how to dance

ocean quartz
#

Jokes aside tunuk tunuk is a bop

old wyvern
#

Whats tunuk tunuk?

ocean quartz
old wyvern
#

tf is that xD

static zealot
ocean quartz
#

You've never heard it? xD

old wyvern
#

Nope xD

ocean quartz
#

It's a big meme

old wyvern
#

welp xD

forest pecan
#

Ohhh

#

i know that

#

go to 0:33

#

LMAO

old wyvern
#

xD

surreal quarry
#

smh pdm doesn't recognize mavenLocal

ocean quartz
#

Well that makes sense xD

surreal quarry
#

lol

static zealot
#

lmao

forest pecan
#

guys

#

i can write code

#

๐Ÿคฉ