#dev-general

1 messages · Page 116 of 1

topaz bay
#

(side note, why caddy?)

errant geyser
#

Easier to configure

#

And it's what Bardy and I used the first time, it's just simpler and kool

#

Also yeah, I'm sure its stopped

topaz bay
#

meh

#

It cant be that much simpler if you arent able to do the simple task of assigning ssl certificates

errant geyser
#

Bish caddy is stopped, how would this be its fault

topaz bay
#

I'm referring to the set up in general

#

But also, you wouldn't have this problem if you were using nginx

#

¯_(ツ)_/¯

errant geyser
#

Teach me how to serve a site using nginx, and also how to set up a reverse proxy for my repo, and I'll switch if Bardy ain't got no clue about Certbot

topaz bay
#
#

There ya go

#

All laid out for you

errant geyser
#

But that's so much harder than caddy tho

prisma wave
#

it works tho

#

¯_(ツ)_/¯

topaz bay
#

Do you think just ignoring the fact that you dont know how well serve you better in the future?

#

Its honestly not that hard to just read it and figure it out

errant geyser
#

But I've had caddy working before, so why would I switch? All I need to get working is Certbot, why would nginx help with that?

topaz bay
#

Because its better, and it works.

#

And its directly supported by certbot

#

Why do you even need certbot if caddy has management for ssl through letsencrypt anyway?

prisma wave
#

how do y'all pronounce "daemon"

#

Day-mon or demon?

topaz bay
#

daymon

prisma wave
#

good

topaz bay
#

I mean... its technically wrong

#

But still

prisma wave
#

yeah it just sounds better

#

Saying "I'm gonna start the demon" sounds stupid

topaz bay
#

Better question, how do you pronounce "nginx"

#

"engine x" or "enjinx"

#

Same with "mariadb" do you say "muh-REE-a" or "MAH-ree-uh"

prisma wave
#

I say "nuh-gin-ex"

#

Maybe that's weird

prisma wave
#

What can I say

#

Idk

#

It just sounds right in my head lol

topaz bay
#

pepega brain

onyx loom
#

ive always said enjinx

remote goblet
#

^

topaz bay
#

As have I

onyx loom
#

🙁

topaz bay
#

Such profound levels of disappointment

frail glade
#

TIL.

quiet depot
#

I’m an enjinx and MAH-ree-uh guy

ocean quartz
#

I actually pronounced it "enginx", for Maria I just pronounce it like it is in Portuguese since it's a Portuguese word
Also pronounce S.Q.L instead of sequel

quiet depot
#

so you use the same “g”, as if you were pronouncing “geese”?

ocean quartz
#

Yeah

topaz bay
#

@quiet depot same

#

Apparently Maria is named after the creators daughter

ocean quartz
#

Rolled R

topaz bay
#

It will always be "MAH-ree-uh" in my heart

#

