#dev-general

1 messages · Page 558 of 1

static zealot
#

😌

steel heart
#

Elara Docs 😌😌

onyx loom
#

ah yes, i sure do love non-existent docs

normal talon
#

spigot docs are the same headache as java

steel heart
#

Java good

prisma wave
#

Elara docs exist a bit

#

They're just outdated

onyx loom
#

github readme doesnt count

static zealot
#

lmao

normal talon
#

-_-

#

the audacity

prisma wave
#

why not

normal talon
#
if (x in 1..y+1) {
#

what are those points

onyx loom
#

IntRange

prisma wave
#

Range operator

onyx loom
#

so basically its a collection of ints, starting from 1 to y+1

prisma wave
#

1..10 = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

stuck harbor
#

damn thats too sensible

normal talon
#

ooh so it adds up

stuck harbor
#

not verbose enough 💢

normal talon
#

lets say x is 20

#

does it fit in then ?

#

wait no

onyx loom
#

well what is y

normal talon
#

9

onyx loom
#

then no

prisma wave
#

I know another language with .. syntax

onyx loom
#

oh really? thats cool

prisma wave
#

Yep

#

It is

#

Thanks for showing interest

onyx loom
#

your welcome :)

static zealot
#

smh. I love potatoes

normal talon
#

same

#

:3

onyx loom
#

thanks for review 🌚

static zealot
#

and yw

#

oh boy. I finally am done with DeluxeTags (for now) and PRed my DeluxeMenus work. Took me a while xD

#

I really am the best at procrastinating

ocean quartz
#

Almost done fixing Kotlin 🥺

#

This lib uses regex so I've had to add a few weird exceptions 😩

prisma wave
ocean quartz
#

Using PrismJs

plush sapphire
remote goblet
#

no

ocean quartz
#

No

plush sapphire
#

Ok, thx

ocean quartz
prisma wave
#

no

ocean quartz
#

From examples I found it doesn't highlight Kotlin well either

prisma wave
#

just curious cuz i think that's what discord uses

ocean quartz
#

Hmm

distant sun
ocean quartz
#

Hmm let me test

#
listening {
    on<GithubPush> {
        log { "Detected Github push." }
        checkRepository()
    }
}
#

Yeah it doesn't highlight anything

distant sun
#

yes but it does on mobile

lunar cypress
#

well what is it supposed to highlight exactly

#

it highlights the string

ocean quartz
#

Functions

lunar cypress
#

every function?

ocean quartz
#

Yeah

distant sun
#
fun test(string: String): List<Int> {
  var test: String = "Hei"
  return mutableListOf()
}```
ocean quartz
#

On the phone it doesn't highlight functions either Gaby

distant sun
#

I guess it doesn't work because it is looking for fun

ocean quartz
#

Well i'm talking about function calls

distant sun
#
test(it -> {});```
#

neither it does on java

ocean quartz
#

Ayy I got it

distant sun
ocean quartz
#

Yeah I know most places won't highlight it, but that's my goal, is to make it look as close to the IDE as possible

distant sun
#

ok bud

normal talon
#

operator fun get(msg) = e.message

#

is this correct ?

distant sun
#

is that supposed to be kotlin?

normal talon
#

Yea I'm reading this document on github

surreal quarry
#

it could be depending on the context

prisma wave
#

you need a type for msg

static zealot
#

^^^^^

#

get(msg: Type)

normal talon
#

aah thanks

#

there isn't simple tutroials for spigot kotlin coding

surreal quarry
#

its no different than java, just a few changes in the syntax

static zealot
#

I mean why are you even learning kotlin? We've mentioned multiple times java is probably better at first

surreal quarry
#

if you know java the switch to kotlin should take maybe a day or two

static zealot
#

and after you're confident with java feel free to move to kotlin

onyx loom
#
class YourPlugin : JavaPlugin() {
  override fun onEnable() {
      logger.log("hello world")
  }
}```
tutorial done
steel heart
#

Blitz double standards 🤨

static zealot
#

and by know, we don't mean that you remember that a class needs to be this type etc. I mean you actually understanding it

static zealot
surreal quarry
#
fun main() = object : JavaPlugin() {
    override fun onEnable() {

    }
}```
prisma wave
#

if you know kotlin you don't need spigot tutorials

surreal quarry
#

odds that works?

prisma wave
#

no chance

ocean quartz
#

Java isn't better to start imo, but I feel like they are moving too fast, already getting into operator functions etc and only started like 1 hour ago

normal talon
steel heart
#

Just learn one of them and stick with it until you’re confident enough in that one imo

prisma wave
#

^

static zealot
#

yeah. I guess if you actually want to learn kotlin, and actually learn it, you can start with that too

prisma wave
#

better to be good with 1 than mediocre with both

steel heart
#

Brb need to grab discord nitro so I can use emotes

ocean quartz
#

Yeah why are you even swapping from Java to Kotlin, you were just learning Java

static zealot
#

that hurts mitten sad

prisma wave
#

it's true

onyx loom
#

just be good in both

surreal quarry
jovial warren
hot hull
#

deep down it wishes it was a monster, but on the outside it's just a squishy katto

jovial warren
#

lol

ocean quartz
#

I may or may not have gone overboard with my syntax highlight

onyx loom
#

😌

ocean quartz
#

It also uses Fira code cuz best font 😌

ocean quartz
#

Ayy fixed groovy for gradle as well 😌

obtuse gale
#

why ...

ocean quartz
#

Well when i post gradle stuff I tend to do both kts and groovy so, useful ish xD

#

Java also looking really nice

