#dev-general

1 messages · Page 209 of 1

onyx loom
#

for everything i think

steel heart
#

yo thats epic

onyx loom
#

i kinda like the kebab case

steel heart
#

@prisma wave so like whats the best feature of elera

obtuse gale
#

elara is the best feature of elara

prisma wave
#

At the moment not much since it barely works

obtuse gale
#

lmao

prisma wave
#

Eventually the type system will probably be its main attraction

#

i kinda like the kebab case
@onyx loom me too, once you get used to it I think it's pretty nice

steel heart
#

hmm and who is your biggest opponent

prisma wave
#

Kotlin

onyx loom
#

👁️

prisma wave
#

Andrey has sent at least 3 assassins to try and stop us so far

#

He is scared

#

Very scared

steel heart
#

lol

prisma wave
#

But yeah it will be a JVM language so I guess a nicer alternative to kotlin

#

Or Java ofc

steel heart
#

aye

safe lily
#

@hot hull where does the HikariCP properties file Go tho? Can I put it in the same package as my Database class or does it go in the resources folder? (like the Plugin.yml - Maven)

prisma wave
#

Almost definitely in the resources folder

hot hull
#

It goes in the resources folder

safe lily
#

Same directory as the Plugin.yml aight?

hot hull
#

You can specify it's path when you create a new HikariConfiguration

safe lily
#

Yeah I saw

#

Thanks!

#

Would you mind taking a quick look at my git repo and telling me what’s dirty code too/what I could improve?^^

#

@hot hull

frail glade
#

It's crazy how nice HikariCP works right out of the box. I got handed a project the other day and was asked to fix it because it took like 90 seconds to save the data on shutdown. It was straight raw statements and connections. I managed to fix it without modifying anything except changing it from using a single connection to HikariCP pools.

hot hull
#

Link the repo here, I'm sure someone wouldn't mind having a glance

distant sun
#

Time to learn how to use Hikari ig

hot hull
#

Glare yea Hikari is ❤️

safe lily
#

Okay :)

#

Hikari is the best solution :)

steel heart
#

plain files is superior fast_parrot

frail glade
#

I just wish I understand SQL on a better level. I can easily do basic stuff but when it comes to relationship stuff across multiple tables, it gets me a little bonkers.

steel heart
#

if you use a txt file for storing data, I am your biggest fan

safe lily
#

I am going to link it in a few mins :) gotta commit the changes

hot hull
#

I've so far never had to do relational stuff with it since none of the projects required it, but will be fun to learn when I do have to

safe lily
#

I just wish I understand SQL on a better level. I can easily do basic stuff but when it comes to relationship stuff across multiple tables, it gets me a little bonkers.
like a Relation table that connects multiple tables?

prisma wave
#

@steel heart nice name lol

steel heart
safe lily
#

But why can’t you change the connecting messages?:c

#

Of Hikari

hot hull
#

Have you checked the docs?

#

@ocean quartz Slight issue with your plan tho, at the point in time where I need that, the current is still empty since stuff get's added when you build the menu, which is too late

safe lily
#

no

#

good idea

hot hull
#

Although I think I can manually load the paged items, which in theory should work

safe lily
#
dataSourceClassName=org.mariadb.jdbc.MySQLDataSource
dataSource.serverName=localhost
dataSource.portNumber=3306
dataSource.databaseName=clan_database
dataSource.user=root
dataSource.password=
#

so I can remove all this now? ->

#
        String host = "localhost";
        int port = 3306;
        String database = "clan_database";
        String user = "root";
        String password = "";

        HikariConfig config = new HikariConfig();
        config.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + database);
        config.setUsername(user);
        config.setPassword(password);
hot hull
#

You should leave all that to be configured through your properties

safe lily
#

private HikariConfig config = new HikariConfig("datasource.properties");

#

wdym

#
hikari.properties:

driverClassName=com.mysql.jdbc.Driver
jdbcUrl=jdbc:mysql://localhost:3306/clan_database
username=root
password=

Database class:

public Database() {
        HikariConfig config = new HikariConfig("hikari.properties");

        ds = new HikariDataSource(config);
    }
#

@hot hull

hot hull
#

Yes, now you get your connection using ds#getConnection()

safe lily
#

yeah, thanks :)

#

public Connection getConnection() throws SQLException {
return ds.getConnection();
}

#

I am not sure obut driverClassName tho

#

whats that? is it needed?

ocean quartz
#

@hot hull Yeah there is no concept of pages until the gui is opened

hot hull
#

@safe lily I don't believe it is no

#

@ocean quartz Which is :((

safe lily
#

If someone is willing to take a quick look on my project/repo and telling me what I could improve / what's dirty code.

#

Thanks in advance 😊

#

(I have to add you to it then, cause its private)

#

@hot hull Yeah there is no concept of pages until the gui is opened
why is there a problem with that? :c

ocean quartz
#

@hot hull Why do you need the slot?
Could be easily changed for that

safe lily
#

If someone is willing to take a quick look on my project/repo and telling me what I could improve / what's dirty code.
do you have a few mins for it? @ocean quartz 🙂

ocean quartz
#

Not right now, sorry

safe lily
#

okay, no problem :)

hot hull
#

Matt, let's say I have two rows, the first row should be loaded using addItem (since it's a paginated gui) however each of those items should have another item attached which is 9 slots infront of that item (a row lower). Meaning I need to know to which slot the first item was added so I can add the second one

#

If that makes sense lol

safe lily
#

why do you make your life so hard lol

hot hull
#

The repo is private Lokke

safe lily
#

yeah whats your git name?

hot hull
#

Frcsty

safe lily
#

can you see it now? :)

hot hull
#

Mhm

safe lily
#

Cant you add the items in a list first?

#

and set the corresponding item to the index +9