;(

ocean quartz
#

GIF is the worse one imo, I'll never understand how it's the correct way to pronounce it "Jif" if English literally has a word "Gift" where you remove one letter and you get "Gif"

topaz bay
#

Well GIF isn't a word like "Gift" is

#

And the same can be said about the word "Gin"

#

Which is pronounced "Jin"

#

Also, I'm pretty sure the creator stated that the way to pronounce it is with a soft G

prisma wave
#

The moral of the story is that English is a dumb language

topaz bay
#

Sorry, its hard G actually

#

I mean... its not that dumb in this context

ocean quartz
#

Funny thing is that I'm used to pronouncing Gin with hard G xD
Though that's because of my main language

topaz bay
#

The letter G is literally pronounced "Jee"

prisma wave
#

But gift is a hard G

#

As you said

#

There's no consistency

onyx loom
#

hard g soft g

#

curly c kicking k

prisma wave
#

omg

ocean quartz
#

English is pretty hard in consistence, like for example "read" and "read"

prisma wave
#

don't go there

#

English sucks

#

As a language

topaz bay
#

origin

onyx loom
#

still the best language 🙂

prisma wave
#

indeed

#

random monks writing whatever they think makes sense

#

dumbass monks

topaz bay
#

mongs

ocean quartz
#

We have problems like that in portuguese too, like "mal" and "mau" or "facto" and "fato" pronounced the same but never written the same

prisma wave
#

🤔

onyx loom
#

red herrings

prisma wave
#

when's kotlin natural language edition coming out then

#

The perfect language to speak

onyx loom
#

is that what theyre called

prisma wave
#

I guess

#

I'd say homophones

onyx loom
#

sAmE tHiNg

topaz bay
#

red.... herrings

#

Are not the same

ocean quartz
#

I like english though, it's a language that sounds good, even though writing is tricky

topaz bay
#

AT ALL

onyx loom
#

🙄

prisma wave
#

I mean it's the same idea

#

Being misleading

onyx loom
#

thanks

#

u speak for me from now on

topaz bay
#

It is most certainly not the same idea

#

Also, those are not homophones

prisma wave
#

Sound the same, written differently?

topaz bay
#

Wait nvm, you were talking about matt's words

prisma wave
#

Sounds pretty homophonic to me

onyx loom
#

please enlighten me with ur knowledge sx

prisma wave
#

Yes

topaz bay
#

I was referring to read and read

prisma wave
#

ah

ocean quartz
#

read read red

prisma wave
#

I think english is better with not having masculine and feminine words, simple verb conjugations and stuff but to read and pronounce it's very inconsistent

ocean quartz
#

Yeah agree

onyx loom
#

just learn the language and ull know the difference. not hard 4Head

ocean quartz
#

We put gender in literally everything

prisma wave
#

seems kinda pointless

#

Just more to remember

onyx loom
#

most languages have genders

prisma wave
#

most European languages do

#

Not so sure about Asian and others

ocean quartz
#

@onyx loom tell that to the native english speakers who don't know the difference between they're, their, and there

prisma wave
#

probably comes from Latin or Italian

onyx loom
#

oh hod

topaz bay
#

english is not hard to pronounce

onyx loom
#

god

#

u dont understand matt

topaz bay
#

The way we speak english is literally the result of us dropping hard to pronounce things

prisma wave
#

english is not hard to pronounce
though through cough thought

onyx loom
#

last year of high school. 16 years of age and yet they still dont know simple grammar...

prisma wave
#

Consistent

topaz bay
#

like guttural and rolled sounds

#

Those are not hard to pronounce

#

They are just inconsistent

prisma wave
#

Which was my point

#

The pronunciation is inconsistent

ocean quartz
#

Tbh i prefer Amarican English over Brit, it's much easier to understand

topaz bay
#

Wasnt what you said though

#

lol

inner umbra
#

"English is very hard to learn. It could be understood through tough thorough thought though. "

quiet depot
#

da hek

#

brit > american

onyx loom
#

brit >

prisma wave
#

"to ... pronounce it's very inconsistent"

onyx loom
#

🙂

prisma wave
#

that is exactly what I said

ocean quartz
#

Brit is so hard to understand though

prisma wave
#

u wot

onyx loom
#

how ablobsad

topaz bay
#

british english is trash

#

not sorry

prisma wave
#

how so

onyx loom
topaz bay
#

wtf is CHEWSDAY

quiet depot
#

wym, they’re basically the same, brit just injects a few more vowels

ocean quartz
#

For someone that doesn't speak English natively ofc, like as an outside perspective

onyx loom
#

😂😂😂😂😂

topaz bay
#

ITS TUESDAY

#

WITH A T

ocean quartz
#

The accent is more complex

quiet depot
#

oh you’re talking about accent

ocean quartz
#

Yeah

prisma wave
#

There's no single British accent though

onyx loom
#

im sorry that we have an accent change every couple miles or so

prisma wave
#

Northern accents are a mystery to everyone

onyx loom
#

yet u can go 200 miles in usa with the same accents

topaz bay
#

The US has accent changes every couple hundred miles

quiet depot
#

british english isn’t even specific to britain, australians speak british english too

ocean quartz
#

I mean i know there isn't a single American accent either, for example southern american is pretty hard to understand
But british overall is much harder

onyx loom
#

good aussies 😁

topaz bay
#

Yeah, but you guys use every vowel in the language to say the letter "o"

prisma wave
#

hm strange

ocean quartz
#

It's like how Brasilian portuguese is much easier for english speakers to understand than European portuguese

quiet depot
#

if we’re talking about accents tho, gonna have to say american > british

onyx loom
#

sx what?

prisma wave
#

if we’re talking about accents tho, gonna have to say american > british
Absolutely not

#

no

onyx loom
#

ok for a northern accent

topaz bay
#

The was australians say the word "No"

onyx loom
#

fuck the Scousers

quiet depot
#

i mean aus accent > everything else

topaz bay
#

Its like "Naueo"

#

maybe throw an R in the middle of that

quiet depot
#

and a t

#

naruto

topaz bay
#

I hate you

ocean quartz
#

I love Scottish though, even though i understand literally nothing

topaz bay
#

LEAVE

onyx loom
#

i mean aus accent > everything else
@quiet depot i can second this

prisma wave
#

Scottish is great

onyx loom
#

scottish is great

prisma wave
#

complete gibberish

#

But great

onyx loom
#

but fuck liverpool 😁

prisma wave
#

och aye ye wee nipper gon get smacked if ye dunt shut it

quiet depot
#

i’m sorry i don’t speak united kingdom

ocean quartz
#

Oh god, i cannot recognize a single word from a liverpool accent

topaz bay
#

KNACKERED

prisma wave
#

southern accents best

topaz bay
#

Who here is scottish?

#

What does that word mean?

prisma wave
#

It means tired

onyx loom
#

knackered = tired

prisma wave
#

We say that down south too

onyx loom
#

thats used everywhere

#

yeah

topaz bay
#

I've only heard it once it my life

#

From F.R.I.D.A.Y

prisma wave
#

I don't think that's Scotland exclusive

topaz bay
#

Iron Man's replacement AI

prisma wave
#

that's very specific

topaz bay
#

I mean... it was once

#

So yeah....

#

specific

ocean quartz
#

Irish is great too

onyx loom
#

i have irish family

quiet depot
#

why didn’t he bring back jarvis

onyx loom
#

good accent. can recommend

prisma wave
#

Irish is a cool accent

#

7/10

#

would pronounce again

onyx loom
#

now. what do u think of my accent thonk

ocean quartz
#

My fav accents to listen to tbh are scottish and aussie

onyx loom
#

birmingham

prisma wave
#

hmmm

topaz bay
#

Oh wait... friday is an irish accent

#

whoops

prisma wave
#

Close enough

topaz bay
#

Found it by the way

prisma wave
#

@onyx loom I've given it some thought and I've come to the conclusion that Birmingham sucks

topaz bay
#

"Targeting systems knackered boss"

onyx loom
#

🙁

ocean quartz
#

"han to han"

topaz bay
#

lmfao

#

I love her accent

prisma wave
#

knackered

#

What a word

topaz bay
#

Great replacement

onyx loom
#

tbf i didnt adopt the accent somehow

ocean quartz
#

Jarvis was so classy

topaz bay
#

He really was

#

Sassy too

onyx loom
#

knackered is great

#

i would really like anyone to go out of their way to say it in a sentence to someone

prisma wave
#

I'm knackered

topaz bay
#

Can we talk about the useless K

prisma wave
#

Simple

onyx loom
#

much more emphasis than tired

#

im tired is so bland

prisma wave
#

indeed

#

apparently knacker means to kill

#

so it's like saying I'm dead basically

onyx loom
#

👀

#

fun fact of the day

#

thank u very much

topaz bay
#

I love knackering bitches

prisma wave
#

or apparently it can also mean to castrate😳

onyx loom
#

oopsie

topaz bay
#

slaughter

#

Thats a good word

#

Especially the way bloudhound says it

prisma wave
#

another consistent English "ugh" sound

#

slorter

topaz bay
#

daughter

prisma wave
#

porter

ocean quartz
#

Be thankful english doesn't have accents when writing

topaz bay
#

Dont you mean "POUR TAH"

prisma wave
#

I kinda like accents though

#

They make the pronunciation clearer

onyx loom
#

sounds like harry redknap

#

pour tah

#

like his accent

topaz bay
#

caught a panda

ocean quartz
#

Let me give you a little taste, "ca" is pronounced "ka", "ce" is pronounced "se", "ça" is pronounced "sa", "se" is pronounced how it's written, "sa" is pronounced "za", it's not fun

prisma wave
#

🤔

onyx loom
#

what in the hell

topaz bay
#

Alex

#

QUICK

#

French words that start with K

prisma wave
#

uh

#

Is k even a thing in french?

topaz bay
#

yeah

prisma wave
#

wouldn't they just use c without the ç?

ocean quartz
#

Kiosque

onyx loom
#

i cant think of any either

topaz bay
#

Kilogramme

onyx loom
#

oh right

#

thats a thing

prisma wave
#

hm

#

Not many like native words have it though

ocean quartz
#

There is no word that uses K in portuguese and we still have it in the alphabet for some dumb reason

prisma wave
#

wut

#

remove unused import

#

sorry

onyx loom
#

god damn it bm

#

why

topaz bay
#

What about the units Matt?

prisma wave
#

Couldn't help it

topaz bay
#

Oh wow, it uses Q

prisma wave
#

qilogram?

topaz bay
#

Quilograma

ocean quartz
#

Well that's why it's in the alphabet for things coming from other languages like Kilobyte even though for Kilograms is quilogramas

prisma wave
#

Strange

topaz bay
#

Wow... te is pronounced "che"?

ocean quartz
#

Only on Brazil

topaz bay
#

THATS fucking scary

ocean quartz
#

In portugal is pronounced Teh

onyx loom
#

i know one word in portuguese

#

janela Kappa

ocean quartz
#

Oh noice

prisma wave
#

meaning

ocean quartz
#

Window

onyx loom
#

window

prisma wave
#

oh

#

very useful word

onyx loom
#

thanks

#

i only remember it as i watching a csgo event and the crowd was shouting it as the team playing was portuguese

prisma wave
#

lmao

onyx loom
#

so yeah crowds influence esports

prisma wave
#

can't argue with that

ocean quartz
#

Only sentence people know when they visit here is "Bom dia"(good morning) and they use it no matter what time of day it is

onyx loom
#

typical tourists smh

topaz bay
#

How do you say "day"?

#

Oh wait, this is the same in french...

prisma wave
#

jour?

topaz bay
#

yeah

prisma wave
#

Oh cool

topaz bay
#

No

#

I mean, like...

#

Usage in Good Morning

prisma wave
#

Oh

#

I see

#

Good morning = good day do you mean

topaz bay
#

Kinda

#

Except it would be journee

#

for good day

prisma wave
#

yea

turbid dagger
#

hm

ocean quartz
#

french gives me headache

prisma wave
#

nah

#

it's good

#

mostly

onyx loom
#

lol?

ocean quartz
#

The words can be so similar to portuguese and be pronounced completely different

topaz bay
#

headache in french is like a full fucking sentence

#

mal a la tete

#

bad in the head

onyx loom
#

disgusting

prisma wave
#

tu me donnes mal à la tête

#

:)