#

That was actually quite fun

distant sun
#

nice boy

distant sun
#

is there an alternative in java for kt's reified, other than a Class<T> argument?

steel heart
#

you need a reified type?

distant sun
#

I need to access its class to be more precise

steel heart
#

Can be done with some reflection

#

well I don't know the exact context here but yeah

distant sun
#

yeah nty

old wyvern
#

typetokens 🥲

steel heart
#

^for instance thats how TypeToken does it pretty sure

old wyvern
#

There isnt an alternative way yet

#

But

steel heart
#

YET

distant sun
#

will come back to TT later, brb

old wyvern
#

baked type coming soon

steel heart
#

😌

old wyvern
#

😌

jovial warren
#

the reason why type tokens work is because generic type information is stored in the class file

#

I think

old wyvern
#

Generic type of the parent class is stored

steel heart
#

anonymous derived type stores the type

#

or

#

well

#

if you do new TypeToken<Map<Blah,Lol,Elara>>() {}

jovial warren
#

actually, I read about this before

steel heart
#

😌

obtuse gale
distant sun
#

Idk tbh, maybe

#

I mean, im not totally against Class<T> was just wondering if there would be a better way.

#

I will see how I can include TypeTokens in there

steel heart
#

do u have the ability to use mixins there?

#

well unsure if you could mixin on java standard classes

#

would be neat

distant sun
#

Mixin?

steel heart
#

actually idk

#

probably a bad idea if it would work

#

ignore me

prisma wave
#

well, no

#

not entirely

#

because it requires the function to be inline

half harness
#

rip embeds

#

;-;

prisma wave
#

spigot 1.8

#

i would be surprised if that wasnt the issue

old wyvern
#

wgwngerkgn

#

Bm

#

help

#

plz

prisma wave
#

unorthodox terminal + old version = bugs

old wyvern
#

Grrovy and kotlin

prisma wave
#

what's up lol

#

uh oh

half harness
#

unorthodox terminal

old wyvern
#

how do I define a groovy extension method from the kotlin dsl

prisma wave
half harness
#

oh

old wyvern
#

This is horrible

old wyvern
#

I hate gradle

prisma wave
#

is that possible?

old wyvern
#

I hope so 😳

#

Doesnt the kotlin plugin do that?

#

like for

implementation kotlin("46546465")
prisma wave
#

is that an extension method?

old wyvern
#

I thought it was

#

extension to the dependency block

prisma wave
#

idk

old wyvern
#

💀

onyx loom
#

yea it is

steel heart
#

inline extension Kaliber

half harness
#

🤔

#

and it doesn't happen in 1.17hyqbakjns,d

#

but still

obtuse gale
#

Sounds like 1.8 to me

half harness
#

but

#

this hasn't happened before

#

i dont think

obtuse gale
#

Not news

half harness
#

wdym

#

yea i just looked in old logs

#

and it doesn't happen

prisma wave
#

still a 1.8 problem

#

issue resolved

half harness
#

oh wait i think i know the issue

#

nvm

#

what

steel heart
#

dkim do u use 1.8 fr?

half harness
#

im testing my plugin ._.

#

not bedwars btw

#

something else :))

steel heart
#

dkm19375lib?

half harness
#

even yesterday it didn't do this 😭

half harness
#

well

#

under a different name

steel heart
#

wjat is it den

half harness
#

its just a plugin im working on :))

#

trying to support 1.8 - 1.17

steel heart
#

why not support 1.7.10?

#

and 1.6.4?

half harness
#

I can't get 1.7 jar

#

plus its too old

steel heart
#

oh

#

well nice

#

good luck

half harness
#

thanks

#

the issue still persists without plugins 🤔

#

hmmmmmm

#

also happens with a brand new server

#

D:

#

why

magic oriole
#

Does anyone know of a way to set my minecraft FPS to 0 or 1, or render distance to 0, or essentially anything to have the game keep playing but take up an extremely small amount of resources? I'm AFKing on a server overnight and would have to leave my PC on, but don't wanna run my pc too hard

half harness
magic oriole
#

Could I somehow navigate those to a specific spot? I would need to find the AFK pool

half harness
#

yea you can just exit minecraft once you go to that spot and rejoin using the console client

magic oriole
half harness
#

O

#

uhhhhhhhh

magic oriole
#

It's already a start tho thank u so much for the help

#

I could set a home maybe?

half harness
#

hm

#

if the server allows homes

#

then yea

cinder flare
#

yeah i was gonna say, I'm sure there's a headless minecraft pc thing

#

they have ones for your phone where you can login and send text chat and stuff

half harness
#

headless? 💀

cinder flare
#

uh yeah headless

half harness
#

why's it called headless 🤔

cinder flare
#

https://en.wikipedia.org/wiki/Headless_software#:~:text=Headless software (e.g.%20%22headless%20Java,on%20servers%20and%20embedded%20devices.

Headless software (e.g. "headless Java" or "headless Linux",) is software capable of working on a device without a graphical user interface. Such software receives inputs and provides output through other interfaces like network or serial port and is common on servers and embedded devices.
The term "headless" is most often used when the ordinary...

half harness
#

ic

rotund egret
#

I aint got no head

magic oriole
#

Nvm, apparently console clients aren't allowed on the server

half harness
#

lol

cinder flare
#

oof lmao

magic oriole
#

I asked an admin

#