hot hull
#

It's a paginated gui so no, it fills the empty slots, however I don't know the empty slots until the menu was built (which is when it gets opened)

safe lily
#

ik

#

but you could loop through the list then

#

and add the items out of the list in the paginated menu

#

in the list you can get the indexes (imaginary slots)

#

Do you get what I am aiming for?

ocean quartz
#

I kinda understand what you mean

frail glade
#

Unsure as to why you would need to?

safe lily
#

It's a paginated gui so no, it fills the empty slots, however I don't know the empty slots until the menu was built (which is when it gets opened)

ocean quartz
#

I mean even if you are filling the GUI you still can know which slot the first item will be set to

hot hull
#

Yea I guess can just have a list which stores the added items and just use that to identify the slot

#

I'm overcomplicating shit again reversed_fingerguns

safe lily
#

told ya

#

you took a look into my repo? @hot hull o3o

ocean quartz
#

Your repo is private

#

java: as of release 10, 'var' is a restricted type name and cannot be used for type declarations or as the element type of an array
God dammit java

prisma wave
#

Yes I'd like an array of vars

scenic oak
prisma wave
#

they're both gross

#

but yes I think so

#

actually not quite

#

the second one will check !regionHasPVP(region, player) twice whereas the first only checks it once I think

#

but yeah, strings instead of booleans, random magic numbers, messy logic, this is pretty messy code

obtuse gale
#

🇱 🇲 🇦 🇴

#

🇰 🇪 🇰 🇼

dawn hinge
#

🇸 🇭 🇺 🇵 🆙

prisma wave
#

flushed slight_smile elaramoon

obtuse gale
#

shup up lmao

safe lily
#

Your repo is private
What’s your git name so I can add you? @ocean quartz

distant sun
prisma wave
#

knightzmc*

safe lily
#

Oh

#

You are added now @ocean quartz

ocean quartz
#

Oh nah dw, if it's not public i won't look xD

prisma wave
#

average null checker: 😫 😴 ☹️

average nil checker: 😄 🔥 😎 HelpChat

obtuse gale
#

average niall checker: 🥶 😐 ☹️ 🌚 🌝 🙂

prisma wave
#

:full_moon_with_face:
Click to learn more

obtuse gale
#

A default emoji.

prisma wave
#

A default emoji. You can use this emoji everywhere on Discord.

#

😦

#
let print-value = (String x) => {
    print(x)
}
print-value(3)```
should this compile
#

maybe

#

maybe not

onyx loom
#

u tell me mr. elara mitten

obtuse gale
#

imagine implicitly casting everything into a string ||cough cough js||

prisma wave
#

at the moment no because we don't have a compiler

#

checkmate "kotlin users"

#

but I think it should work because String has the same contract as Int

#

until we start adding "methods"

#

then it will not work

#

hopefully

#

only one way to find out

#

🙂

#

sorry babe, the jetbrains material UI atom one dark theme with Jetbrains Mono 13 point and font ligatures enabled stays on during sex

#

i am a fool

#

type stores "array" (slice) of functions not map[string]function

#

idiot

#

why

#

golang is obsolete

#

Cannot use 'functions' (type []Function) as type map[string]Function

#

:/

ocean quartz
#

Oh yeah forgot to share some stuff i found today

onyx loom
ocean quartz
#

Now Kotlin

#

52% of Kotlin developers use coroutines lmao

#

Where the Elara stats at

prisma wave
#

how do you use Elara:
100% fun
100% work
100% to cure cancer and send humans to mars

#

true stats

steel heart
#

Nocap

obtuse gale
#

100% to cure cancer and send humans to mars
elara musk

onyx loom
#

so does this mean kotlin good rust bad?

#

hobbies kek

#

imagine not being paid for work on kotlin kek

distant sun
#

"How do you use Rust?"
"I don't"

onyx loom
#

niall felt that.

prisma wave
#

pog

#

elara's first method / function

onyx loom
#

congrats!

prisma wave
#

😊

#

concatenate a string

onyx loom
#

add " world" to "hello"

prisma wave
#

^

onyx loom
#

"hello world!"

#

bm, wheres "hello".plus " world" tho

#

no brackets

#

🥲

prisma wave
#

that will be added soon

onyx loom
#

soon™️, i see

prisma wave
#

except Yugi hasn't added it to the parser yet and I cba to do it

#

yes

#

very soon

onyx loom
#

very

prisma wave
#

it would actually be "hello" plus "world" which is even hotter

#

or just a +

onyx loom
#

o

steel heart
#

What about “Hello” minus “world”

onyx loom
obtuse gale
#

smh efefury

#

smh

onyx loom
#

because a plus function can be useful

steel heart
#

I guess it’s just an odd flex

prisma wave
#

indeed

#

who was it that wanted yeah and nah support or whatever it was

#

possibly

#

it's ambiguous

onyx loom
#

boolean yeah boolean nah

#

screw true/false

steel heart
#

Add maybe also (:

onyx loom
#

elara supports quantum processors, im sure it does

prisma wave
#

quantum computers were invented for elara

#

normal computers were holding it back

onyx loom
#

elaras too fast lulw

steel heart
#

Elera supports 9th dimension

#

So we can basically roll back time?

prisma wave
#

time.stop() :))

onyx loom
#

o

steel heart
#

So does Elera have null or nil or another one for representing absence?

onyx loom
#

there is no absence 🙃

prisma wave
#

result types mostly

onyx loom
#

its completely null free 🙃

steel heart
#

Oooo

#

Wait show me

prisma wave
#
let result = some-operation()
match result {
  Some => print result.value
  None => print "No value"
}```
#

with implicit boolean conversion too :))

steel heart
#

None would be default ?

prisma wave
#

Some is coerced to true, None is coerced to false