topaz bay
#

RUDE

onyx loom
#

no no, hes got a point

turbid dagger
#

xd

prisma wave
#

I am spitting fax

#

As they say

topaz bay
#

tg

onyx loom
#

fax

#

american word

prisma wave
#

Straight fax

onyx loom
#

facts

topaz bay
#

ta. geule.

ocean quartz
#

Oh god, "tg" is the most common thing said in any online game you play

topaz bay
#

that is not how you spell that word

ocean quartz
#

Followed by "ta mere"

#

And "putain"

topaz bay
#

This is why I dont write in french

turbid dagger
#

and baguette

onyx loom
#

if ur turkish u will often find amk in games

#

👍

prisma wave
#

ta mère idiot :))

onyx loom
#

😮

topaz bay
#

surprised in french

#

me

#

lol

prisma wave
#

I don't know how to tell you what I can't write?

topaz bay
#

Yes

prisma wave
#

that sentence confuses me

#

kinda

onyx loom
#

i only understand the je peux pas ecrire part 🙁

prisma wave
#

could be worse

topaz bay
#

confuses you how?

prisma wave
#

nah I got it now

#

It didn't make sense at first

ocean quartz
#

It's strange to see "comment" and remember it's pronounced "common"

onyx loom
#

oh yeah lol

topaz bay
#

LOL

prisma wave
#

comment-bibliotheques

onyx loom
prisma wave
#

Common libraries

topaz bay
#

Its weird to force myself to not read "common" the way it is in english

prisma wave
#

euh je fais un comment??

mellow topaz
#

Quick question: anyone know of any good VPN I could use to make an HTTP request?

prisma wave
#

like any?

mellow topaz
#

Like any

#

as long as it just gives me back the text on a given website

#

without anything else

prisma wave
#

that's not what a VPN really does

#

Use an http client like postman

mellow topaz
#

Yeah, but the issue is my IP address is blocked

onyx loom
#

vpn is for pron Kappa

mellow topaz
#

by the API I'm trying to access

prisma wave
#

then use any VPN lol

mellow topaz
#

Yeah! But, problem is, they don't have any APIs that I can see

prisma wave
#

watch any Linux tech tips video to find one with a free trial

#

just download the software ?

ocean quartz
#

Why do you need API? If you're connected it'll change the IP

mellow topaz
#

I'm running it on a webserver though

prisma wave
#

it'll setup a proxy on your machine probably

#

Ugh

ocean quartz
#

Run the vpn on the server

mellow topaz
#

Oh alright awesome I can do that... Just gotta find a good free one though haha

#

But I guess that's not a thing

prisma wave
#

how would that work

#

with parameters and things

mellow topaz
#

Like query parameters?

prisma wave
#

Yes

#

Headers

mellow topaz
#

Just URL-encode them

prisma wave
#

The body etc

#

seems very messy

#

and dangerous too

mellow topaz
#

Yeah, true... That's not really what I need though, I just need to make a GET request

prisma wave
#

It's probably a better idea to get an API key that won't be limited

#

Rather than going for a workaround

#

Assuming that's possible

mellow topaz
#

I mean, I'm trying to access Spigot's API, and I don't think Spigot is gonna add any new features any time soon