:(

#

Any ideas on how to get my fps to 1 or 0?

half harness
#

i mean isn't that the same as a console client

rotund egret
#

Max it to 1

half harness
#

¯_(ツ)_/¯

magic oriole
half harness
#

you might be able to change it in options.txt

magic oriole
rotund egret
#

Mixin whatthefuck

#

Set TPS to 200

#

ez $$$

magic oriole
#

Would setting res to like

#

480p

#

Work?

#

5fps @ 480p shouldn't be too bad right?

unkempt tangle
prisma wave
#

[Char] 😌

static zealot
#

holly shit. are those actually types of string in rust?

quiet sierra
#

quality code in vc rn

ocean quartz
half harness
#

also you can just do ```kt
thread {}

#

instead of Thread {}.start()

ocean quartz
#

Not using coroutines smh

static zealot
#

well the whole point is to crash his pc

half harness
#

oh what

lunar cypress
#

sorta

#

not really

#

You can see all of those as a string, but they don't really all represent a string

#

for example they're throwing in a byte pointer as a string type

#

lol

#

and use &str twice

old wyvern
#

I thought it only worked with inlined functions where the class in actually known at compile time

jovial warren
#

I'm pretty sure that's the case too

ocean quartz
#

Huh just tested it and seems to be the case
I remember it doing what I said before though thonking

prisma wave
forest pecan
#

Anti Kotlin Karen

static zealot
#

Well. He's anti anything that he's currently not using

ocean quartz
#

I don't mind exposed too much but this is pretty damn ugly

distant sun
#

Smh

static zealot
#

Hmm nah.

#

It is absolutely fine

lucid rock
#

how do you fix this?

compact perchBOT
lucid rock
distant sun
#

something is null on PluginMain around L331

static zealot
#

Welp. I am Slow

#

I am groott

#

Grout*

cinder flare
#

he's having a hard time guys

#

cut him some slack

static zealot
#

Phone...

#

Groot

#

There we go

obtuse gale
#

help me

#

[20:14] kashike: public final class BlockContentTypeLoader extends MultiTypeContentLoader<BlockGenre, ContentBlock, ContentBlock.Builder<ContentBlock, BlockStateDefinition, BlockStateDefinition.Builder<BlockStateDefinition>>, BlockContentProcessor<ContentBlock, ContentBlock.Builder<ContentBlock, BlockStateDefinition, BlockStateDefinition.Builder<BlockStateDefinition>>, BlockStateDefinition, BlockStateDefinition.Builder<BlockStateDefinition>>> implements Witness, MultiTypeContentLoader.Translated<BlockGenre> {
[20:14] kashike: public abstract class MultiTypeContentLoader<T extends Enum<T> & ContentType.MultiType<C, B>, C extends CatalogedContent, B extends ContentBuilder<C>, P extends ConfigProcessor<B>> extends ContentLoaderImpl<C, B, MultiTypeContentLoader.Entry<T, C, B>> implements MultiTypeExternalContentProcessor<T, C, B> {

static zealot
forest pecan
#

is that an actual class 😳

steel heart
#

😌

forest pecan
#

Did something change with Paper and bukkit or something? For some reason if I use com.destroystokyo.paper:paper-api:1.17-R0.1-SNAPSHOT my org.bukkit classes aren't showing up and not loaded, but if I use org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT they do show up

#

which is odd

static zealot
#

io.papermc.paper:paper-api:...

#

@forest pecan

forest pecan
#

Oh wait

#

im an idiot

#

🤡

static zealot
#

Nah. You're not

#

I did the same thing yesterday.

#

Well maybe we both are. Hmm

forest pecan
#

Yeah

#

we both are idots

static zealot
#

I'm so glad I'm not alone on this path xD

forest pecan
#

lol

steel heart
#

Bakugan

half harness
#

hiwuads why is intellij giving me a

Unused equals expression
when nullchecking 😒

#

trying to do if (duration == null) 5 else 6

#

but it won't let me without a warning 😭

#

anyone know what intellij wants me to do (kotlin)?

obtuse gale
#

what's duration?

onyx loom
#

and context

half harness
#

uhh oops i didn't check this channel ;-;
but i just ended up making another variable, so now it's this: ```kt
val duration = args[5].toLongOrNull()
val restArgs = args.drop(if (duration == null) 5 else 6).joinToString(" ")

#

huh, i pasted that code somewhere else and it warns

#

ok i found a solution: duration?.let { 5 } ?: 6 xD

forest pecan
#

dkim you used the thonk emote 1000 times

#

congratulations

#

i just counted with discord

#

lol

half harness
#

wait what

#

how did you count 🤔

obtuse gale
half harness
#

OOPS

#

🤣

forest pecan
#

go to the search bar

half harness
#

oh

forest pecan
#

then type dkim then click user

#

and then after that

#

type : thonk (without space)

#

it says 1044

half harness
#

oh wow 👀

forest pecan
#

yep

half harness
#

lol u only used it 10

eternal compass
#

this new InteliJ logo is cool, but it keeps throwing me off, anyone else notice that?

cinder flare
#

i love it

#

i don't know what "keeps throwing me off" means

#

or what I'm supposed to notice

half harness
#

https://i.imgur.com/H7ZHJXW.png lol i looked at my timings and was so surprised that it wasn't lagging (this is a plugin I started working on about a week ago)-

all my other plugins always have red or yellow numbers 🥲

#

how do other plugins have nothing though 🤔

#

how do people optimize so much 😩

inner umbra
#

Timings only shows the main thread... so anything off of it isn't seen by timings.... Basically... If its async it can't cause lag. (Thats a joke)

half harness
#

well i mean it is true

#

until you reach the limit of the cpu

#

but i doubt you'd be doing anything that performance-heavy 🥲

#

the thing is that most of the things im trying to do has to be ran on the main thread

forest pecan
eternal compass
formal ice
#

Is anyone good with Skript? I have a skript I'm trying to run that blocks /bal on certain players. (I.e. players can't check Staff Members /bal) and it literally turns my server off every time I use it in game