steel heart
#

Hmm nice

prisma wave
#

so you can do rust if result => print result.value else { print "No value" }

steel heart
#

ternary exist?

prisma wave
#

not as a language feature

#

but as a function instead

steel heart
#

Oh well that’s reasonable

prisma wave
#

bad news, yeah and nah are gonna be tricky to implement - ParseBool seems to think that they're not valid booleans 😦

steel heart
#

lol

prisma wave
#

nevermind

#

got it working

ocean quartz
#

Ayy after a while managed to get some values from file already

#

ConfigMe does something pretty odd, it "normalizes" the read map to make sure that the keys are actually string, but i can't think of any possible situation that it won't

quiet depot
#

@ocean quartz what you using configme for?

ocean quartz
#

I'm not using it, just checking how it works

fervent obsidian
#

just copying the repository and dependency to my pom.xml?

#

or what?

umbral mica
#

What's your goal

distant sun
#

it has an example for gradle and maven

onyx loom
#

there is no ; there lol

hot hull
#

@ocean quartz Was able to get it working, however it's still a bit wonky when you have multiple pages so gotta fix that, but otherwise fingerguns

oak coyote
#

I like how the leggings and the chest plate are the wrong way around @hot hull

#

That really gets to me

hot hull
#

It randomly loads them in and I legit can't be bothered with that

oak coyote
#

Ahh right

#

I presume it’s from a config

hot hull
#

It's all dynamic, hence the funkines

oak coyote
#

You could provide them with a slot: number they can provide

#

To give some order

hot hull
#

That would get tedious af, since you'd have to configure everything

static zealot
#

ye

#

better like this Frosty

#

we love anarchy

hot hull
#

Anarchy best

#

This way you can't memorize which button to click when you want to disable something 😏

oak coyote
#

But my OCD is going crazy and i have only mild

hot hull
#

That's what we like :))

static zealot
#

beautiful

#

you could even say: poetic.

distant sun
#

why dont you just enchant the item if it's enabled?

hot hull
#

That was my first idea, however it's not clear enough, especially if you have a resource pack

static zealot
#

is this going to spport 1.8-1.16?

#

because if its just going to be 1.13+ you can use gray and lime dyes instead

#

I think on 1.12- the textures are different tho.

hot hull
#

It's a commission, and it's 1.8 sad_fingerguns

static zealot
#

oh 😦

oak coyote
#

That makes me want to puke

#

Could you not use their old ID’s to sort?

#

That would at least put the armour in the right spaces

static zealot
#

@hot hull use glass panes then

#

green and gray

#

light gray of course

hot hull
#

nein

static zealot
#

ok 😦

#

but at least use gray instead of red

#

light gray*

oak coyote
#

nein

hot hull
#

Well no that doesn't make sense Blitz, the item has two states, Disabled and Enabled, light gray would mean Undefined

static zealot
#

😦

oak coyote
#

When the rest of us see Boolean we see 2 states blitz here with his third state 🙄

hot hull
#

Well I mean a Boolean can have 3 states fingerguns

oak coyote
#

True but not in this context

hot hull
#

Indeed

static zealot
#

what third state? I was literally asking to be gray instead of red

#

so it would be gray and green

#

its still 2

#

I know I suck at math but I can count to 2 ...xD

oak coyote
#

Well I’m just messing with you now

#

I have been for a while

static zealot
#

oh rly?

#

I don't care

oak coyote
#

I just think red is more clear than grey

static zealot
#

gray > red

obtuse gale
#

no

static zealot
#

😦

distant sun
#

That was my first idea, however it's not clear enough, especially if you have a resource pack
@hot hull not your problem

#

I personally do stuff for people that use default textures, if something is broken for the others is not my concern

hot hull
#

I mean

distant sun
#

Either I'm stupid and idk how to read the documentation, or moodle's rest api is bad

hot hull
#

What you trynna do with moodle kek

distant sun
#

read some data from courses

hot hull
#

hmm

distant sun
#

soooo can anybody help me with moodle rest api docs? xd

fervent obsidian
#

it has an example for gradle and maven
@distant sun I know but im getting these when implementing the dependecy http://prntscr.com/v3s17x

#

I have the repository added too

#

( Adding the Vault API to my plugin )

distant sun
#

reload the maven imports

fervent obsidian
#

how?

#

Im on Windows

#

Ok now its recognising the dependency

#

but it stills the "Economy" in red

#

Like the photo i sent recent

hot hull
#

Have you imported it?

safe lily
#

It's a commission, and it's 1.8 sad_fingerguns
wht bout glass panes instead of blocks?

#

@hot hull @ocean quartz did you take a look at my project? :c

hot hull
#

I have a tad, haven't had time to check it out completelly

safe lily
#

okay :c

#

glass panes would look more clean imo @hot hull

#

or dyes

#

blocks are so wonky

rose narwhal
#

I was wondering if its possible to force beds to have an explosion much larger than they currently are using a plugin? Im rather new to making plugins and such, just wondering if it is possible

safe lily
#

yeah for sure

#

just listen for a InteractEvent on a Bed

#

and if the player who interacts is in the nether

fervent obsidian
#

Have you imported it?
@hot hull i dont have what to import

safe lily
#

spawn a explosion

fervent obsidian
#

i think, or im doing things wrong

rose narwhal
#

does that mean I would have to cancel the normal explosion

safe lily
#

you should

rose narwhal
#

and then sort of replace it with a larger one

safe lily
#

you could just cancel the event and remove the bed by yourself

#

and then spawn the explosion

rose narwhal
#

would this add a delay the explosion

safe lily
#

no

#

as long as you dont use a delayed scheduler

#

just a few micro seconds

rose narwhal
#

yeah that makes sense, I guess the actual explosion radius is something that is hardcoded into the server code