#

especially not something like that haha

#

But that would be a good idea

prisma wave
#

ah

#

Spiget?

mellow topaz
#

Yeah, I've tried that, it just takes forever to update

#

longer than Spigot's API

prisma wave
#

Yeah I guess that's to be expected

#

Depending on what you're doing you might be able to get a bypass

#

or at least a higher limit

#

what are you doing incidentally?

mellow topaz
#

Honestly I'm just trying to get info about a SpigotMC member

prisma wave
#

just ratelimited from testing?

mellow topaz
#

Sadly nope... It's the first time I've made a request from my webserver

prisma wave
#

that's... Odd

mellow topaz
#

Yeah...

prisma wave
#

What's the error, a 403?

mellow topaz
#

Yeah

prisma wave
#

Are you providing a user agent?

#

I had a very similar problem recently

mellow topaz
#

Actually no, maybe that's it. Thank you! One sec leme try that

prisma wave
#

Good luck

mellow topaz
#

Well would you look at that... That solved the issue. Thank you!

prisma wave
#

Haha great

#

No problem

#

If it works through the browser but not via code the first thing to check is usually the headers that the browser is sending

mellow topaz
#

Haha yeah, I'll def do that next time

ocean quartz
#

@topaz bay Curious question, which one should I be using Vector#distance or Vector#distanceSquared?

topaz bay
#

distanceSquared is more performant

#

If youre doing purely resolution of whats closest, Id use it

ocean quartz
#

Gotcha, yeah i've getting the closest

topaz bay
#

Huge

sturdy zinc
#

My plugin has no errors and not sure why on player join on Spigot 1.16.1 it will not give the item

inner umbra
#

Code? Add debug code to see whats running

sturdy zinc
#

was anything changed in 1.16.1, for player join or stack items?

inner umbra
#

Not that I am aware of...

sturdy zinc
#

it has to do with OP players

inner umbra
#

Code? Add debug code to see whats running

sturdy zinc
#

it seems to be working for both now, but it only started after server frooze and kicked both players

#

my guess issue is Spigot still has bugs

rotund egret
#

Hey Matt, when do we get documentation on the command api for discord uwu

errant geyser
#

^ especially now I actually might have to write KotlinBot in Kotlin

errant geyser
#

@prisma wave

object CountdownManager {

    private val Countdowns = mutableMapOf<UUID, Countdown>()


    fun addCooldown(p: Player, duration: String) {
        val countdown = Countdown(getPlugin(), duration)
        countdown.start()
        Countdowns[p.uniqueId] = countdown
    }

    fun getCooldown(p: Player): Countdown? {
        return Countdowns[p.uniqueId]
    }
}``` is this better for my CountdownManager?
distant sun
#

@rotund egret what do you need help with?

obtuse gale
#

So, Ive got a system wherte a user can create like a support ticket with staff, and an embed is sent in a staff only channel where what I want to happen is staff can click a reaction, and my bot will send them a private message, where they can type in their question, which will then get sent to the ticket. Then the answer to that question which will be the next message typed in the ticket, will be private messaged to the user, which is the bit idk how to do, the bit so the answer is sent to the staff member

onyx loom
#

that seems awfully complicated for no reason

obtuse gale
#

lol

#

I might rethink it

onyx loom
#

please do

errant geyser
onyx loom
#

me? lol

#

u got the wrong guy

errant geyser
#

But like, u a Kotlin big brain

onyx loom
#

altho i may be using a superior language, there is only so much my brain can do

errant geyser
#

🤔

#

ok, I'll have to wait until KM wakes up

barren cloud
#

I really wonder something; which way is better for minigame arenas? First one is using multi arena which is using multiple arena in one instance, second is bungee arena that has more than one instance and one arena per instance. If there is another way to do it, I'd like to hear you.

#

I use multi arena and it not look like performance friendly. It has to unload and load world several times which may affect instance performance. One the other hand, bungee arena also affect performance.So I don't know which way is performance friendly :/

obtuse gale
#

Is there like

#

A way to get my bot to say any exceptions it comes across without having a try/catch on all things?

errant geyser
#

Just catch Exception ?

obtuse gale
#

when tho

hot hull
#

Ooo pokemon hunting

errant geyser
#

In your try/catch

barren cloud
#

in your code

obtuse gale
#

well....

#

I dont wanna try/catch on all my code lol

#

Is there any other ways?

old wyvern
#

In your initializing block?

barren cloud
#

why you try/catch all of your code

obtuse gale
#

I want my bot to repeat all exceptions it comes accross to a channel

#

do I like make my method throw exception?

old wyvern
#

as I said, where ever you start your bot

#

oh wait

#

nvm

obtuse gale
#

the JDABuilder#build can only throw a login Exception

#

so

barren cloud
#

You can catch all of the exception with only "Exception" catch

obtuse gale
#

I understand this

#

but ** w h e n**

barren cloud
#

So basically you want to catch exception without using try/catch in all of your code

obtuse gale
#

essentially

#

I want my bot to send any exceptions it ever comes accross into a channel

#

idk if this is possible

old wyvern
#

You would still have to present a try catch block

obtuse gale
#

well if i have to put one im fine with that

old wyvern
#

or your thread would stop since the exception wasnt handled

obtuse gale
#

Would I just have to tell all my methods to throw Exception ?

barren cloud
#

The problem is you cannot catch exceptions without try/catch tho...

old wyvern
#

You can get the exception message with a log4j filter maybe

#

no

#

Aj

#

Unchecked exceptions are thrown even if not specified

obtuse gale
#

im fine using 1 or 2 try/catch, i just dont wanna chuck it on all my methods since thats kinda a pain in the ass

old wyvern
#

You should

obtuse gale
#

ehh

#

I wont bother in that case lol

#

not that important of a feature

barren cloud
#

Do you use any API for your project?

proper plaza
barren cloud
#

If you don't, you shouldn't use try/catch in all of your code

#

If you sure there'll be not any exception so there's no point to use it

errant geyser
#

@proper plaza me.zitsraul.bionicac.utils.location.PlayerUtil.blockNearHead(PlayerUtil.java:133)

proper plaza
#

method:

barren cloud
#

I'm guessing you're using PacketInFlying and try to get block...

proper plaza
#
public static boolean blockNearHead(Player player) {
        double expand = 0.3;
        for (double x = -expand; x <= expand; x += expand) {
            for (double z = -expand; z <= expand; z += expand) {
                if (player.getLocation().clone().add(z, 2, x).getBlock().getType() != Material.AIR) {
                    return true;
                }
                if (player.getLocation().clone().add(z, 1.5001, x).getBlock().getType() != Material.AIR) {
                    return true;
                }
            }
        }
        return false;
    }```