cinder flare
#

I think the problem is trying to use Skript in the first place

formal ice
#

bruh

#

You're a support person. Don't be a dick.

cinder flare
#

I'm a volunteer, and you're asking in the wrong channel 🙂

#

Plus Skript is literally a piece of shit, so I can't really help you with it

formal ice
#

Tell me that then 🙂 Don't be a sarcastic ass.

#

So then don't say anything???????

cinder flare
#

But I wanted to!

misty turtle
#

@here'

obtuse gale
#

@old wyvern :thonking ?

#

Lmao what the fuck

#

Anyway
What was that 👀

old wyvern
#

Oh

#

Answer sheet

#

Was uploading it

#

Needed to get it onto pc fast

#

Had like 2 mins left to submit

#

😂

cinder flare
#

dang racing the clock

#

i remember scanning my calc homework as fast as humanly possible 3 minutes before it was due and uploading the pdf

old wyvern
#

xD

#

I missed due to the same like 2 days ago on my assignments

#

got late by 1 min

cinder flare
#

sheesh

#

that sucks

old wyvern
#

Yea thats gonna like cost me 10% in the overall grading I think

#

Actually, might be 5, not completely sure

old wyvern
ocean quartz
#

Python bad

obtuse gale
#

How else would hackers use a single python function to steal it? Duh

Insert meme about python users raging when they don't have the one function that solves the Pythagorean theorem in 6 dimensions morphing over time based on 8 random numbers generated from atmospheric noise

static zealot
dusk copper
normal talon
#

Can I use Java and kotlin in one plugin ?

prisma wave
#

Yes

normal talon
#

aah nice

#

cuz my color thingy I don't know how to rewrite it in kotlin since I got help from here

distant sun
#

why dont you just stick to one language until you learn it well enough?

prisma wave
#

^

static zealot
#

bcz why would anyone do what we already said 5 times? sad

prisma wave
#

🥴

old wyvern
#

Stick with haskell

prisma wave
#

^

old wyvern
#

:simon_peek:

prisma wave
#

☹️

old wyvern
#

new haskell mascot??

static zealot
old wyvern
#

haskell_anime_girl.png

prisma wave
#

it's beautiful

#

her and simon

#

🤩

old wyvern
#

btw bm, I figured out the groovy issue

prisma wave
#

Ah nice

old wyvern
#

seems you just need a doCall function

#

groovy looks up the doCall def that matches the call

prisma wave
#

It calls a function in order to call a function?

old wyvern
#

yup

prisma wave
#

Classic

#

doCall = func

#

😌

old wyvern
#

😌

static zealot
#

oh boy smiling_face_with_3_tears

#

@hot hull I summon you xD

hot hull
#

Oh boy

#

@lucid tangle The answer to that is, no

static zealot
#

xD

#

thank you frosty.

hot hull
#

No problem, anytime

lucid tangle
#

Skript hater 😠

static zealot
#

welp. its you against the world. so good luck

hot hull
#

Nothing against skript, all against the people who use it in the wrong way

lucid tangle
#

Oh, I just use it for simple commands

#

Not making a full-skript server

ocean quartz
#

@hot hull Since it has been a while since last time I showed you some progress

hot hull
#

oo nice

static zealot
#

new ben awad video.

forest pecan
winter iron
half harness
#

#871306912342343701 message
wait a minute

3-4 hours a day

$75/month

75 * 12 = 900/year / 365 = 2.47/day / 3 -> 4 = $0.62 - $0.82 / hour 🥲

onyx loom
#

a worthy salary

hot hull
#

Lmao

static zealot
#

well.. last time it was like 45$/month

winter iron
#

🙂

static zealot
#

you should be grateful.

hot hull
#

@shrewd jolt Please delete that, I beg

ocean quartz
half harness
#

but this one has a time requirement

#

per day

frail glade
#

@old wyvern

old wyvern
#

Im trying, gradle api sucks tho

frail glade
#

😦

old wyvern
#

Do you know if theres any way to get extra function that works fine on both groovy and kotlin?

#

I got it to work on groovy and kotlin separately

frail glade
#

Let me phone my Gradle experts.

old wyvern
#

Alrighty

frail glade
#

No confident answers.

shrewd jolt
#

Well, people are msging me to apply so I’ll raise it if I get no decent applicants lol

static zealot
#

I really hope you understand those are most likely not developers.

#

just "wannabe" developers.

#

if they have no clue what development payment should be.

shrewd jolt
#

Yeah that’s true, well, we’re in no huge rush

#

I’ve found reliable people who don’t charge much in the past, partly due to them wanting to work with “famous YouTubers”

eager fern
#

That’s less then a 50 cents a day

static zealot
#

hellshowers

#

your matt

#

math*

#

is kinda bad

shrewd jolt
#

Also $75 was the minimum, I’m willing to go double or triple that lol

ocean quartz
#

Why does he want a Matt?

eager fern
#

40 an hour or naw

#

I mean

#

Week

#

Matt is a qt

shrewd jolt
#

wut

#

I said $75/month minimum

static zealot
#

but yeah I didn't see the minimum

shrewd jolt
#

Fairs, I’ll edit it

#

There we go :D lol

eager fern
#

1k a month and I got you

static zealot
#

damn. I finally finished Triumph Chat!