safe lily
#

maybe it isnt

#

search it up on the spigot forums

rose narwhal
#

So i have to change stuff in Spigot itself if i wanted to make it directly larger

#

I did

safe lily
#

but if it is this is the solution

#

yeah you have to code a plugin for it I guess

rose narwhal
#

allright

#

thank you for the help :)

#

One more thing, I want to create a 1.8.9 pvp server, However I know that its much less up to date than 1.12.2 with bug fixes, would it make sense to use a 1.8.9 spigot server or a 1.12.2 server with the weird 1.8.9 pvp plugin (like hypixel does it iirc)

normal talon
#

uh hypixel is a 1.8.9 server

#

but you can use 1.12.2 server with via version to let 1.8.9 players join with pvp mechanics plugin

rose narwhal
#

allright, I think ill just make it a 1.8.9 server

hot hull
#

:ew:

rose narwhal
#

lmao

normal talon
#

very sad

rose narwhal
#

it sounds like less effort

normal talon
#

yea but I think you still should do 1.12.2

#

it's way better my life became good after 1.12

#

server change

rose narwhal
#

I played far too much 1.12

#

yea but I think you still should do 1.12.2
how so?

#

is the 1.12.2 server that much more efficient and stable?

#

god damn I can't type today

normal talon
#

ofc

#

more options than 1.8.8

fervent obsidian
#

Someone can give me a hand implementing the VaultAPI? http://prntscr.com/v3sxjk
(i already added the depencendy and the repository)

rose narwhal
#

more options than 1.8.8
what do you mean by this?

normal talon
#

Why dont you just implement it 1kg

#

Its better than 1.8.8

rose narwhal
#

In terms of.....

normal talon
#

like those 3 plugins that you need to install isnt such a big deal xd

hot hull
#

Show me your pom.xml/build.gradle @fervent obsidian

normal talon
#

In terms of.....
everything

#

plugins, peformance etc

rose narwhal
#

Ill test it

#

Im expecting the server to get like 7 players max

#

although..

fervent obsidian
#

Show me your pom.xml/build.gradle @fervent obsidian
@hot hull Ok

hot hull
#

=paste

compact perchBOT
#
HelpChat Paste

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

rose narwhal
#

im running on the cheapest server I can find

#

we will see

#

aight

fervent obsidian
#

Why dont you just implement it 1kg
@normal talon Bcs i dont know how to, they dont give me a .jar to just implement it

normal talon
#

where is your repo

hot hull
#

Reimport maven and that's that, iirc correctly however vault has a transitive dependency which you have to exclude

fervent obsidian
#

How can i reimport maven?

normal talon
#

and then go to projoct structure

hot hull
#

Cozy no.

regal gale
#

Don't

normal talon
#

Well it didnt work for me with that maven thing before

#

so I had to do it that way

regal gale
#

If you want to do that approach, at least use buildtool

hot hull
#

1kg, there's a Maven tab on the right side of ur IDE, open the tab, and click the refresh button

#

Cozy, that's the biggest bs I've heard today

normal talon
#

ikr

#

but its true...

hot hull
#

It's not tho

normal talon
#

...

#

did you see my screen or something ...

fervent obsidian
#

Now is working

#

thx!

safe lily
#

uh hypixel is a 1.8.9 server
@normal talon lies!

#

Hypixel is a 1.7 server

hot hull
#

Hypixel is a non versioned server

#

Take that weebs

normal talon
#

bruv

#

correct

safe lily
#

no it is

#

the servers run on 1.7

#

but with some plugin magic

normal talon
#

there is no magic

safe lily
#

they let it work on any version

normal talon
#

its 1.8

safe lily
#

no

#

it is not

normal talon
#

yea you can join with 1.7 so what

#

its 1.8

safe lily
#

its 1.7

normal talon
#

proof /

obtuse gale
#

the servers run on 1.7
but with some plugin magic
they let it work on any version
this must be the most hilarious bullshit I've heard in years AHAHAHAHAHAH

normal talon
#

ikr

dawn hinge
#

they used to support 1.7

normal talon
#

they still do

dawn hinge
#

hypixel? no

normal talon
#

1.7 to 1.16.3

safe lily
#

they do

dawn hinge
#

??

obtuse gale
#

the server is one version only
they advise you play on 1.8.8
you can join with any client version, but the server version is still one
they don't run 1.7 because they have 1.8 features

safe lily
#

yes but the foundation is build on 1.7

normal talon
#

....

#

dude please stop

dawn hinge
#

they stopped supporting 1.7 users on dec, 2015

#

are you living in the past or something

safe lily
#

hypixel runs on 1.7 in the background

obtuse gale
#

proof?

safe lily
#

they just simulate the features

obtuse gale
#

???????????????

safe lily
#

jayavarmen said it

#

lol

obtuse gale
#

that's not how servers work

#

jayavarmen said it
who tf is that

safe lily
#

the owner tf

obtuse gale
#

AHAHAHAHA

safe lily
#

well an admin

old wyvern
#

hypixel runs on 1.7 in the background
@safe lily
1.7 in the background

#

🙃

safe lily
#

idk how their owner/admin system is handled

old wyvern
#

What are you on?

safe lily
#

wdym Yugi

normal talon
#

Hypixel is the owner

#

aka simon

safe lily
#

and Jayavarmen is one of the top admins

normal talon
#

dude stop it

#

have you ever setup a server

old wyvern
normal talon
#

😂

hot hull
#

Talking like hypixel is some 100 player server and they use spigot plugins yes yes

safe lily
#

dude

obtuse gale
#

you can't "simulate" 1.8 features on a 1.7 server

#

you run a 1.8 server!!!!!!!!

safe lily
#

They use 1.7.10, they can use everything from newer versions because of some SERIOUS coding and plugins. They made their own viaversion