#

exact line java if (player.getLocation().clone().add(z, 2, x).getBlock().getType() != Material.AIR) {

barren cloud
#

but where?

#

Which event or method

errant geyser
#

The one he just sent

#

oh u mean where is it called

barren cloud
#

I mean this is function that calls anywhere so "at me.zitsraul.bionicac.listeners.PacketListener.onPacket(PacketListener.java:33)" call it

#

and I guess it is packetinfly

proper plaza
#

PacketReceiveEvent

barren cloud
#

PacketInFlying is sending player movement and client-side so you should have to make sure the chunk is loaded

proper plaza
#

how?

old wyvern
#

You dont need to clone player.getLocation() btw

#

its already a copy

barren cloud
#

PlayerMoveEvent is the same thing. There're no difference between and it may more clear for you

proper plaza
#

okey

prisma wave
#

@errant geyser countdowns should be in UPPER_SNAKE_CASE since it's a constant

errant geyser
#

ur alive!

prisma wave
#

Finally

hot hull
#

Where's our meme

prisma wave
#

Didn't get to sleep until 3:30 am

#

Hold on

onyx loom
#

no excuse bm

#

i been awake since 11 and i went to bed same time as u

#

i definitely didnt set an alarm

prisma wave
#

soz

#

I hope this meme will make up for my crimes

onyx loom
#

what a great meme

#

now post it on the sub so i can upvote

errant geyser
#

Your crimes have been forgiven, now let us give you karma

prisma wave
#

thanks

onyx loom
#

r/kotlinmemes more like r/laughingatjava

#

also daily reminder for slovenian

prisma wave
#

That's pretty much what it is lmao

#

ah yed

#

yes

#

Can't forget the slovenian

hot hull
#

oof KM

prisma wave
#

you can't deny it

rotund egret
#

@distant sun
The big thing I wasn't too sure about was doing dynamic sub commands or using regex for sub command

for example I wanted a command to be !roll 2d6
but I don't want to have to hardcode subcommands for every variant of dice

Overall though there just isn't really any doc outside of what's in my IDE which works fine, I just like the usually more detailed docs outside of the IDE.

ocean quartz
#

Heyo, i can work on a documentation a bit later, since it's still not complete i didn't wanna do much but i think it's stable enough
I'll show you an example of the dynamic commands in a second
Also saw your issue I'll fix it in a bit too

prisma wave
#

@frail glade just a heads up, the "basically" latest version is now in the gradle plugins repository so you don't need all the settings.gradle stuff anymore

heady birch
#

went sleep 3 am got up 5 am

onyx loom
#

what in the hell

#

go back to sleep

#

thats not healthy

heady birch
#

always grinding

#

it is one off

frail glade
#

Can you link the Gradle plugin on the website?

hot hull
#

Gotta get that enterprise plugins huh @heady birch

heady birch
#

lol

#

Ive never made a prize plugin

#

dont Plan to

prisma wave
heady birch
#

final Gradient gradient = new BasicGradient(fromColour, toColour, text.length());

#

GLib kind of whack

errant geyser
#

Does anyone have an updated guide on custom path finding that was released on/after september 2017 (release of 1.12.2)?
I was following one from 2015 but it uses NMS fields which I assume have changed

ocean quartz
#

@rotund egret Here is an example of the command builder for dynamic commands:

val cmd = CommandBuilder()
        .setPrefix("?")
        .setCommand("command")
        .setArgumentsLimit(0)
        .setSubCommand("subcommand")
        .autoDelete()
        .setExecutor { args, message ->
            message.textChannel.sendMessage("command").queue()
        }
        .build()

commandManager.register(cmd)
old wyvern
#

Why does github look weird all of a sudden??

#

oh wait

rotund egret
#

Ah the builder!

old wyvern
#

the new design

rotund egret
#

Thank you :)

old wyvern
#

eh

ocean quartz
#

Yw ;p
Working on your issue now

prisma wave
jovial warren
#

nice

#

K&R

#

good boy 🙂

prisma wave
#

allman with kotlin lambdas doesn't really work so

jovial warren
#

allman doesn't work with anything but ok lol

prisma wave
#

it is objectively better but ok

jovial warren
#

subjectively*

prisma wave
#

no

jovial warren
#

yes

prisma wave
#

objectively

#

it makes the beginning and end of blocks much clearer

jovial warren
#

subjectively

prisma wave
#

that's indisputable

jovial warren
#

it makes the beginning and end of blocks much clearer
guess that's true

#

but the bracket on a new line just doesn't look right to me as I've said before

#

idk

#

I personally think it looks messy

#

but hey, who am I to judge I guess

quiet depot
#

k&r is objectively better than allman

jovial warren
#

now that's something I can agree with

timid niche
#

Somebody here, who can explain me wait(); and notify()?

jovial warren
#

also, anyone got any idea why my bot can't load any music from youtube?

#

wait() will, well, wait

#

until notify() is called

timid niche
#

Ja

#

But it gives me always a IlligaleMonitorExeption or smth

jovial warren
#

@prisma wave you got any idea if Spring requires some sort of addon for a process running through it to make outbound and inbound connections over IP?

timid niche
#

I am calling the same object and all.

prisma wave
#

doubt it would

#

@timid niche why are you using wait and notify?

jovial warren
#

^^^^

timid niche
#

Just for a test

#

ITS a console program.

#

That should send a message, when a boolean is true.

prisma wave
#

IllegalMonitorStateException is thrown when the calling thread doesn't own the object's monitor

old wyvern
#

wait() is called on a thread and blocks current thread till the called thread dies or notify() is called on that thread