ocean quartz
#

Smh

onyx loom
#

😐

#

good one

hot hull
#

Take it or leave it

eager fern
#

Lmao

static zealot
#

from today I will not be working on any triumph library, framework or plugin anymore. bye

onyx loom
#

ok

errant geyser
#

Since Bardy abandoned Octo, are there any decent JDA frameworks out there or is it back to plain JDA now?

static zealot
#

what's wrong with JDA?

errant geyser
#

Nothing, I just liked how simple Octo was

static zealot
#

if u want commands, u can use jda chewtilities or whatever it is called

errant geyser
#

right, thanks

static zealot
#

fork of JDA-Utilities

frail glade
#

Cloud JDA 👀

old wyvern
#

Matt has one as well

static zealot
#

does he?

onyx loom
#

only for commands i think

old wyvern
#

Yea

#

Isnt that almost everything you need tho

ocean quartz
#

Old af though

half harness
obtuse gale
half harness
#

o

onyx loom
#

sign up then!

prisma wave
#

Pretty much free money

#

Actually wtf

static zealot
#

yeah. I Was going to say. That might actually attract good-ish develoeprs. bcz in a lot of countires thats a lot more than what they would normally make but still. they're starting to understand that they can get paid US salaries

prisma wave
#

Doing like plugin work in a poor country must be so good

static zealot
#

since they do the same work

onyx loom
#

🥲

static zealot
prisma wave
#

You can still charge like $20/hr but that's worth so much more

#

Is it not?

onyx loom
#

depends if its relative

static zealot
#

well yeah. problem is you can't really get someone to pay 20$ xD

prisma wave
#

Well it wouldn't be cuz it's international

onyx loom
#

relative in terms of prices in shops and stuff

prisma wave
#

I'm getting 15/hr for my work atm

#

Well yeah

#

But like

#

That's how money works no?

onyx loom
#

yes

prisma wave
#

$15 is worth $15 everywhere

#

But $15 will get you a house in some places and a loaf of bread in others

#

SO

onyx loom
#

🥲

prisma wave
#

If you live in somewhere where you could buy a house

surreal quarry
#

yea 15 is definitely not the same everywhere

prisma wave
#

It's great

onyx loom
#

i actually looked at house prices in some poor countries before

prisma wave
#

Because you get paid significantly above the average wage for your country

#

Even though the work isn't much harder

obtuse gale
onyx loom
#

maybe 🌞

obtuse gale
#

Lmao

prisma wave
#

My mum owns a house in bulgaria

onyx loom
#

fancy

prisma wave
#

Not really

#

It cost about 8k

#

Pretty much just a stone box with beds doors and a big garden

obtuse gale
#

Literally Bulgaria

prisma wave
#

Yes

#

Literally

onyx loom
#

smh

#

for 8k u could basically buy a mansion in india

static zealot
#

u sure about that?

distant sun
static zealot
#

because I Don't believe you could Kaliber

old wyvern
#

No?

#

Youd get a normal house maybe

static zealot
#

but yeah. I understand. the thing is... developers from poor countries just undercharge.

#

and that's why you see all those people saying "someone else would've done it for 1/4 the price you did it for"

old wyvern
#

My current house is like around 100k

#

Its not even close to a mansion

static zealot
#

yeah. home prices sky rocketed here as well.

#

well they've been increasing a lot in the past few years

#

we're still top 1 at home owning tho

#

in the world

surreal quarry
#

no america #1 obviously

#

in everything

obtuse gale
static zealot
#

I Mean. if you think about it, the whole culture in "modern" countries is to pay rent. and yeah I Know a lot of people would love to own a house over paying rent but it is what it is.

prisma wave
#

Everyone would prefer to own than rent

onyx loom
static zealot
#

I actually know people who don't

#

they're young and only care about partying and stuff.

#

so yeah. I guess you could say "any smart person wants"

#

the thing is, the culture here is, work your fucking ass off, and don't take loans from banks.

#

or at least in my area. people hate banks. tho they're being forced to use them bcz now most companies only give you the salary thru banks. but even my parents, they receive the money and next day its out of the bank

onyx loom
#

whats wrong with banks

#

i can understand a loan, but storing the money in cash instead?

static zealot
#

I could go on and on about stuff wrong with banks. but main reason is people don't trust it. there's a lot of stories of banks taking people's homes. and sometime for stupid reasons

#

and the sue for everything culture doesn't exist here xD

obtuse gale
onyx loom
#

yeah

static zealot
#

maybe. bust still. fuck banks

static zealot
#

its the startup flags

#

or what flags are recommended these days?

surreal quarry
#

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=n -Xms2G -Xmx2G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar Server.jar nogui i think this is it

#

it also has a few different jvm flags for like intellij and hot reloading i think

static zealot
#

thank you. is this what the cool kids use these days tho?

surreal quarry
#

perhaps

static zealot
#

alright. thank you

obtuse gale
surreal quarry
#

didn’t for me a second ago

static zealot
#

its just a blank page and the title loading forever

#

actually

obtuse gale
#

weird

static zealot
#

doesn't even load a page

#

at all

#

oh wait wtf

#

in a private tab

#

so might need to clear cache

#

or wait a second

obtuse gale
#

lmao

static zealot
#

let me time it.

#

40 seconds lmao

#

to load

#

that makes a lot of sense

steel heart
#

Anyone knows if fjp eagerly or lazily create new threads, I assume it’s eagerly since it’s a fixed size but unsure.

static zealot
#

the other times I Was just not waiting

late bramble
#

wait wait wait

#

this is probably really obvious