#

dude you are the real lost boy here

obtuse gale
#

wow

#

you were seriously brainwashed

safe lily
#

please stop talking with me

#

no

obtuse gale
#

LMAOO

safe lily
#

dude

#

stop

obtuse gale
#

you are making some unbased claims

safe lily
#

let me speak

#

no

obtuse gale
#

do speak

safe lily
#

it is based

obtuse gale
#

but show me proof

distant sun
#

havent they dropped the support for 1.7 like 3 years ago?

obtuse gale
#

show me links

#

screenshots

safe lily
#

I got proof

obtuse gale
#

show them

distant sun
#

what would be the purpose of using 1.7 and not support it

safe lily
#

I am not talking bout support of 1.7

#

Im talking bout the servers

#

and they run on 1.7

distant sun
#

?

safe lily
#

and they can simulate upper version features

old wyvern
obtuse gale
#

but show me proof
show me links
screenshots

safe lily
#

yeah Yugi that are the version which you can play with

prisma wave
#

then why run 1.7?

normal talon
#

LOKKE maybe try coding in 1.7.10 and implement it on 1.8

prisma wave
#

lmao

safe lily
#

dude

old wyvern
#

What is your point my guy lol

distant sun
#

simulate? wtf

old wyvern
#

also km elara disc 1 min

safe lily
#

they already do simulate upper versions on gamemodes etc.

normal talon
#

I thought I was on something but this dude

safe lily
#

can yall calm down

normal talon
#

no

#

why

obtuse gale
#

they already do simulate upper versions on gamemodes etc.
so they run 1.7 but they simulate ONLY 1.8 features

safe lily
#

so I can explain myself

hot hull
#

You both be on some weird shit

safe lily
#

well I wont explain myself then

normal talon
#

sometimes

obtuse gale
#

do explain but show proof!!!

safe lily
#

there are currently 4 people debating against me

#

yeah I will

#

look

normal talon
#

Don't take part or provoke arguments.

#

ooh broke the rules

distant sun
#

alright, stop

obtuse gale
#

I just want proof

safe lily
#

stop please.

#

alright, so

#

the supported versions are 1.8-1.16

#

yes

#

BUT

#

the servers actually run on 1.7

#

they code their plugins, so they adapt to the version you join with

normal talon
#

DUDE NO

safe lily
#

for example

#

hear me out.

normal talon
#

you cant use 1.8 blocks on 1.7 freaking version

obtuse gale
#

Cozy let them explain

#

I want to see where this goes

safe lily
#

hear me fricking out.

#

you are right cozy

#

that isnt possible

old wyvern
#

The world is actually flat, but you imagine it as a globe
K tnx bye

safe lily
#

but

hot hull
#

Yugi :OOOO

normal talon
#

The world is actually flat, but you imagine it as a globe
K tnx bye
It isnt flat bruv

safe lily
#

bruh

#

Im out

normal talon
#

bye

obtuse gale
#

🤣

normal talon
#

have a nice day LOKKEE

safe lily
#

why are you so ignorant?

obtuse gale
#

but show me proof
show me links
screenshots

normal talon
#

cuz u on some thing

obtuse gale
#

I get your premise

safe lily
#

you didnt even let me explain myself. I am allowed to have my own opinion.

obtuse gale
#

I understand it

old wyvern
#

You should ask yourself that question lok

safe lily
#

no

obtuse gale
#

We do get the premise

#

but show proof!!

safe lily
#

yes

#

I was about to

dawn hinge
#

go ahead

old wyvern
#

Sure, present them

safe lily
#

but then someone spams the whole chat again

dawn hinge
#

let the man speak

old wyvern
#

No, we shall wait, do present your proof

obtuse gale
#

k everyone stfu so they can share proof

safe lily
#

they already do such simulating stuff in gamemodes like bedwars

#

for example

#

if you join with 1.8

#

there are normal beds

#

but

#

if you join with 1.13+

#

the beds have your tea mcolor

#

team color*

normal talon
#

thats called NMS

safe lily
#

yes

#

and thats what I am talking about the whole time

obtuse gale
#

There is nothing proving your original statement

#

Hypixel is a 1.7 server

normal talon
#

but they dropped 1.7.10 so yea bruv

safe lily
#

the server is a 1.7 port to 1.8

obtuse gale
#

And vanilla 1.16 is a port from vanilla 1.15.2

#

By mojang

safe lily
#

the server runs on a modified 1.7 version

obtuse gale
#

Serious question

#

Do you know what "proof" is?

normal talon
#

Evidence of something

old wyvern
safe lily
#

well I got a vid where a youtube talks about his talk with the admins

#

and they said that

normal talon
#

admin isnt the developer

safe lily
#

dude

obtuse gale
#

From everything you've been saying so far, all we've got is that they support connections from newer clients

safe lily
#

some admins are the leaders of the developer team

obtuse gale
#

Not that they run 1.7

old wyvern
#

waffle

safe lily
hot hull
#

Yugi, waffle where

obtuse gale
#

Lokke, mind pointing out a specific minute:second?

safe lily
#

sure

obtuse gale
#

Because I'm not watching a 20+ minutes video

safe lily
#

0:52

old wyvern
hot hull
#

:c

safe lily
#

🧇

obtuse gale
#

Well that's the moment some guy on youtube says they run 1.7

#

Where does he show that?

normal talon
#

Blue waffel

safe lily
#

yeah

#

he was always trustworthy

#

but I see that it isnt enough proof

#

but I cant give you anything else right now

#

are you programming something atm? @obtuse gale 🙂

#

yes?

#

what are you working on rn? :)

safe lily
#

just interested

#

you dont have to tell me

distant sun
#

Imagine having to install moodle just to access it's documentation -.-

ocean quartz
#