timid niche
#

And when I'm calling the wait meth there is this IlligaleMonitorSateExeption

#

Oh

#

My fault

#

I ll try later. Thank you. ::

#

:3

ocean quartz
#

@rotund egret That issue has also been fixed, version 1.1.11-BETA

hallow tide
#

bukkit's translateAlternateColorCodes works with rgb using &x&r&r&g&g&b&b

ocean quartz
#

That sounds awful

hallow tide
#

why

#

cuz its too long :P?

heady birch
#

Yeah thats what I use

#

Just convert the # format into that

hallow tide
#

that helps a lot since i didnt want to change my plugin a lot just to support 1.16 rgb

hot hull
#

dode, please don't

hallow tide
#

?

hot hull
#

Please don't use that

hallow tide
#

im obv gonna make my plugin use a wrapper that converts # to that

hot hull
#

I mean yea just use regex to get the hex and just use ChatColor.of

hallow tide
#

yea

hot hull
#

It translates it to the above shit

hallow tide
#

mhm

#

is this good? &xRRGGBB?

hot hull
#

#xrrggbb

#

Or &#xrrggbb

hallow tide
#

why add the # though

hot hull
#

Because it's hex?

hallow tide
#

doesnt x say that its hex

onyx loom
#

wot

hallow tide
#

never seen 0xFFFFFF?

prisma wave
onyx loom
#

thats good

#

i dont think theres a need for the define if u have the to there

prisma wave
#

yeah true

#

just thinking about how readable it is and all

#

I wanted "key" = "value" originally but I don't think that's possible

onyx loom
#

if i can read it, its readable

#

¯_(ツ)_/¯

prisma wave
#

fair enough lol

old wyvern
#

what does the to keyword do in kotlin?

prisma wave
#

it's not a keyword

#

it's an infix function

old wyvern
#

ah I see

onyx loom
#

big brain shit

prisma wave
old wyvern
#

is overloading = not applicable?

#

wait nvm

prisma wave
#

not in this case no

#

i don't think so anyway

old wyvern
#

I see

prisma wave
#

oh you can't override = at all

#

you can override ==

old wyvern
#

ah

#

Can you create new operators with symbols?

prisma wave
#

nah

#

just existing ones

#

but I mean

old wyvern
#

ah

prisma wave
old wyvern
#

ah

obtuse gale
#

Is it "bad" to use multiple listener classes with JDA?

#

Like listening to the same e vent

ocean quartz
#

Nah, organization is good

jovial warren
#

🤔

#

I smell race condition

prisma wave
#

Bruh Java 15

#

Is literally kotlin

obtuse gale
#

lol

prisma wave
#

Records, sealed classes, text blocks

obtuse gale
#

but really is that a complaint?

#

Isnt that a good thing?

jovial warren
#

Records, sealed classes, text blocks
yeah but Kotlin still has more than that lol

prisma wave
#

I'm not complaining

jovial warren
#

also wdym by text blocks?

prisma wave
#

Java sealed classes look lowkey better

#

"""

#

Raw strings in kotlin

jovial warren
#

oh string literals

obtuse gale
#

what even is a sealed class??

jovial warren
#

cannot be inherited from afaik

#

no

prisma wave
#
              <html>
                  <body>
                      <p>Hello, world</p>
                  </body>
              </html>
              """;```
jovial warren
#

they're just being copy cats now lol

prisma wave
#

Sealed classes are classes that have to explicitly specify their subclasses

jovial warren
#

what's the purpose of that anyway?

prisma wave
#

You can use them as a replacement for enums

#

That are more OOP

jovial warren
#

ah okay

prisma wave
#

Or just to restrict the input that you're getting to a set of known types

#

Tbf even though they're copying kotlin they are arguably doing it better

#

Sealed classes will add a proper thing in the bytecode for it so kotlin won't need to compiler hack it anymore

#

And sealed interfaces are something kotlin doesn't have

old wyvern
#

The problem is going to be mostly people not moving forward to 15 till who knows what year

onyx loom
#

yep

prisma wave
#

Yeah it'll be a long way away

onyx loom
#

atleast like 5 years

prisma wave
#

11 is gonna be in LTS for at least 5 years yeah

old wyvern
#

java 8 isnt suppourted rn right? and people still staying on that 💀

onyx loom
#

i think its still supported

old wyvern
#

Are you sure?

prisma wave
#

Iirc it came out of LTS quite recently

onyx loom
#

hmm

prisma wave
#

It's either December 2019 or 2020

#

But MC servers gonna be on it for years still

onyx loom
#

ah

#
Java SE 8 has gone through the End of Public Updates process for legacy releases.  Oracle will continue to provide free public updates and auto updates of Java SE 8 indefinitely for Personal, Development and other Users via java.com. Oracle will provide at least 18 months notice on this page and other communication channels if an end of availability date is set. Developers can find Oracle Java SE updates, including Oracle Java SE 8, 11 and current releases, free for development on OTN. As of the April 16, 2019 quarterly critical patch update, Oracle Customers should access updates to Java SE 8 for commercial use from Oracle through My Oracle Support and via auto update where applicable (Visit My.Oracle Support Note 1439822.1 - All Java SE Downloads on MOS – Requires Support Login).```
prisma wave
#

Huh

onyx loom
#

oh wait

#

it still is

#

idk what the ** mean next to it tho

old wyvern
#

Oracle will require businesses to have a commercial license to get updates after January 2019.

prisma wave
#

If every server used Java 11 that would be nice

remote goblet
#

You ever look at old code

#

and just cringe

onyx loom
#

my oldest code is only a month old and yes

remote goblet
#

for example i'm now sorting out a plugin that is filled with this

private Class class;

public CmdClass() {
  this.class = Class.getInstance()
}
// do stuff
onyx loom
#

private Class class

remote goblet
#

example names

onyx loom
#

o

jovial warren
#

that's stupid

remote goblet
#

i'm aware

hot hull
#

private final

remote goblet
#

there were no finals

hot hull
#

Ctrl + A + DeLeTe

remote goblet
#

not a single one in this entire plugin

onyx loom
#

damn

hot hull
frail glade
#

Nice.

onyx loom
#