#

but is banning just a playerjoinevent cancel

surreal quarry
#

might be better to change the result of PlayerLoginEvent

ocean quartz
#

Player join event isn't cancellable

late bramble
#

whatt

#

so lame

obtuse gale
#

join is after they've logged in and spawned in the world

late bramble
#

ah

obtuse gale
#

besides you can just add a ban entry instead of preventing login manually lmao

late bramble
#

Yeah i wasnt sure if like

old wyvern
#

You can provide a deny response in prelogin event

late bramble
#

Just from a base level, banning was just canceling a login event

obtuse gale
#

essentially

late bramble
#

just popped into my head so I'd thought I should ask

static zealot
#

@half harness what u doing?

half harness
static zealot
#

k.

#

so u wanna play bw?

#

with me?

half harness
#

uh

#

1 sec

static zealot
#

1 sec for answer? or 1 sec and then we play?

half harness
#

1 sec for answer

static zealot
#

1

half harness
#

since i can't just leave the ss ;-;

static zealot
#

why?

#

there's a button for literally that

#

leave stream

#

or whatever its called

#

is your discord bugged out?

half harness
#

yea but i dont want to just randomly leave ._.

static zealot
#

ah

half harness
#

ok

#

get on hypixel :))

#

blitz

static zealot
#

yes I saw

#

already opening mc

#

done

ocean quartz
#

Oh my god, I just lost all the progress I did yesterday on the highlight, i forgot the files were on the node_module part which isn't put on github and i ran yarn install so it was replaced by the original, someone shoot me 🥲

static zealot
ocean quartz
#

I'm fine i promise

ocean quartz
#

which isn't put on github

half harness
#

it doesn't rely on github

ocean quartz
#

It's gitignored, ij doesn't track it

half harness
#

it still works

#

at least for me

half harness
#

-_-

obtuse gale
half harness
#

how

obtuse gale
#

discord

half harness
#

oh

#

it works now

#

nice

#

but it still records changes

#

as long as its a file that contains text

half harness
#

:))

ocean quartz
#

Dkim, go to project explore and unclick show ignored files (i think that's the name) and try again

half harness
#

project explorer?

#

oh

#

wheres project explorer?

#

i just right clicked the project window and clicked "Show ignored files" and now it says "1 hidden"

#

and that "1 hidden" folder is the .idea folder

#

o wait

#

what now i can't use show history?? thonking

#

why does intellij do this

#

wait im so confused

#

lol

#

what

static zealot
#

oh they updated this?

half harness
#

1 of my ignored folders have history on

#

but the other ignored folders dont

obtuse gale
static zealot
#

why?

#

I actually like it

#

these are mine

#

I feel like they're more clean

#

I Love them

obtuse gale
#

I like this style

#

rounded with the outline

static zealot
#

hmm

obtuse gale
#

outdated lmfao

static zealot
#

yeah. I guess. the other roles is broken again xD

half harness
#

🤣

#

im not sure it can be fixed anymore

#

lol

static zealot
#

yeah

#

was just telling that to cube

#

but yeah emilly I guess you're kinda right. I do like the old ones more

#

but these ones are not that bad. and I can see what they're trying to o

#

do*

#

I can't see how they looked before

#

can you do a screenshot for matt's profile

#

in full?

#

welp. going to watch a Star Trek movie

#

bye

obtuse gale
obtuse gale
static zealot
#

they indeed do

sly sonnet
#

guess what imma do

ocean quartz
#

Guides that have pictures of code instead of code blocks are the worse

old wyvern
#

😩

obtuse gale
#

what did I just find

steel heart
#

truee

onyx loom
#

java is part of .NET framework 🙂

distant sun
#

@ocean quartz GG noob

frail glade
#

So Yugi what Gradle problems are you having? Can they not be split from Groovy and Kotlin?

old wyvern
#

I managed to fix it actually

#

Seemed to have been an issue with shadow doing some implicit relocation

#

So it wasnt able to cast to a function type where needed because of the package difference

frail glade
#

Ooo you did? Sick.

#

So we down to like 10 things left till it's all good to go?

old wyvern
#

Its ready

#

Just need to test

frail glade
#

😮

ocean quartz
#

Who has font ligatures in their docs 😌

tired igloo
#

Anyone here good at using hoverevent, showtext and click events?

ocean quartz
#

You'd have better luck if you asked what you need help with specifically

tired igloo
#

Well I am using a help plugin to create a custom help layout

#

I made 5 headings, I want to make it so when you hover over each bit of text it gives a description. then when you click the text it open another page of text

#

But i have no idea what way to do the layout to make it do all that as im new to this

#

Any idea?

forest pecan
#

and != becomes the = with the slash

#

boy i wish github would do that

#

for display

tired igloo
#

Pulse any idea about what I posted?

#

Really need the help

forest pecan
#

Well

  1. Wrong channel #development is probably more suited
  2. im sorry i don't really use Spigot's chatcomponent api
#

a lot of us use Adventure

tired igloo
#

Ah right fair enough np

ocean quartz
forest pecan
#

OwO

#

yeah i got those

old wyvern
#

😌

forest pecan
#

those arrows tho

#

so sexy

ocean quartz
old wyvern
#

triumph docs ftw

#

Matt, will this be available for others to use?

ocean quartz
#

I think I'll make it easy for others to use, but not exactly made for it

#

At least not until i can make this better

old wyvern
#

Ahh

ocean quartz
#

Cuz still no idea what I am doing on the front end side 🥲

old wyvern
#

🥲

ocean quartz
#

This is how it looks so far though

cinder flare
#

damn I am liking that

half harness
#

light mode?

cinder flare
#

this is like mkdocs or whatever but with the MF-color scheme

#

and i love it

forest pecan
#

i didnt know you can use them on docs

ocean quartz
#

You can on mine 😌

ocean quartz
prisma wave
ocean quartz
#

I wonder how hard it'd be to make this public
I guess an editing mode shouldn't be too hard

ocean quartz
prisma wave
#

hmmm

#

I expect a screenshot within the next 10 minutes or there will be trouble

#

Add <$> while you're at it too

ocean quartz
#

Pc is already off, so maybe tomorrow if I don't forget

prisma wave
#

🤬 🤬 🤬

forest pecan
#

has anyone put VERSION_1_6 instead of VERSION_16 in gradle accidently for java version

#

lol

prisma wave
#

hahah no

#

:)