Moodle is awful

distant sun
#

cant even save the html file smh

#

the pdf has 2000 pages lmfao

hot hull
#

Why tho Gaby..

distant sun
#

cuz I dont want to install it (will probably do it at some point) and the sandbox resets after 40m

#

I want to do smth for school

hot hull
#

@ocean quartz Any suggestions as to how I'd add an item to a specific page ?

#

Because from the looks of it, doesn't seem to be possible

safe lily
#

I hate moodle

#

we use it in our school way too often ._.

onyx loom
#

i agree

safe lily
#

wait what

#

I cannot send images in here?

compact perchBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

safe lily
#

yeah I totally agree on that :)

#

because I get errors, cause it doesnt find it :c

inner umbra
#

Maybe you have to be Tier 2

safe lily
#

what was THAT?

#

I am scared

#

those eyes

inner umbra
#

Testing if I can post images lol

safe lily
#

wont have any sleep tonight-

onyx loom
#

yea it stops bots and stuff thats why its locked away

safe lily
#

ja

hot hull
#

The feeling when all my shit works, but matt's framework doesn't allow for such fancy things ;CC

safe lily
#

lmao

#

src/main/resources/database.properties and database.properties didnt work

hot hull
#

:bruh:

safe lily
#

what did I do wrong? t-t

hot hull
#

getDataFolder + "/database.properties"

safe lily
#

yes?

#

lemme try

#

thats not right

#

now it searches in the plugins folder of the plugin

hot hull
#

That's what it should do...

safe lily
#

(the data folder)

#

but there is no data folder

#

lmao

hot hull
#

Are you even saving the properties file?

obtuse gale
#

Are you creating the data folder?

safe lily
#

if I create a file in it it should be created automatically IIRC

hot hull
#

Yea and guess which file that would be, just save your properties file..

safe lily
#

yeah lmao

hot hull
safe lily
#

you use glass panes now! :P

hot hull
#

Those are filler items..

safe lily
#

:(

ocean quartz
#

Any suggestions as to how I'd add an item to a specific page ?
Currently don't think it's possible, it's on my todo list though
well you can always add air to the gui, but it's ugly

safe lily
#

I dont even know how to save the properties file lmao I just know how to create one by script

#

File properties = new File("database.properties");

#

oups

hot hull
#

Yea ngl I don't really like the way you did these pages Matt, cause it barely allows for any customization, I'll see if I can do it with air as you said

safe lily
#

hmm

ocean quartz
#

Yeah, well the pages were only meant to be like basic "storage" stuff, but i have an idea to make it better

hot hull
#

Yea ik

safe lily
#

maybe you overkill it Frosty reversed_fingerguns

#

ocean quartz
#

Damn, this is possible in Kotlin but not in Java, pretty sad if (obj is T)

prisma wave
#

only with reified though I think

ocean quartz
#

Yeah

obtuse gale
#

Matt

#

AsyncPlayerPreLoginEvent

#

APPLE

ocean quartz
obtuse gale
#

i don't know dude

onyx loom
#

APPLE

prisma wave
#

EntityLeashApplyRargeArea

safe lily
#

Apples amirite?

#

🍎

prisma wave
#

whoops

#

fixed it

safe lily
#

RARGE

prisma wave
#

rarge area

obtuse gale
#

rarge

#

yes

ocean quartz
half harness
#

Is it possible to access other folders besides the one in /plugins/plugin?

prisma wave
#

yes

half harness
#

how?

ocean quartz
#

In theory you can even access system files

half harness
#

wHaTTTT

hot hull
#

rm rf fingerguns

half harness
#

you'd need admin perms to delete system files tho

onyx loom
#

🙂

surreal quarry
#

config the root password :)

hot hull
#

I'm so close to having this working ;C

distant sun
#

Java sdk for moodle in kotlin? 🤣

prisma wave
#

Interop

#

Ez

static zealot
#

what the hell is moodle? I keep seeing you talk about it xD

safe lily
#

it has forum vibes

#

and docs vibes

#

but in weird

distant sun
safe lily
#

@ocean quartz you took a look yet? :c

ocean quartz
#

No, i told you yesterday i won't look at private repo

prisma wave
#

Just ask in an actual support channel rather than asking random people to look at code

distant sun
#

how 'bad' would be to write a "java sdk" for something in kotlin? Fr now 🤣

half harness
#

isn't kotlin a whole different language?

prisma wave
#

fine

half harness
#

orrr

prisma wave
#

There's interop

#

It's not a problem

distant sun
#

How do I make multiple enums with the same properties that extend an interface?

ocean quartz
#

Example?

distant sun
#
class WSFunction {

    class Core {

        enum class Auth(test: String) : Function(test) {
            
            CONFIRM_USER("")

        }

        enum class Course(test: String) : Function(test) {

            GET_ENROLLED_COURSES_BY_TIMELINE_CLASSIFICATION("")

        }

    }