Kotlin Mitten come grab some free xp

rotund egret
#

Eggs pee?

onyx loom
#

how do i find how many indeces there are in an array

hot hull
#

.length?

onyx loom
#

doesnt look like it sir

old wyvern
#

wdym?

#

length should retreive the count of elements in an array

distant sun
#

Not today

old wyvern
#

If you are trying to access the last index make sure to use the length - 1

distant sun
#

Array's revolution!

old wyvern
#

xD

hot hull
#

kek

onyx loom
#

its size 🙂

distant sun
#

Array or list,

#

?

prisma wave
#

either

#

in kotlin

distant sun
#

Bleah

prisma wave
#

it's more consistent

distant sun
#

Bleah

onyx loom
#

🙂

#

no gaby

#

its 👍

distant sun
#

Bleah

onyx loom
#

NO

distant sun
#

Shut up dude

prisma wave
#

if Collection uses size why shouldn't array?

onyx loom
#

:nou:

hot hull
#

It's either or, doesn't matter does it

prisma wave
#

not particularly

#

but size is more consistent

#

therefore better :)

jovial warren
prisma wave
jovial warren
#

I agree

prisma wave
#

too bad I don't need it

jovial warren
#

no it's good you don't need that monstrosity

signal tinsel
#

Any idea how I could best implement hex color support in normal text messages?

#

Like messages.yml

hot hull
#

Same as you would &a ?

signal tinsel
#

Does translatealternatecolorcodes support that?

hot hull
#

no

signal tinsel
#

Any idea how I could implement it?

frail glade
#

Frosty, ping me once you push another commit to your PR and I'll check it out.

hot hull
#

Gimme like 2 more hours

frail glade
#

👍

remote goblet
#

@signal tinsel You use ChatColor#of("#Hex") to create a chatcolor using hex

signal tinsel
#

How would I parse it in the messages tho?

remote goblet
#

lemme spoonfeed you quickly

signal tinsel
#

Lmaoo

remote goblet
#
private static final Pattern HEX_PATTERN = Pattern.compile("#([A-Fa-f0-9]){6}");

    public String parseColors(String message) {
        String parsed = message;

        if (NMSUtil.getVersionNumber() >= 16) {
            Matcher matcher = HEX_PATTERN.matcher(parsed);

            while (matcher.find()) {
                String hexString = matcher.group();
                hexString = hexString.substring(1, hexString.length() - 1);

                final ChatColor hexColor = ChatColor.of(hexString);
                final String before = parsed.substring(0, matcher.start());
                final String after = parsed.substring(matcher.end());

                parsed = before + hexColor + after;
                matcher = HEX_PATTERN.matcher(parsed);
            }
        }

        return ChatColor.translateAlternateColorCodes('&', parsed);
    }
#

i'm not explaining it lmao

#

you dont need that nmsutil thing

#

but that's so it works with versions lower than 1.16 EmiSip

hot hull
#

i'm not explaining it lmao

you dont need that nmsutil thing
but that's so it works with versions lower than 1.16

remote goblet
#

shut up you rat

gusty fulcrum
#

Is any dev free to price something up for me?

old wyvern
#

wdym?

gusty fulcrum
#

i want a custom plugin made but idk what budget is reasonable for the task

topaz bay
#

I think the term is quote

gusty fulcrum
#

^ yeah sorry

#

I have a small write up if anyone can quote it

errant geyser
#

Uh, sure

#

DM me it if you don't wanna post it here

rotund egret
#

Thanks for the quick fix Matt! isahearts

ocean quartz
#

Yw ;p

old wyvern
#

@prisma wave

   //Does this section run on the main thread or ???
}```
frigid badge
#

shouldn't really be using GlobalScope

old wyvern
#

What should be used instead?

frigid badge
#

e.g. use a default one from Dispatchers

prisma wave
#

no

#

it's async

#

but yes ^

frigid badge
#

or extend CoroutineScope or whatever that is called

old wyvern
#

hmm

obtuse gale
#

how to relink my account

#

because it's already linked but i have left the discord a month ago

distant sun
#

=check @obtuse gale

compact perchBOT
#
Forced Spigot Purchases Check!

Successfully checked that user for new purchases!

frail glade
#

Got my stuff, Frosty?

hot hull
#

Tommorrow, gotta finish completion cause it's still a litle borked for some

frail glade
#

Okie

hot hull
#

I'm a smart person and didn't push before I got off of pc, so you can't help :p

frail glade
#

Rip

jovial warren
#

I think I stuck to SRP

#

I know you're gonna end up picking it apart though, but that's why I asked you to review it lol

topaz bay
#

magic. numbers.

jovial warren
#

where?

topaz bay
jovial warren
#

oh that

#

what do I do about that? create a constant value and put it in a companion object?

topaz bay
#

Yes

jovial warren
#

okay

#

anything else?

rotund egret
#

Hey @ocean quartz
With the builder & arguments.

I'm noticing that I can add arguments if there's a sub-command, but not for a regular command

ex; !roll 5

    val cmd = CommandBuilder()
        .setPrefix("!")
        .setCommand("roll")
        .setArgumentsLimit(1)
        .setExecutor {
            args, message ->
            message.textChannel.sendMessage(args.toString()).queue()
        }
        .build()

Returns Wrong usage for command! in discord
but
with a subcommand it returns the 5 as [5] (as I would expect)

Is this a bug, or am I doing something wrong.

ocean quartz
#

It's a bug yeah, I'll take a look at it

rotund egret
#

❤️

jovial warren
#

hey anyone here know how Jenkins works?

#

and/or has used it before

prisma wave
#

It's CI

#

Fairly simple

jovial warren
#

well I've almost got it finished

#

it builds gradle successfully

#

problem is: I have it run shadowJar, but it doesn't put the JAR on the build

#

how do I get the JAR from shadowJar over to the Jenkins build?

#

also @prisma wave if it was fairly simple I wouldn't have spent the last couple of hours trying to get it to work

remote goblet
#

and not having to have excessive()

onyx loom
#

yep its amazing

remote goblet
onyx loom
#

use more brain cells

remote goblet
#

thats hella owrk

onyx loom
#

also get rid of !!

#

it bad

cursive galleon
#

Anyone able to give me a hand with some HTML?

remote goblet
#

depends

cursive galleon
#

I'll link it

remote goblet
ocean quartz
#

@rotund egret It's been fixed 1.1.13-BETA
you may be wondering why it went from 11 to 13, i released a version with sys out messages

rotund egret
#

Tysm 🙂

#

Oop not up yet. was wondering why it didn't work lol

ocean quartz
#

Maven central trying to breath after I released 2 versions in less than 5 minutes xD

remote goblet
#

Genuinely just switching

event.reply(event.getAuthor().getAsMention() + ", Correct usage: " + event.getPrefix() + "quote select <quote_id>
``` into ```kotlin
event.reply("${event.author.asMention}, Correct usage: ${event.prefix}quote select <quote_id>")
``` makes me feel so good inside
rotund egret
#