forest pecan
#

Java 16 is 10 times better than Java 1.6

prisma wave
#

That's a bit of an understatement

#

1.6 is borderline unusable

forest pecan
#

Yeah lol

cinder flare
#

haskell thingy?

prisma wave
#

No of course not, it's the bitwise right shift assign operator

#

Oh and also it's in Haskell, I forgot about that

cinder flare
#

what languages does that exist in lol

prisma wave
#

Java, C, etc

cinder flare
#

that exists in Java and C???

forest pecan
#

Yeah

prisma wave
#
int x = 4;
x >>= 2;

x = x >> 2

forest pecan
#

^

cinder flare
#

damb, news to me

prisma wave
#

But yes it's also the monadic bind operator 😌 simon_peek

cinder flare
#

i knew it

prisma wave
#

but obviously I wasn't talking about that

#

hey uh

#

Anyone know how to make a LEGIT website?

cinder flare
#

in CSS or HTML?!

prisma wave
#

HTLM*

#

HTML is for non-LEGIT websites

cinder flare
#

ah true true

#

JS? never heard of it

#

actually that would be a nice reality

prisma wave
#

You mean ScriptJava?

forest pecan
#

Should I use ImmutableMap in java 16 in place of Map if I exceed 10 entries?

#

(10 entries is the max for Map.of)

obtuse gale
#

ofEntries

#

and static import Map.entry for that as well

forest pecan
#

Ok

#

Yeah that works thx

cinder flare
#

ye ye

#

java builders

obtuse gale
#

not really a builder

cinder flare
#

it kind of is though

#

what would you call it

#

a map creator?

lunar cypress
#

factory method is not static factory method though

#

that's factory method

obtuse gale
#

Well in the case of Map.of/ofEntries/entry it is :P

lunar cypress
#

I am pointing this out because you linked the factory method pattern

#

which is not what the methods in question apply

obtuse gale
#

'cause there isn't an article for static

#

pepecry

lunar cypress
#

I'll admit I did not know the factory method pattern before my recent exam though

#

I had never seen it

#

and tbh I still don't really understand how it's supposed to be special or useful

obtuse gale
#

eh

#

idrk how to feel about them lmao

lunar cypress
#

to me it just seems like a specialised strategy pattern

#

I wonder for how long I will remember all those patterns lmao

#

I literally burned them all into my brain in 2 weeks

cinder flare
#

@forest whale have you heard of emacs org-mode?

prisma wave
#

👀

forest whale
cinder flare
#

it's very good at taking notes! 🙂

lunar cypress
#

Lmao

cinder flare
#

now do I know how to use it? Just barely

#

but the power when you do is superb

hot hull
#

@rough socket I sure do hope your request is a joke

dawn hinge
#

I doubt it

ruby dew
#

im crazy
working on a plugin library & offline players editor that reads offline player data from player data file and edit it

#

still have 10+ versions to support

#

im so tired of nms reflections

#

nobody asked but yeah

distant sun
#

I thought nms is fun 🤔

ruby dew
#

but it becomes repetitive action now

#

since i am just finding the similar methods in every single version of spigot ever

#

and have to reflect one by one

#

nms is fun because you can explore methods
but now i have become nms machine lol

#

public interface Offliner {
    public String getUUID();

    public String getName();

    public Object getBase();

    public void loadData(DataManager manager) throws PlayerDataNotFoundException, PlayerOnlineModificationException;

    public void saveData(DataManager manager) throws FileNotFoundException;

    public void setHealth(float f);

    public float getHealth();

    public void addEffect(int effectId, int duration, int amplification, boolean ambient, boolean particles);

    public void removeEffect(int effectId);

    public void removeAllEffects();

    public List<Object> getEffects();
    
    public boolean hasEffect(int id);
    
    public void setItemInHandIndex(int index);

    public void setItems(ItemStack[] items) throws InventoryArgumentsException;

    public void setArmour(ItemStack[] items) throws InventoryArgumentsException;

    public ItemStack[] getItems();

    public ItemStack[] getArmours();

    public int getItemInHand();

    void setItemAtIndex(int index, ItemStack item);
}

anymore methods to add?

#

i feel like i have exhausted all the possibilities here

#

as for 1.8

barren solar
# ruby dew as for 1.8

I don't know the gamemode or context you're operating in, but hunger, coords (+yaw and pitch), and world?

ruby dew
#

oh yes that helps a lot omg

#

thx a lot mate 🙏
if you have any suggestions pls ping me again

distant sun
#

Obfuscated code = shitty code and/or insecure dev
Change my mind

ruby dew
#

minecraft client devs = obfuscated code = insecure dev and/or shitty code
100% correct

barren solar
ruby dew
#

i dont even have the permission to submit premium plugin lmao