    abstract class Function(test: String)

}```
prisma wave
#

i don't get it

ocean quartz
#

Me neither

hot hull
#

Ha losers

prisma wave
#

xy problem?

distant sun
#

I want both, Auth and Course enums to have a string in their constructor

#

because I have an abstract class with a variable Enum<out Function> function

steel heart
#

Thought enums only accepted interfaces

prisma wave
#

what's actually the problem here?

hot hull
#

Thought enums only accepted interfaces
:HuH:

steel heart
#

you cant have an enum that extends another class

#

prove me wrong

distant sun
#

ye you cant

#

1s

steel heart
#

:HuH:
4head

obtuse gale
#

prove me wrong
*proves him wrong*

#

boom 😎

prisma wave
#

liberals owned 😎

distant sun
steel heart
#

sure, interfaces works fine

distant sun
#

My goal is to have multiple enums that provide one value test: String

steel heart
#

iirc enums cant be extended because that would break the switch and presumably some other stuff

prisma wave
#

override the function in the enum rather than each individual constant

#

i.e each enum has a constructor parameter, and then the enum class overrides test with the param value

steel heart
#

Gaby you may also have abstract methods in an enum

#

iirc

distant sun
#

yea but I think I need them all to extend an interface so Enum<out Function> will know that every value have the test property

#

should I consider using 'static' variables instead of enums?

obtuse gale
#

Depends on your goal

distant sun
#

I don't think I need enums at all, at first it seem easier cuz I thought I could extend a class and do stuff in constructor

prisma wave
#

sealed class + objects are usually a good alternative

obtuse gale
#

Nah, I don't use them often but IMO it only makes sense to use them if a switch statement could be applicable

prisma wave
#

less limited than enums

distant sun
#

how do you even use a sealed class

prisma wave
#

same way as a normal class

distant sun
#

well I need to access them using 'static'

steel heart
#

static (:

distant sun
#

😦

obtuse gale
#

Damn

#

Conclure didn't accept my friend request

#

:pepesad:

#

ye

fervent obsidian
#

Hello, i have been developing a plugin, and i tryied implementing it to a DeluxeMenu, and when doing

    left_click_commands:
    - '[close]'
    - '[console] repairmenutokens %player_name% hand'
    right_click_commands:
    - '[close]'
    - '[console] repairmenutokens %player_name% hand'```
and right  clicking the item where the commands are set, i get on console: 
```[15:51:51 INFO]: /repairmenutokens [player] [hand/armor/inv] ```
I dont know why im having this problem, i think is from the `%player_name%` Placeholder... bcs i gave the console "permissions" in my code for running the code... and i can run it manually and it works fine, but when using it in a Menu, this comes up.
#

Like the command is returning false

#

idk why

hot hull
#

Did you install the player expansion?

fervent obsidian
#

from papi right?

hot hull
#

Yes

fervent obsidian
#

Oh that was

#

Thx bro

#

haha

static zealot
#

if its about a plugin config/error etc.

fervent obsidian
#

@static zealot I thought i had an error in the code, thats why i posted here

static zealot
#

this is more for talking about general stuff

ocean quartz
#

This is the config class, the second value was changed in the config so no longer has the default value

prisma wave
#

hot

onyx loom
#

ur hot

prisma wave
#

thanks

#

you know what else is hot

onyx loom
#

please enlighten me

prisma wave
#

starts with an e

onyx loom
#

elon musk?

prisma wave
#

no he ugly

#

it's eclojure

#

hot

onyx loom
#

😮

obtuse gale
#

You know what else is ugly?

#

That tier 7 salmon color...

#

like what the fuck

ocean quartz
#

Rude

onyx loom
#

rude

obtuse gale
#

Of course

#

But this ugly still

#

It's*

onyx loom
#

i think its nice

#

its different

ocean quartz
#

Same

obtuse gale
#

Special

onyx loom
#

altho

#

tier 8 is pure shit

#

yellow

ocean quartz
#

Support color is meh

onyx loom
#

yea its ok

#

its like a regular colour

distant sun
#

why is the path an annotation? @ocean quartz

static zealot
#

bcz someone in here recommended it

#

oh yeah Niall

onyx loom
#

looks nice

empty flint
#

Is there a way to force player respawn?

#

maybe a packet I could simulate being sent that would tell the server the player had respawned

onyx loom
#

cancel the kill, teleport player to spawn fingerguns

empty flint
#

No I want the player to die

#

and immediately respawn at their death location

#

but the dying is crucial

#

maybe with a respawn delay of 1s or so

onyx loom
#

was a joke anyway 🙃

static zealot
#

can't you do player.spigot().respawn()?

prisma wave
#

^

empty flint
#

ah yep that works, ty!

static zealot
#

👍

ocean quartz
#

@distant sun Do you think it's better not being an annotation?

distant sun
#

ye

static zealot
#

nah I like it as an annotation

#

don't listen to gaby xD

#

go sleep gaby. you have a long day tomorrow

#

well today now,.

ocean quartz
#

I kinda prefer it too, makes the property declaration shorter and more straight forward

distant sun
#

I mean, if the method holds the value it can also hold the path

ocean quartz
#

It doesn't hold the value

#

Just the default

distant sun
#

default value

ocean quartz
#

I see where you're coming from though, but i like it, idk

static zealot
#

what's that gaby? xD

distant sun
#

autocad

onyx loom
#

the annotations is much more cleaner than the original

#

imo

distant sun
#

idk, more lines to write I guess

static zealot
#

ye but shorter lines

distant sun
#

-.-

static zealot
#

I don't have to get 3 monitors to see 1 line

onyx loom
#

kotlin makes up the difference in the more characters u have to type anyway xd

static zealot
#

does it tho? I'm not actually talking about general stuff

#

I'm talking about default config lines

#

xD

ocean quartz
#

For example this will be a comparison between ConfigMe and mine

@JvmField
val HELLO: Property<String> = newProperty("path", "default");

@JvmField
val BEAN: Property<Bean> = newProperty("path2", Bean.class);

Mine

@Path("path")
val HELLO = newProperty("default");

@Path("path2")
val BEAN = newProperty(Bean.class);
onyx loom
#

2

distant sun
#

now move the path inside newProperty method 🙂

ocean quartz
distant sun
#

🤦‍♂️

onyx loom
#

whats up with the semi colons 🤔

static zealot
ocean quartz
#

Ignore them i've been too much into Java and am starting to suffer from Javalosis

onyx loom
#

kill coli !

distant sun
#

4head

static zealot
prisma wave
#

why not have both smh

#

Parameter and annotation

onyx loom
#

definitely not