Yeah kotlin has made my life so much easier

versed ridge
#

Literally can't even use kotlin because an api I use randomly decided to stop working on any kotlin project

#

unfortunate

topaz bay
#

That doesnt make sense?

#

What api is that?

#

Anything that works in Java will work in Kotlin

lost edge
#

Ok so Im working on my AutoPickup plugin and I need to come up with a way to get drops from things like sugarcane and scaffolding and Im currently debating on two methods that I can think of:

Method 1: Use recursion to get the size and count how many items need to be given to the user. Would have to most likely implement scaffolding rules

Method 2: Use BlockPhysicsEvent to get all blocks broken from the previous block which turned into Air. I would have to save a location then get all the block the broke from that location maybe adding a time cap of 1Min. But then probably still have to implement some sort of Scaffolding rule.

Sadly BlockDropItemEvent does not work for this 😦

#

What method would you guys think I would be best off with? Or does someone know a secret solution 🙂

topaz bay
#

method 1

versed ridge
#

I mean, it just started showing the imports and stuff for it as Unresolved reference

#

Only in Kotlin projects

#

Absolutely no idea why

lost edge
#

Thanks for the input!

topaz bay
#

@versed ridge What is it though...

versed ridge
#

What is what?

topaz bay
#

The API you 4head

#

oml...

versed ridge
#

My own, just has some stuff I use for plugins

topaz bay
#

user error

versed ridge
#

but how though

#

I didn't do anything

#

It actually still works and lets me compile the projects

#

Just shows as Unresolved reference

topaz bay
#

Show me

versed ridge
topaz bay
#

where is this file?

versed ridge
#

Which file exactly

topaz bay
#

It looks like it says that on like... everything

versed ridge
#

Yes, everything related to that api

topaz bay
#

And Im talking about this kotlin file

versed ridge
#

uh, wdym where is it

topaz bay
#

...

#

jesus

#

Send a screenshot of your project structure

versed ridge
#

I mean that could mean a couple things

topaz bay
#

And your build file?

versed ridge
topaz bay
#

oh wow...

#

Yeah no, that's not how you do that

#

matt's framework should be published in a repo somewhere

#

And you should install your api jar

versed ridge
#

I have a modified version of it

topaz bay
#

modified how?

versed ridge
#

Just changed some things in it

topaz bay
#

Then you should install it

versed ridge
#

What do you mean

topaz bay
#

To your local maven repo

ocean quartz
#

Oh, what did you change? ;o
just curious

topaz bay
#

Also, you really shouldnt modify the destination of the shadowJar task

#

Create a separate task to copy it to that destination

versed ridge
#

Just changed it to use my own User class as the parameter for commands and registered commands with commodore

#

maybe some other things I forgot about

topaz bay
#

Why are you declaring log4j?

versed ridge
#

So certain things don't show in console log

topaz bay
#

?

ocean quartz
#

Speaking of which Sx, so the task doesn't like to replace the jar in runtime cuz permissions, is there a way to do so? Most of the times if it's small changes I like to reload instead of restarting to be faster to test
And oh that's fair

topaz bay
#

certain things like what?

#

@ocean quartz huh?

ocean quartz
#

The copy task will fail if the jar is loaded on the server

topaz bay
#

Are you on windows?

ocean quartz
#

Yeah

topaz bay
#

Theres your answer.

versed ridge
#

Random commands that I make players run to do certain stuff

topaz bay
#

You cant replace files in use on windows

ocean quartz
#

I mean i knew that xD
Wanted to know if you had a way around it

topaz bay
#

Yeah no, thats just an OS thing

ocean quartz
#

Ah okay gotcha

versed ridge
#

I replace my jar and can reload it in runtime

#

?

ocean quartz
#

You're not using the copy task

versed ridge
#

ah

topaz bay
#

It depends on if the application is holding a lock on the file

#

Which the jvm does

versed ridge
#

And you should install your api jar to your local maven repo
How do I do this?

topaz bay
#

specifying a maven publication, and publishing to local

#
plugins {
  id "maven-publish"
}

publishing {
  publications {
    maven(MavenPublication) {
        groupId = project.group
        artifactId = project.name
        version = project.version
        
        from components.java
    }
  }
}
ocean quartz
#

I wanna add json and the rgb colors to ccmd, was thinking of possible syntax, what do you think about:
#000000[Simple Text](hover:Hello!)
Does it seem too complex?

versed ridge
#

@topaz bay well damn

#

that fixed it

topaz bay
#

Good

versed ridge
#

But why did it randomly break?

topaz bay
#

Now enjoy all the kotlin greatness

topaz bay
#

do it

frigid badge
#

but maybe I already am part of kotlin

topaz bay
#

You know you want to

#

LIES

frigid badge
#

I just have never expressed it

prisma wave
#

it's impossible

topaz bay
#

It is a part of the kotlin mind to evangelize

faint bobcat
#

kotlin takes over your mind

prisma wave
#

there's no such thing as a kotlin user who doesn't mention that they use kotlin at least once a day

faint bobcat
#

^^

#

its something you get inevitably proud of

frigid badge
#

I’m no good in kotlin, but I’ve always been telling my work to use kotlin

#

and that they should ditch c#

prisma wave
#

i see

faint bobcat
#

should we release him

frigid badge
#

but I don’t use kotlin like a lot

#

rarely