#dev-general

1 messages ยท Page 153 of 1

prisma wave
#

Etc

jovial warren
#

what kind of crack you been smoking????

#

okay that last one's true

onyx loom
#

imagine not having a 4k tv

prisma wave
#

1080p :(

jovial warren
#

shut your mouth little kid @onyx loom

prisma wave
#

My phone is 1440p I think

onyx loom
#

sure the dpi is higher, but in the grand scheme. yuck

jovial warren
#

1080p is literally fine

#

I've never ever had a problem with it

#

4K literally offers 0 bonuses for me

onyx loom
#

hence why 1080p is the most used

#

but 4k is nice ๐Ÿ™‚

jovial warren
#

4K is something

onyx loom
#

8k is just 7head level

jovial warren
#

a waste of money

prisma wave
#

I mean mobile lets me watch Netflix while making a sandwich

jovial warren
#

anything above 1080p is a scam

prisma wave
#

Can your TV do that?

onyx loom
#

yes

prisma wave
#

4k monitor is good

onyx loom
#

just bring ur tv with u

#

mobile tv

jovial warren
#

no but who tf watches Netflix whilst they're making their lunch????

onyx loom
#

who needs wires amirite

prisma wave
#

who doesn't

#

it's something to do

onyx loom
#

is watching the film not enough for u?

jovial warren
#

@errant geyser wakey wakey I got something to tell you btw

prisma wave
#

nope

#

well

#

I mean

jovial warren
#

Octo's now on version 2

prisma wave
#

Now you can watch while making sandwich

#

Slows your productivity by over 300%!

heady birch
#

streaming services ๐Ÿคข

jovial warren
#

the CommandManager has been made abstract so you can write your own implementations of it to choose how you want to handle commands (useful for BardyBot's almost ready prefix-per-guild system that uses PostgreSQL)

heady birch
#

good old traitional TV

onyx loom
#

i bet niall watches tipping point and pointless

#

oh yeah, how could i forget bullseye too

jovial warren
#

tipping point was a decent show when I used to watch it

#

pointless is, well, pointless

onyx loom
jovial warren
#

bullseye is brilliant

onyx loom
jovial warren
#

with ol' what's his name

prisma wave
#

pointless is great

#

And The Chase

heady birch
#

how many people said "kotlin" for the worlds best programming language?

prisma wave
#

Me

heady birch
#

pointless answer!

jovial warren
#

And The Chase
my man

prisma wave
#

SHUT UP

onyx loom
#

๐Ÿ˜‚

jovial warren
#

good ol' Bradley Walsh

prisma wave
#

national treasure

jovial warren
#

speaking of Bradley Walsh

heady birch
#

emoji movie

jovial warren
onyx loom
#

jesus christ u guys couldnt get more biritish

heady birch
#

cheers mate

prisma wave
#

Cheers twat*

heady birch
#

danny

#

g

onyx loom
#

ngl tho whens bradley walsh getting knighted

prisma wave
#

come to Smethwick Birmingham

#

Ask for Danny g

onyx loom
#

idek know where smethwick is ๐Ÿ˜ฌ

prisma wave
#

Birmingham

onyx loom
#

and i live there ๐Ÿ˜ฌ

heady birch
#

hes gonna break your legs

onyx loom
#

pls no ๐Ÿ˜ญ

#

does jetbrains toolbox offer anything other than auto updates? and is it worth getting it just for intellij?

prisma wave
#

Yes

#

It has project management too

#

So you can open a specific project from the toolbox

#

Even if you only use intellij it's still useful to have

onyx loom
#

sure thing boss

prisma wave
#

clojure...

onyx loom
#

no

prisma wave
#

Why

onyx loom
#

looks yuck

#

sorry not sorry

distant sun
#

What would you guys use to get data from a server using a discord bot? I need the value of some papi placeholders from the server

#

Like, how do I make a get request to a plugin ๐Ÿคฃ

steel heart
#

jda?

ocean quartz
onyx loom
#

impressive

#

๐Ÿ‘

ocean quartz
#

They are all bold for some reason though

steel heart
#

epic times infinity?

#
        while(true) {
            while(true) {
                final Method method;
                EventHandler eh;
                do {
                    do {
                        do {
                            if (!var16.hasNext()) {
                                return ret;
                            }

                            method = (Method)var16.next();
                            eh = (EventHandler)method.getAnnotation(EventHandler.class);
                        } while(eh == null);
                    } while(method.isBridge());
                } while(method.isSynthetic());
``` noice
onyx loom
#

๐Ÿ˜ฌ

distant sun
#

jda?
@steel heart ya

steel heart
#

eventually you'd need the bot to have the expansion as dependency

distant sun
#

How so?

steel heart
#

what exactly do you want?

obtuse gale
#

as I'm using kotlin/intellij and it seems like they're pushing to not using get and (), ex:
file.getParentFile().mkdirs() -> file.parentFile.mkdir()
(Main class extends JavaPlugin) getDataFolder() -> dataFolder

is kotlin's/intellij's meta to use get / () minimally?

#

Guys how would you go about making a model with armorstands?

#

Like posing the armor stand?

steel heart
#

there is websites that can let you do it more easily

obtuse gale
#

No like making models like cars and such with blocks

steel heart
#

that is a hell to do

onyx loom
#

yea getters and setters arent really a thing in kotlin @obtuse gale, i mean they are, but property syntax is preferred

obtuse gale
#

ah

#

It's done with falling blocks on armorstands though right?

#

I believe so, just falling blocks on armorstands with no gravity

#

Okay will try it then

ocean quartz
#

Ugh, why MD why
Could have made the click and hover event implement event or something, not be 2 separate things >.<

prisma wave
#

@obtuse gale functions still exist, mkdirs and things are perfectly fine, but like Kali said it's more idiomatic to just use property access than getters and setters

obtuse gale
#

makes sense

prisma wave
#

yeah they're kinda pointless when you think about it

crimson grotto
#

What version of spigot, paper do you recommend for survival?

distant sun
#

latest

crimson grotto
#

Ok, perfect, thanks

#

i love you

#

ahh Gaby, Paper or spigot?

ocean quartz
#

Always paper

obtuse gale
#

unless you're in 1.8.8

remote goblet
#

if you're in 1.8.8

#

in the nicest way i can put this

#

die

surreal quarry
#

is there a way to change where the index.html will be with dokka?

obtuse gale
#

Guys why does a falling block with no gravity just disappear after a bit?

surreal quarry
#

anyone know what list it is looking for?

#

for a multimodule project

#

dokka 1.4.0-rc

drowsy widget
#

Yo! i wanna make a plugin for a youtube video and have the idea and everything. Can someone DM me about this? Im kinda confused on how i would do it. I do have experience thought

surreal quarry
distant sun
obtuse gale
#

Guys why does a falling block with no gravity just disappear after a bit?
@obtuse gale Anyone knows why?

surreal quarry
ocean quartz
#

That is just poorly trying to copy Kotlin data classes

surreal quarry
#

but what came first

ocean quartz
#

Kotlin lol

surreal quarry
#

lmao

distant sun
#

lomb๐Ÿคขk

keen creek
#

How do I check if a player is in a certain group?
Example, check if the player is in the VIP group

obtuse gale
#

probably the api - unless theres another way to do it with luckperms

meager cairn
#

anyone see the real usage of p.updateInventory?? I'm really curious because 99% when I use it, it doesn't solve my problem ๐Ÿค”

lunar cypress
#

Maybe because it's not a solution to any arbitrary problem

distant condor
#

Jetbrains Good, Everything Else Bad

#

@prisma wave I need you to agree

obtuse gale
#

I agree

prisma wave
#

I agree

heady birch
#

*** N E T B E A N S ***

distant condor
#

Execute this heretic

lunar cypress
#

Hello fellow bluej users

heady birch
#

no

#

I have not heard that word for years

prisma wave
#

"everything else" doesn't include clojure ofc

heady birch
#

Or rust

#

Or Vlang

distant condor
#

everything else is bad in comparison

prisma wave
#

It definitely includes rust

#

Rust bad

heady birch
#

Odin

prisma wave
#

Odin bad

quiet depot
#

frigga bad

prisma wave
#

Yes

#

I agree

heady birch
#

Frigg off

quiet depot
#

clojure sucks

heady birch
#

Cornelius 7:11 Thall shall not use the Odin language

prisma wave
#

๐Ÿ˜”

#

Good old Cornelius

#

Spitting fax

heady birch
#

We must document all these quotes

lunar cypress
#

Hickey 4:20 Java Bad

heady birch
#

โ˜น๏ธ

heady birch
#

English

prisma wave
#

Nigel 19:2 - "any man whomst shall say Clojure bad declares that he is too stupid to comprehend thine language"

regal gale
#

๐Ÿ‘€

heady birch
#

D.C. Nigel

quiet depot
#

that's wrong bm

#

you misspelt a word

#

Nigel 19:2 - "any man whomst'd've shall say Clojure bad declares that he is too stupid to comprehend thine language"

heady birch
#

Ofc it was about clojure

distant condor
#

All hail our Jetbrains overlord

#

sacrifice eclipse

hot hull
#

whomst'd've

prisma wave
#

oh yeah sorry my bad

quiet depot
#

must use correct english frosty

hot hull
#

Can you type out the full word of that

prisma wave
#

It doesn't really exist

quiet depot
#

whomst'd've'ly'yaint'nt'ed'ies's'y'es'nt'ed'ies's'y'es'nt't're'ing'able'ric'ive'al'nt'ne'm'll'ble'al

#

is the full word

prisma wave
#

Oh I see what you mean lol

quiet depot
#

we just shorten it for normies

distant condor
#

use IDs for all your words

#

ez

prisma wave
#

#49 #12 #304

heady birch
#

Emojis way easier

#

๐Ÿ™‚ ๐Ÿ‘

distant condor
#

๐Ÿ‘€ ๐Ÿคทโ€โ™‚๏ธ

heady birch
#

๐Ÿ˜ฌ

distant condor
prisma wave
heady birch
#

๐Ÿ˜ณ

prisma wave
#

The only emojis you need

distant condor
#

sad_fingerguns ๐Ÿค reversed_fingerguns

analog crater
distant sun
#

who work for money these days

hot hull
#

ikr, imagine not making a complete core for free

tacit cave
#

hello

#

Just want to ask a simple question

obtuse gale
#

Same

tacit cave
#

What is the syntaxes of On Command ?

#

on Kotlin/Java

obtuse gale
#

I mean do you want kotlin or java?

tacit cave
#

You decide

obtuse gale
#

well when your asking for syntax...

#

also intellij can generate it for you if you implement CommandExecutor

tacit cave
#

onCommand i guess

obtuse gale
#

:what:

#

Just implement the interface hit a few buttons and bam

prisma wave
#

kotlin good

regal gale
#

Java good

old wyvern
#

All languages good

hot hull
#

That is false

#

java bad

#

kotlin good

#

clojure ok

heady birch
#

rust superb

umbral mica
#

but...but java

old wyvern
#

Frosty bad

obtuse gale
#

java bad

old wyvern
#

Aj bad

#

blind

distant condor
#

kotlin good

#

java bad

#

Lmao #738969308746612766 wants to give 2-3 dollars for a big fork
@analog crater wait why is that fork literally removing like 10 features and adding aliases

hot hull
#

Because big brain moves

distant condor
#

What they requested:

Remove entirely.
-Warnings entirely 
-Mentions system entirely.
-Remove Staff tp
-Remove /strip command
-Remove the command /staffplus
-Make plugin named /MrStaff leave author the same but say its forked
-Remove ip being shown in /examine.
-Remove miner gui out of gui and instead make the gui hub straight up open unresolved reports.
-Remove command /eview
-Remove /clear
-Remove /lockdown
#

๐Ÿค”

versed ridge
#

Still takes time

distant condor
#

true

#

I am very confused though

#

why would you request a fork that removes half of the commands or something

hot hull
#

I told you, big brain moves

distant condor
#

you could just like... not give permissions

#

yeah big brain moves

heady birch
#

I will do that for free but it goes at the bottom of my todo list

distant condor
#

my todo list is infinitely long

heady birch
#

CircularQueue

prisma wave
#

"clojure ok"

#

I'll take that

distant condor
#

@prisma wave why are you not kotlin mitten

prisma wave
#

Because clojure is objectively superior

#

๐Ÿ™‚

distant condor
#

have you betrayed our Jetbrains overlords

quiet depot
#

well

#

on a scale of eh to meh, clojure is bleh

distant condor
#

how could bm do this

#

๐Ÿ˜ฆ

prisma wave
#

cm*

#

Because I have seen clojure

#

It is superior in every way

#

Functional programming is the future

quiet depot
#

doubt

distant condor
#

clojure ... overseen by Rich Hickey as its benevolent dictator for life.

prisma wave
#

yes

#

All hail Rich

distant condor
#

hmmmph

quiet depot
#

all good software has a dictator

#

linux

prisma wave
#

He would definitely beat Andrey and James in a fight

distant condor
#

yeah

#

wait

#

does kotlin have a BDFL?

quiet depot
#

andrey

distant condor
#

ah

quiet depot
#

bdfl?

umbral mica
#

benevolant dictator for live I think

#

*life

prisma wave
#

Andrey is nothing compared to Rich

#

Imagine removing Tuples from kotlin

#

Lol

distant condor
#

sudden wall of text

tacit cave
#

wrong chat lmao

prisma wave
#

That was rude

#

Lol

distant condor
#

please use pastebin or whatever barry's one is called

#

lol

hot hull
#

=paste

compact perchBOT
#
HelpChat Paste

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

tacit cave
#

=google

hot hull
#

Never tell someone to use pastebin, ktnx

tacit cave
#

=howto

quiet depot
#

wut r u trying to do epic

distant condor
#

Never tell someone to use pastebin, ktnx
@hot hull I said "or whatever barry's one is called"

#

is it just called HC paste

#

lol

hot hull
#

I know but still, pastebin shouldn't have even come to your mind :((

prisma wave
#

Can we go back to circlejerking

quiet depot
#

you shouldnโ€™t have included pastebin

prisma wave
distant condor
#

you shouldnโ€™t have included pastebin
@quiet depot i'm sorry almighty piggy

#

I shall repent

#

All hail HC Paste

prisma wave
#

All hail Clojure*

#

Wait

#

HC = Hail Clojure ???2?1?

distant condor
#

MuRdEr ThIs HErEtiC

#

Execute him

#

burn him

#

destroy all his assets

prisma wave
#

I would like to see you try

#

Better make an AbstractExecutionerProvider

#

OOP weaklings

distant condor
#

:(

#

My javascript weak typing and horrible code without any real standard will mess your life up so much you'll wish you never mentioned clojure

prisma wave
#

I see your JavaScript and raise you ClojureScript

distant condor
#

uh oh

#

oh no

#

you can defend against horrible javascript code

#

I thought only kotlin and typescript could do that

#

damn it

#

I use python

hot hull
#

And I oop

distant condor
#

and uses a mix of indentation and 4 spaces

#

recover from THAT

prisma wave
#

python bad

#

Uh

#

Clojure doesn't have indentation

#

Well it does

#

But not like other languages

distant condor
#

uh what

#

Well yes but no

#

sad_fingerguns I have been defeated

#

I surrender

prisma wave
#

ez

#

Clojure wins yet again

distant condor
#

we need to work together to enlighten this heretic

#

okay can we go back to circlejerking about kotlin

#

kotlin good java bad

obtuse gale
#

true statement

prisma wave
#

Yuck

#

Static typing

distant condor
#

kotlin good clojure okay java bad

#

remain this way please

prisma wave
#

"okay"

#

Hmmm

distant condor
#

is okay okay

prisma wave
#

it'll do

#

For now...

distant condor
#

I feel scared

#

uh oh

old wyvern
#

Circlejerk bad

prisma wave
#

no

#

not

old wyvern
#

no bad

#

not bad

#

everything bad

obtuse gale
#

Petition for ?java-bad and ?kotlin-good ( Can both redirect to same FAQ)

#

3 4 people here have sinned

quiet depot
#

I execute my veto power to declare the result of any petition relating to such, as invalid.

obtuse gale
#

ah, your gonna add one anyway :))

quiet depot
#

no nothing will happen

prisma wave
#

๐Ÿ˜ฆ

#

this is very un-democratic

quiet depot
#

I can see such faqs being abused in a support context, which I am not a fan of

#

idc about your circle jerking

prisma wave
#

touche

quiet depot
#

but I hate it when it comes into a support convo

prisma wave
#

nah yeah jokes aside it's a bad idea

obtuse gale
#

^

heady birch
#

you are circle jerk

prisma wave
#

silence rust user

heady birch
#

wtf bro

prisma wave
#

human rights don't apply to rust users

heady birch
#

i was asking for support with minecraft and you hit me with that

#

reported!

#

my dad owns discord btw

prisma wave
#

๐Ÿ˜ฐ

#

sorry bro

#

i was just kidding!

heady birch
#

he is banning you know

prisma wave
#

oh no

heady birch
#

oh no our internet has gone

#

sorry

#

he cant any more

prisma wave
#

hello sorry my brother was on my account

heady birch
#

im---breaking up -- ..

static zealot
#

its nice to have a dad that owns discord. You can send messages without having access to internet xD

prisma wave
#

can you unban me pls it was my brother and my dad has sent him into the basement as punishment

#

i would never say something like that

heady birch
#

yes

#

but he sais dont let it happen again

#

else he takes away your Nitros

prisma wave
#

thank you !!

#

i will never let my brother on pc again

#

i dont even know what rust is !!!

#

haha

heady birch
#

eliminate your brother

prisma wave
#

we will

obtuse gale
heady birch
#

this incident will not occur again

prisma wave
#

we will leave him locked in the basement for 3 days

#

that will teach him

obtuse gale
#

no food or drink

#

My dad actually owns internet so if your brother gets food i will make him ban

prisma wave
#

ok don't worry!

heady birch
#

ask your dad to ban pro-java propoganda

prisma wave
#

yes !

heady birch
#

Lol

#

in places like china they can probably just say "you are not going to use java anymore"

#

and they literally cant

quiet depot
#

excuse me my dad owns china

heady birch
#

sorry !

#

thats the country "Java" ๐Ÿ˜ 

#

town/city or whatever

prisma wave
#

dead country

#

island i think?

quiet depot
#

@prisma wave isn't java the main indonesian island?

#

doubt it's dead

prisma wave
#

yeah i think so

#

it's named after a dead language tho

#

sooo

heady birch
#

๐Ÿ˜ณ

onyx loom
#

๐ŸŒš

quiet depot
#

smh

tacit cave
dusky drum
#

no

tacit cave
dusky drum
#

no

tacit cave
dusky drum
#

๐Ÿ˜‰

tacit cave
dusky drum
#

yes

tacit cave
prisma wave
#

kotlin

tacit cave
#

give me emoji of kotlin please

prisma wave
#

Kotlin

#

emoji

#

Lol

pastel imp
#

sooo to use ViaVersion etc etc... do I need to put the plugin in each server or can I just put it in Velocity plugins folder?

#

oof

tacit cave
#

sooo to use ViaVersion etc etc... do I need to put the plugin in each server or can I just put it in Velocity plugins folder?
@pastel imp just use version connector on velocity

pastel imp
#

wait what?

tacit cave
#

and put viaversion on all spigot server

pastel imp
#

version connector?

tacit cave
#

eh nvm

#

that's for bungee

#

๐Ÿ˜‚

pastel imp
#

ooof

#

welp

#

ye

surreal quarry
#

basicsmenu

pastel imp
#

it's basicsmenu

#

ye

#

saw that now

#

but advancedmeny

#

didn't work too

#

lol

surreal quarry
#

advancedmenu

pastel imp
surreal quarry
#

that does look like a bug lol

pastel imp
#

@chilly jungle bug for u

#

using latest version.. paper-1618 (1.12.2)

empty flint
#

I just realized I have no idea how BungeeCord works. Do you have to install plugins on each server on your Bungee network for it to work? Or can you just install it once and all the servers run it?

#

How do you guys work with bungee plugins?

heady birch
#

It depends on the plugin

#

Most plugins you keep on each individual server

#

Some can run on bungee as well, some can only run on bungee

hot hull
#

As Niall said, depends on what the plugin does

ocean quartz
empty flint
#

Is there a type of HashMap that takes multiple keys as input?

ocean quartz
#

MultiMap

empty flint
#

I would like to avoid doing HashMap<Key1, HashMap<Key2, Value>>

#

MultiMap
@ocean quartz Hm no that's something different though

#

MultiMap has multiple values for each key. I want a sort of n-dimensional Key/Value map.

#

Something like Map<Dimension, Key, Value>

hot hull
#

Use an object

#

Cleaner fingerguns

empty flint
#

Can you elaborate?

ocean quartz
#

Oh yeah you're right mb xD

hot hull
#

Damn Matt, that's sweet

#

But how about command aliases fingerguns

empty flint
#

Noice
@ocean quartz Can you make that into a library? I would love to steal that piece of code.

hot hull
#

That is a lib :p

empty flint
#

Use an object
@hot hull Can you elaborate?

#

That is a lib :p
@hot hull Is it public?

hot hull
#

Just make your own object, which stores let's say two strings, which are key and value and then just use Map<Dimension, Object(this being your object)>

ocean quartz
hot hull
#

kk

ocean quartz
#

And it'll be a public lib yeah

hot hull
#

[16:15:14 WARN]: [SpawnerMechanics] Could not save types.json to plugins/SpawnerMechanics/types.json because types.json already exists.
[16:15:14 WARN]: [SpawnerMechanics] Could not save blaze.json to plugins/SpawnerMechanics/attributes/blaze.json because blaze.json already exists.
[16:15:14 WARN]: [SpawnerMechanics] Could not save iron_golem.json to plugins/SpawnerMechanics/attributes/iron_golem.json because iron_golem.json already exists.
[16:15:14 WARN]: [SpawnerMechanics] Could not save pig.json to plugins/SpawnerMechanics/drops/pig.json because pig.json already exists.
[16:15:14 WARN]: [SpawnerMechanics] Could not save skeleton.json to plugins/SpawnerMechanics/drops/skeleton.json because skeleton.json already exists.
[16:15:14 WARN]: [SpawnerMechanics] Could not save zombie.json to plugins/SpawnerMechanics/drops/zombie.json because zombie.json already exists.
Any way of suppressing these?

empty flint
#

Just make your own object, which stores let's say two strings, which are key and value and then just use Map<Dimension, Object(this being your object)>
@hot hull That's just using Map<Dimension, Map<Key, Value>> with the latter being my object. Don't like that particular approach very much.
I will probably end up doing it this way but I really don't like it...

hot hull
#

:what:

heady birch
#

Settings per world? e.g

#

Id just wrap the map in its own object

Map<Key, MyObject>

class MyObject {
stuff = Map<Key, Value>
}

empty flint
#

Yeah basically. But with the crux that one Dimension has higher priority over the other

#

So say if you have settings in the Overworld, those are valid everywhere. But if you override those settings in the Nether, those take presedence in the Nether

distant sun
#

@hot hull check if the file exist?

empty flint
#

But the Overworld settings still hold true in the Overworld

hot hull
#

But that's ew Gaby, more lines :p

distant sun
#

bruh

hot hull
#

Come on, look how clean this is :((

    private void saveResources(final String... resources) {
        Arrays.stream(resources).forEach(resource -> saveResource(resource, false));
    }

now you want me to add in more lines

ocean quartz
#

Wow Frosty not using allman

prisma wave
#

@empty flint Table

hot hull
#

I'm sorry, but it's a commission :((

prisma wave
#

Why does that matter

heady birch
#

.forEach is stupid

#

You literally have for () {}

hot hull
#

The fuck is that

prisma wave
#

imperative code good, declarative code bad

hot hull
#

KM, I've made all of them in k&r so far, would be kek if I switched it now :p

heady birch
#

cant borrow variable, value already moved ๐Ÿ˜ฆ

prisma wave
#

Silence

#

@hot hull why use K&R in the first place

#

Bad

heady birch
#
error[E0507]: cannot move out of `track.emergency_status` which is behind a mutable reference
  --> src/network.rs:54:36
   |
54 |                     println!("{}", track.emergency_status.unwrap().get_name());
   |                                    ^^^^^^^^^^^^^^^^^^^^^^
   |                                    |
   |                                    move occurs because `track.emergency_status` has type `std::option::Option<mode_s::EmergencyStatus>`, which does not implement the `Copy` trait
   |                                    help: consider borrowing the `Option`'s content: `track.emergency_status.as_ref()`

onyx loom
#

k&r good ๐Ÿ˜ฆ

hot hull
heady birch
#

Lol

hot hull
#

Couldn't think of a better name for em

lunar cypress
#

@heady birch did you send that error randomly or

heady birch
#

yes

#

@lunar cypress Actually if you fancy helping me on something

#
ExtendedSquitter::AircraftStatus { emergency_status, squawk } => {
    track.emergency_status = emergency_status;
    track.squawk = squawk;

    println!("{}", track.emergency_status.unwrap().get_name());
}
#

Cant borrow last line track.emergency_status

#

What can I actually do to solve this

#

Oh

#

.as_ref()

lunar cypress
#

Yeah

#

The suggested fix often works

#

Although it often causes additional issues

heady birch
#

I would like to try and learn the proper way of doing that

#

I try unwrapping it earlier but no difference

#

Would copying be the preferred way?

lunar cypress
#

Problem is that track.emergency_status owns its content

heady birch
#

Ok

lunar cypress
#

And you can't just take it from it

heady birch
#

But i can take a reference from it

lunar cypress
#

Yes

#

That way track still owns it

#

Copying is rarely what you want to do

#

Or rather cloning

#

Because Copy means it's copied on assignment (the number types fall into that category for example), cloning is an extra function

ocean quartz
steel heart
#

Epic

hot hull
#

Not epic

#

Still that litle stripe

steel heart
#

Frosty then you can fix that thing right?

ocean quartz
#

Which stripe?

prisma wave
#

The tab completion thingy

hot hull
#

Conclure, huh?

ocean quartz
heady birch
#

html

prisma wave
#

XML

#

Or JSON

#

That would be good

hot hull
#

Perfect Matt fingerguns

prisma wave
#

Being able to send messages via JSON

hot hull
#

Couldn't you just send a chat component from the input

#

and that's that kek

obtuse gale
#

is Char = String + Int (I forgot ๐Ÿ˜… )

errant geyser
#

Char is a character

#

'a' or 'c'

heady birch
#

@lunar cypress My second question is use of Option/Result (im using it quite alot, for most of my function return types and structs), is it going to effect performance much?

obtuse gale
#

ok thx

lunar cypress
#

I can't speak much about performance, but using those types is very idiomatic @heady birch

#

So don't worry about it

#

They're the standard way of expressing optionality and errors

heady birch
#

๐Ÿ‘

hot hull
prisma wave
#

they just get better and better

obtuse gale
quiet sierra
#

I can't figure if that's a legit request or not

#

You could have asked for a custom game

prisma wave
#

@obtuse gale i will do it in clojure

heady birch
#

Lol

obtuse gale
#

People want everything for free nowadays

#

Like bruh

quiet sierra
#

Spigot-API is getting so boring that I'm creating my own server without it

prisma wave
#
(defn onEnable []
  (forEach (Bukkit/getOnlinePlayers) #(kill %)))
#

cute

onyx loom
#

EWWWW

prisma wave
#

silence

hot hull
#

@obtuse gale Can ya yeet your joke request fingerguns

obtuse gale
#

Yup

hot hull
#

Or ya know, bump the budget to like 500 so people see you mean bussiness fingerguns

obtuse gale
#

I mean I would never pay that kind of money for a plugin if I can make it myself but I will consider ๐Ÿ˜„

#

Will definitely keep you updated on this

hot hull
#

@heady birch Can you not smh

quiet sierra
#

I still can't figure out if that's a legit request or not

hot hull
#

the 2-3$ one?

quiet sierra
#

The custom bungee

prisma wave
#

@heady birch i'll do it

#

but it won't be compatible with any version newer than 1.1

obtuse gale
#

Btw so all the ones that don't have Taken are available?

quiet sierra
#

Some are still taken

#

the publisher just didn't remove it

hot hull
#

The gist is to not edit and say taken, and just remove it

#

If they don't complete it, you can just repost it anyways

obtuse gale
#

A bit of a mess

prisma wave
#

kotlin fixes mess

heady birch
#

@lunar cypress When I spawn a thread (with loop) in, my application just closes. Would you know why that is or?

#

Outside the thread its fine

lunar cypress
#

wdym outside the thread

obtuse gale
#

I mean assembly fixes mess ๐Ÿ˜„

prisma wave
#

no it doesn't

heady birch
#

I mean

#
thread::spawn(move|| {
        network::connect(&mut track_list);
});
#

Application closes straight away with this ^^

#
network::connect(&mut track_list);
#

Works like this

#

Interesting

#

It can outlive the parent

#
let mut track_list = track::new_track_list();
let net = thread::spawn(move|| {
    network::connect(&mut track_list);
});

loop {
    for (address, track) in track_list {
        println!("{:x} {:04x}", track.address, track.squawk.unwrap());
    }
    sleep(Duration::from_secs(1));
}
#

I cant borrow track_list in the for loop

#

@lunar cypress How would I go about approaching that

prisma wave
#

you really think that rust is more readable than clojure

surreal quarry
#

they both look atrocious ๐Ÿ™‚

prisma wave
#

excuse me

#

no

#

clojure good

surreal quarry
#

lmao

prisma wave
#

end of story

distant sun
#

Do you read clojure from center to sides?

prisma wave
#

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

#

idk

#

but no i don't think so

distant sun
#

because reading it from left to right makes even less sense

errant geyser
#

let mut oh god BM we have integrated this far-rust propaganda into Elara

#

๐Ÿคข

prisma wave
#

:)

heady birch
#

johhny

#

who owns elara?

errant geyser
#

we all do

prisma wave
#

me yugi and katsu

#

you wouldn't read println(multiplier.apply(adder.take(3)))) from center to right

errant geyser
#

^ that

prisma wave
#

the same goes for clojure

dusky drum
#

talking about programing switch to old style akari pcs

hot hull
dusky drum
#

howl frik

heady birch
#

Yeah lmao that theme

dusky drum
#

who da fak doesnt use folders

prisma wave
#

๐Ÿ™‚

dusky drum
#

where are the folders?

hot hull
#

Niall, you don't get an opinion lmao

#

You use white theme, shut up

heady birch
#

yeah when its bright

dusky drum
#

white?

heady birch
#

johnny

#

j

errant geyser
#

Atom One Dark in high contrast is wayyy better than whatever that is Frosty I gotta say

heady birch
#

Darcula is fine

dusky drum
#

i have better theme

hot hull
#

I use Material Oceanic

dusky drum
#

i use material something

heady birch
#

Material is trash

prisma wave
#

gross

dusky drum
#

idk the name

heady birch
#

No wonder your IDE crashes every 5 min frosty

dusky drum
#

Material is good

heady birch
#

No

dusky drum
#

thats his pc being bad

heady birch
#

No, no, no, no, no, no, no, no, no, no, no, no, no

dusky drum
#

my iDE never crashed

#

and i use material

#

so stf

heady birch
#

No

#

Thats different

prisma wave
#

silence rust user

#

no opinions for you

hot hull
#

@errant geyser The actual code screen is more contrast, I just like this cause it doesn't pop out so much when actually focusing on code

prisma wave
#

ew

hot hull
#

No finals

heady birch
#

cropStorage

hot hull
#

What is this bullshit

dusky drum
#

thats good

prisma wave
#

theme is gross

#

kotlin is good

dusky drum
#

theme is friking good

hot hull
#

oh it's kotlin

#

smh

onyx loom
#

@prisma wave that is so kind of u to take up on nialls request

errant geyser
#

ur theme bad

heady birch
#

group by feature

errant geyser
#

Also packages should be lowercase not cropStorage

dusky drum
#

i group like i want.

errant geyser
#

Can we talk about that for a sec

hot hull
#

It should be lowercase

dusky drum
#

stfu

hot hull
#

But wait

errant geyser
hot hull
#

And it should be a single word

heady birch
#

i name my interfaces how I want

surreal quarry
#

lowercase good

prisma wave
#

@onyx loom thank you, i always try to help people who are dumb rust users :)

heady birch
#

Ecloud rebuild in Rocket + rust

dusky drum
#

lovercaseiswierdtoreadgoahheadreadthisshit.

prisma wave
#

let's not

heady birch
#

Lemmo is making it in vue ๐Ÿคข

prisma wave
#

a rewrite in clojure however

surreal quarry
#

do you name your packages like that'

prisma wave
#

now that would be nice

heady birch
#

yeah but not vue

prisma wave
#

true

heady birch
#

But that is just my 'vue' on the situation

prisma wave
#

anyone who uses camelcase for package names should be shot just like the rust users

dusky drum
#

now cry

prisma wave
#

that's better

#

although

heady birch
#

Plural package names

prisma wave
#

^

hot hull
#

Is it just me, or is this not a word?

Accrue
context: AccrueClaimBlocksEvent

surreal quarry
#

cropDrops

prisma wave
#

wait

dusky drum
#

im outta here

prisma wave
#

@hot hull it's a word, just a very obscure one

heady birch
#

Dont think so

#

Oh nice

#

What does it mean

dusky drum
#

kotlin doesnt say im not allowed to use uppercase it just says its not recommended

#

so go away

hot hull
#

I'm assuming it's similar to acquire (if I spelt that right)

prisma wave
#

similar

#

accumulate or receive (payments or benefits) over time.
"they accrue entitlements to holiday pay"

heady birch
#

Gasper do not contest the laws of HelpChat. Good laws they are, some of the best in american history. The HelpChat community are true heroes.

dusky drum
#

dont ever mention america to me

heady birch
#

Why not

#

World superpower they are

dusky drum
#

not realy

heady birch
#

Yes

prisma wave
#

america invented rust

dusky drum
#

they're trying to isloate themselfs from world

#

so basicly

#

they're bad

heady birch
#

World superpower

dusky drum
#

specialy trump

hot hull
#

bruh how the fuck does this person even manage to find anything in this plugin...

dusky drum
#

most pepl that have iq in amerca are from EU

hot hull
#

Like damn

heady birch
#

They got a few issues but

#

No america no europe

hot hull
#

Atleast it's allman fingerguns

heady birch
#

Probably no australia

prisma wave
#

yay

heady birch
#

Australia would be long gone without america

dusky drum
#

bruh how the fuck does this person even manage to find anything in this plugin...
do you mean m,e?

hot hull
#

This user uses eclipse

dusky drum
#

ow

#

who

#

?

hot hull
dusky drum
#

XD

prisma wave
#

WHAT

#

WHAta

#

othqurhqf

#

that is disgusting

hot hull
#

Look at Scholtes' code, he still uses
Map<String, String> map = new HashMap<String, String>();

#

cause eclipse doesn't tell him the second param declaration or whatever tf it's called is unnecesarry

prisma wave
#

that's just sad

#

poor guys

hot hull
#

ikr

heady birch
#

Johnny

#

@lunar cypress Hello

#

Would you be able to take a look at my question when you are back on-line

hot hull
#

bruh I can't even move these classes into a package

surreal quarry
#

hashMapOf() fingerguns

dusky drum
#

what even is that plugin?

hot hull
#

GriefPrevention

prisma wave
#

hashMapOf() fingerguns
mutableMapOf()*

hot hull
#

Trynna fix some jank

surreal quarry
#

well yea true

prisma wave
#

what a surprise, a popular MC plugin with awful code

#

that's new!

onyx loom
#

whats worldedit/ worldguard code like

dusky drum
#

howly bad

#

good luck

obtuse gale
#

can someone help me ?

quiet sierra
#

Don't ask to ask, just ask

hot hull
obtuse gale
#

hm well idk if this is the right channel

prisma wave
#

this isn't a support channel at all

#

lol

obtuse gale
#

aight

surreal quarry
prisma wave
#

@hot hull i hate that

#

so much

obtuse gale
#

i asked in gen already ]

#

ok

prisma wave
#

HAIFUHQDUhqd

#

public ArrayList<World> config_siege_enabledWorlds;

#

WHYYyy

quiet sierra
#

3807 lines huh

hot hull
#

I need bleach after this fingerguns

quiet sierra
#

this guy never heard of avoiding nesting

prisma wave
#

this guy never heard of anything

surreal quarry
#

this looks like great code to me

quiet sierra
#

And also the inconsistency

dusky drum
#

thats why you encrypt plugin so pepl cant read you ugly code hehehhe

surreal quarry
#

no i like getting bullied for my code

hot hull
#

It's annoying cause if I change 1 list to abide by liskov, I'm gonna have to change all of them..

dusky drum
#

ha

hot hull
#

Gasper, if you obfus your code, you're never gonna improve

quiet sierra
#
if (claim.siegeData != null)
    return false;
if (player.isOnline())
{
    player.kickPlayer(reason);
}
hot hull
#

That's why I keep all my shit OS, so people can judge, and so that I can approve

dusky drum
#

approve?

hot hull
#

improve

dusky drum
#

okay

hot hull
#

soz can't type today

dusky drum
#

XD

#

nub

quiet sierra
#

Y'all ever noticed how messy mc protocol is

dusky drum
#

dont

#

mention

#

it

quiet sierra
#

There are like 7 steps for handshake

dusky drum
#

its bad

heady birch
#

Yeah

prisma wave
#

tell me about it

dusky drum
#

make c# version of mc client

#

heheh

#

or rewrite mc into kotlin

heady birch
#

if (packet instanceof ) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {

dusky drum
#

rewrite mc into kotlin

prisma wave
#

or rewrite mc into kotlin
i'm doing that

heady birch
#

bungee visitor pattern ๐Ÿ˜

quiet sierra
#

Took me like 4 hours to write a simple jar that has a colorful MOTD

prisma wave
#

for the server anyway

dusky drum
#

let me know when you finish

#

i mean client

#

not server

prisma wave
#

oh

#

ew

#

no

#

never

#

clients are annoying

dusky drum
#

XDDD

prisma wave
#

servers are fun

dusky drum
#

then make c# version

prisma wave
#

absolutely not

heady birch
#

No

dusky drum
#

then c++

hot hull
#

Imagine if MC wasn't obfus, all the nice shit we could've had

heady birch
#

Yes

dusky drum
#

forge is basicly opensource mc isnt it?

prisma wave
#

then c++
that's bedrock

dusky drum
#

ye

hot hull
#

bedrock is doodoo

dusky drum
#

make protocl to be able to connect to java servers

#

i mean it exists buts bad

quiet sierra
#

I'd rather code a mc server from scratch than to recode the mc server

#

Which I'm already doing

prisma wave
#

^

dusky drum
#

eh

#

just make new mc

prisma wave
#

you can't fix the vanilla server

#

it's just too much spaghetti

obtuse gale
#

also sorry ik this is mc question but yall are active, 1.8.8 jar version is 1.8.9 basically correct?

onyx loom
#

if (packet instanceof ) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
} else if (packet instanceof) {
@heady birch ah yes, brilliant

hot hull
#

Oh yea, Mineplex code got leaked a few days ago

dusky drum
#

1 question what would be better reading from configurationsection (config) every some time or just cache data from config into mutablemap?

hot hull
#

It's a kek

heady birch
#

A

prisma wave
#

1 question what would be better reading from configurationsection (config) every some time or just cache data from config into mutablemap?
personal preference, using a map gives type safety but no real performance gain

dusky drum
#

okay

#

eh i've already changed it into hashmap

#

watever.

#

mutablemap*

#

i love to get baseblock of multiblock crops

#

its just so fun

#

idk why doesnt mc have that built in

#

no youre gonna go thru blocks to get the source one.

quiet sierra
#

It makes sense for that to exist

#

Probably within NMS

dusky drum
#

fuj nms

#

i dont want to deal with that crap

heady birch
#

Well no choice haha

dusky drum
#

having to deal with version supports

quiet sierra
#

It's what makes spigot fun

hot hull
#

K rece v slo fuj, ker weeb

quiet sierra
#

code your server then

dusky drum
#

solution:

        fun getBaseBlock(block: Block): Block{
            var bdata = block
            while(bdata.getRelative(BlockFace.DOWN).type == block.type){
                bdata = bdata.getRelative(BlockFace.DOWN)
            }
            return bdata
        }
quiet sierra
#

I don't speak ancient runes

dusky drum
#

its not runes

lunar cypress
#

I cant borrow track_list in the for loop
@heady birch you can't?

quiet sierra
#

slovenia

dusky drum
#

yes

lunar cypress
#

you should be able to

dusky drum
#

i love how google doesnt have voice for our language

heady birch
#

My bad wrong

#

borrow of moved value

#

because I give that variable to the thread

#

move || {

}

distant sun
#

what's that

heady birch
#

Rust

dusky drum
#

use something else

heady birch
#

No

lunar cypress
#

well have you tried borrowing?

heady birch
#

I am arnt I

ocean quartz
#

Niall join the dark side ๐Ÿ˜ข

lunar cypress
#

seems like you're confusing borrowing and moving

heady birch
#

I sent the wrong one

lunar cypress
#

well once you've moved the value to the thread that's that

#

can't use it outside anymore

#

what are you trying to do anyway

heady birch
#

net handler populates the track_list

lunar cypress
#

what's the purpose of the loop

heady birch
#

and I want to print out everything in the track_list every 1 s

lunar cypress
#

well that is not at all thread safe

heady birch
#

Eh true

#

I didnt think about that at all

lunar cypress
#

that wouldn't even work in java

heady birch
#

it does

#

I just use a concurrent hash map

lunar cypress
#

yeah... but that is an extra step

heady birch
#

so

#

how in the rust ways

lunar cypress
#

first of all, what does new_track_list() even return

heady birch
#

pub fn new_track_list() -> HashMap<i32, Track> {
return HashMap::new();
}

#

One could say its unneccesary

#

i guess the rust way would be quite different

lunar cypress
#

yeah

#

you can use hash map

#

but you need some extra reference types

#

Arc<RwLock<HashMap<i32, Track>>> try this

heady birch
#

in the future

#

i will also be sending the contents of that map to alot of other connections

lunar cypress
#

should be covered by this

#

the Arc allows for shared access and the RwLock allows for n readers / 1 writer afaik

heady birch
#

Okay

surreal quarry
#

when is github gonna release a dark mode lol

heady birch
#

Because I wouldn't really want the rest of stuff getting held up

#

the writer will be writing constantly in short bursts

lunar cypress
#

should be fine

#

if you want to mutate Tracks across threads you may need some additional measures

heady birch
#

ok I will give it a try

#

thanks for the help ๐ŸŒ

prisma wave
#

๐ŸŒ ๐ŸŒš

#

stupid moons

#

i want to kick them

heady birch
#

piss off

#

I was trying to see how long I could go before someone noticed I was using ๐ŸŒ instead of ๐Ÿ™‚

#

Lol

#

Looks like a sick emoji

prisma wave
#

no it doesn't

#

i hate it

heady birch
#

๐ŸŒ

#

Your opinion

prisma wave
#

my fact*

#

stupid full moon with face

#

i hate it so much

hot hull
prisma wave
#

is it though

hot hull
#

Well it's better then what it used to look like lol

#

You can't deny that

dusky drum
#

just recode it

hot hull
#

ain't nobody got time for that

dusky drum
#

XD

lethal creek
#

anyone know how to remove the last element of a vector java without vectorname.remove(vector_length);

lunar cypress
#

Why are you using vector

lethal creek
#

its not for a plugin

#

im solving a programming problem

lunar cypress
#

not my question

lethal creek
#

um right

lunar cypress
#

or are you talking about something other than java.util.Vector

lethal creek
#

the data structure vector

lunar cypress
#

because if so you do need to clarify

lethal creek
#

yes

#

can i paste the problem here/

#

solved

ocean quartz
hot hull
#

Bad, where's that sexy completion

ocean quartz
#

No

#

Gotta fix a few issues now, apparently 2 actions with no normal text in between breaks it xD
Also suggest and command are not compatible, I'm assuming only one click event is allowed

#

Also what syntax should I use for Obfuscated text?

#

Currently:

    • bold/italic
      __ - underline
      ~~ - strikethrough
      - action
hot hull
#

/*

ocean quartz
#

Like /*text/*?

hot hull
#

That or go with ฯ€ text ฯ€

#

Or even better โ„ข text โ„ข

ocean quartz
#

Lol

lunar cypress
#

How about ||text||? @ocean quartz

ocean quartz
#

Ooh i like that, thank you!

ocean quartz
#

I think only thing left is just colors