#

as my spigot profile is so not maintained

barren solar
# ruby dew as my spigot profile is so not maintained

Every time in the past that I've submitted they gave me a lecture on how I use static inappropriately. I've gotten the same lecture by people in the discussion sections of my plugins. Literally every resource I've ever looked up has never given me any reason not to use static as a means to access a constant public variable though so until someone explains instead of roasts I guess I'll never know lol.

ruby dew
cinder flare
#

"dependency injection"

#

i love the quotes lmao

#

the goal of OOP is to protect you from yourself essentially

#

encapsulation is the big keyword

#

static getters and other static abuse essentially destroys that rule, so that's why they're so discouraged

#

when you do dependency injection, you have to make things in a certain order and you know exactly which instance you're getting

#

static getters can work for a singleton, but rarely do people make actual singletons

ruby dew
#

but i mean the classes with like all public static functions

#

you dont need encapsulation for util classes

cinder flare
#

oh yeah true

#

i don't think there's much wrong with those

ruby dew
#

but people just wont stop talking about oop even with library classes

cinder flare
#

i mean it's the Java experience

#

Java's whole schtick is OOP everything

ocean quartz
#

It's almost like java is an OOP language

ruby dew
#

pepe hands

cinder flare
#

but I mean yeah, pure functions can totally be static

#

but I don't think people would lecture you about dependency injection for pure static functions

ocean quartz
#

Static methods doesn't mean you can't pass the plugin instance as a parameter
The whole "di when you don't have to" doesn't apply here

cinder flare
#

Yeah was gonna say

#

I don't think that's what they're talking about

barren solar
cinder flare
#

Dang, can I see these premium plugins' source code?

brazen narwhal
#

java is a poop language ha gotem

cinder flare
#

I severely doubt they'd turn you down for static pure functions

ocean quartz
#

Lots of static methods != util methods
If they turned you down it's because you were using it wrong

cinder flare
#

Yeah I'm sure there was something spoopy going on

#

They may be dumb, but I don't think they're that dumb

ocean quartz
#

More than half the people posting spigot plugins don't even know what the static keyword does

distant sun
#

it lets you do anything wdym

barren solar
#

It just makes every instantiated object of that variable refer to the same memory value is my understanding

distant sun
cinder flare
ruby dew
#

i mean all purely public static methods
ofc you can still have a class that has some instance methods and static methods
but i am talking about all static methods which is util methods
and ofc you can use dependency injection on util classes lol
but thats just a waste of resource

cinder flare
#

For variables, yeah it does something like that, basically making it a constant

barren solar
#

"static indicates that the particular member belongs to the type itself, rather than to an instance of the type"

cinder flare
#

For methods, it means you don't need an instance of the surrounding class to call it

barren solar
#

It's basically like every instance of the type referring back to the prototype

#

So why would it be bad practice to have a util class full of em

cinder flare
#

He's talking about static methods

#

Not static variables

#

Methods that are pure and don't have any side effects can be static, usually utility methods is what they're called

#

For things like parsing color codes, or printing a message or something

barren solar
#

"When a variable is declared as static, then a single copy of variable is created and shared among all objects at class level. Static variables are, essentially, global variables."

barren solar
#

My understanding is perfectly in line with all documentation I'm finding, but I still don't understand why it would ever be bad practice to have util classes with static methods and vars

cinder flare
#

It wouldn't

#

My guess is that some other stupid shit is going on and that's why they are getting denied

ruby dew
cinder flare
#

You're passing a pointer

#

which takes up like, a good 2 bytes of stack space

ocean quartz
#

You're not initializing things again, that's literally the point of dependency injection, to share already existing instances

barren solar
cinder flare
#

Is your code open source?

#

I'd like to take a look possibly and maybe see if they are justified lol

ruby dew
#

which takes 4 bytes of stack space as i remember

cinder flare
#

Wow, so much!

ocean quartz
#

Oh no, not 4 bytes

distant sun
#

wow 4 full bytes

ruby dew
#

lol

cinder flare
#

The point of dependency injection is to protect you from yourself and is a good OOP practice

ruby dew
#

i mean 4 bytes is still 4 bytes hahaa

cinder flare
#

Hardly

distant sun
#

^

cinder flare
#

It's not worth saving some bytes over making your program a lot less maintainable and error-prone

ocean quartz
#

That'll totally mess my 32kb of ram computer that i bought in 1985

distant sun
#

I think you are the only person occupied of how much memory one DI takes

ruby dew
#

i mean util class + dependency injection + 4 bytes

#

fair

cinder flare
#

What lol

distant sun
#

This ladies and gentlemen is what too much NMS does to you ^

cinder flare
#

Let me tell you there is virtually no argument to be made against dependency injection with space concerns as the primary issue

barren solar
# cinder flare I'd like to take a look possibly and maybe see if they are justified lol

Well the thing is if you look at my typical free release source it'll look hella jank because basically every plugin I release is a tech demo of some new functionality I thought of and haven't seen others do yet. So my typical plugins have code from other projects that isn't utilized, comes packaged with the spigot jar inside of the plugin .jar for easier build dependencies on my end 😂 Some real bad bad practice. But my premium plugins I made sure were very cleaned up lol

cinder flare
#

Wait wait wait, what

ocean quartz
#

If you want to write error prone code that breaks oop principles go for it

barren solar
#

No look past it

cinder flare
#

You shade the spigot jar?

barren solar
#

Shhhhhh

cinder flare
#

Why on earth would you ever do that

#

What does that even accomplish?

distant sun
#

WhY nOt