prisma wave
#

I mean either

#

Not both at the same time

#

But allow either

onyx loom
#

definitely not

#

🙂

prisma wave
#

😕

digital patrol
#

anyone know a fix?

#

or even whats causing it

umbral mica
#

why is spigot in your plugins folder

obtuse gale
#

LOL

#

also uuhm what am I supposed to look at exactly?

#

hmm corrupted chunks

#

hmmmmm fawe, no wonder

#

I d e m a n d Foo

lavish notch
#

Is there a straight forward way to open an inventory, from a text click without having to do some workout with running a command that does it?

obtuse gale
#

without having to do some workout with running a command that does it?
not really

#

your best bet is to make them run a command 🤷‍♂️

lavish notch
#

Dang

final spruce
#

How do i replace a placeholder like {rank} with whatever i want

#

with placeholderapi

remote goblet
#

you can't really

#

mostly because placeholderapi uses %placeholder%

oak coyote
#

% is better

#

So % is life

final spruce
#

but im trying to have my hub core support multiple rank systems

umbral mica
#

Then just use the vault api

hot hull
#

You can tho

#

setBracketPlaceholders fingerguns

distant sun
#
         "id":10884,
         "fullname":"fullname",
         "shortname":"shortname",
         "idnumber":"",
         "summary":"summary",
         "summaryformat":1,
         "startdate":1601845200,
         "enddate":1633302000,
         "visible":true,
         "fullnamedisplay":"aa",
         "viewurl":"url",
         "courseimage":"data:image/svg+xml;base64,PD94b",
         "progress":0,
         "hasprogress":false,
         "isfavourite":false,
         "hidden":false,
         "showshortname":false,
         "coursecategory":"aa"```
Is this class a good equivalent of the above json or the values have to be `var`? xd https://i.imgur.com/ssPZf59.png
hot hull
#

ew

distant sun
#

shut up

#

@quiet depot is there a field name policy for fullname to deserialize to fullName?

quiet depot
#

you'd have to make your own

#

I highly recommend against doing so however, because you'd have to check it against a dictionary every time

#

very inefficient

distant sun
#

copy that

#

I don't mind using @SerializedName, just wanted to know if there's a better alternative

quiet depot
#

make it case insensitive

distant sun
#

make what case insensitive?

quiet depot
#

field matching

distant sun
#

field.name.toLowerCase() ?

quiet depot
#

lol no

#

hang on

#

2 secs

hot hull
#

Piggy, can you pray with me RQ

quiet depot
#

I've done something similar before

#

rq?

hot hull
#

real quick

quiet depot
#

I did it with the levenshtein algorithm for field matching instead of case insensitivity, but it's the same shit

#

fyi you can literally just copy that into your project and create a case insensitive impl

#

but I'd recommend against it

#

i'll come up with something a bit more compact in a sec

#

@hot hull sure

distant sun
#

copy what lmfao

quiet depot
#

pray about what?

#

that class gaby

hot hull
#

Pray that this shit works :c

distant sun
#

I told you to stop giving examples from your complexe shit smh

hot hull
#

Gaby, did you ever pr the statistics stuff?

distant sun
#

papi3?

#

alright, this seems to work .setFieldNamingStrategy { it.name.toLowerCase() }

hot hull
#

yes papi 3

quiet depot
#

omg really

#

does that still work if it's "fulLName" in json?

distant sun
#

no 😦

quiet depot
#

do you want that to work?

distant sun
#

but I only do deserialization and the json should always be the same

quiet depot
#

you mean serialization

distant sun
#

uh

quiet depot
#

wait no

#

idek

#

fuck

distant sun
#

json to object

quiet depot
#

ah ok

distant sun
#

no @hot hull

#

we had some issues and didn't had time to try again

hot hull
#

I might add some stuff if I have time, since doesn't look like anyone else trynna contribute smh

#

Piggy, you didn't pray hard enough

#

:c

#

Holy shit it worked

#

:OOO

distant sun
hot hull
#

what are those ids sheesh

distant sun
#

¯_(ツ)_/¯

hot hull
#

I'd say 2 I guess

prisma wave
#

@surreal quarry is that i3?

hot hull
#

What would be the most efficient way of handling hundreds of runnables

#

Should I store a timestamp for the "object" and just check if a certain amount of time has passed?

surreal quarry
#

indeed it is @prisma wave

prisma wave
#

nice

#

distro?

surreal quarry
#

linux is ubuntu and i3 is i3-gaps

#

and i switched out the i3 bar for polybar

quiet depot
#

what were they thinking naming it i3

#

smooth brain decisions

surreal quarry
#

lol

quiet depot
#

turns out the processor line came out after that

#

so not entirely their fault

#

although they probably could've considered a rename when something like intel decides to call their product the same thing

surreal quarry
#

you’d think so lol

prisma wave
#

¯_(ツ)_/¯

surreal quarry
#

i guess they probably thought they could just refer to it as i3wm which is different enough

prisma wave
#

i could never get used to i3

surreal quarry
#

yea it’s a little weird. i’m trying out different stuff cause i’m probably gonna need a laptop for college next year so i’m just seeing what i like best and what works best

#

that way i don’t need to mess around with figuring it out later

prisma wave
#

makes sense

obtuse gale
old wyvern
obtuse gale
#

@steel heart :0

hot hull
#

Oh god oh no

obtuse gale
#

screw spigot drama generator

#

this is my new hobby

safe lily
#

Single singletons

frail glade
#

Spooky Scary Singletons

hot heron
#

I've got an interview for an internship in like 30 mins, wish me luck boiiiiis (and gorls)

hot hull
#

Ez claps

ocean quartz
static zealot
#

oh no

#

link them to PDM

#

xD

prisma wave
#

YES

#

Also 90kb is nothing who cares