#dev-general

1 messages · Page 289 of 1

hasty needle
#

speaking hypotheticals lol

ocean quartz
#

Using static variables and methods isn't a bad thing

half harness
#

static?

#

i meant static abuse

hasty needle
#

lol

ocean quartz
#

Abusing static is different

half harness
#

not like utils

#

like

#

making every class static

hasty needle
#

@tranquil crane do u know where I could go to see the api for such a thing?

tranquil crane
#

you might have to use a custom entity for that but I'm honestly not sure, you can check the javadoc for a lead, somebody here can probably run the javadoc command for that, idk what the syntax for it is

hasty needle
#

ok, I'll try googling lol

tranquil crane
#

I swear a Lead was an entity but I might be mistaken

hasty needle
#

leash_knot

ocean quartz
#

Idk what lead is but i hate it

hasty needle
#

entity.minecraft.leash_knot

ocean quartz
#

Omg it's been so long and Mojang still hasn't fixed the velocity issue that makes entities instantly die when they touch the ground

hasty needle
#

I have no idea where to go to find this stuff tbh

#

would it be something via spigot or bukkit?

hot hull
#

Can we get 50k+ signatures on a petition saying we want multithreading, do you think they'd be willing to do it then?

ocean quartz
#

Yes

hasty needle
#

lol

tranquil crane
#

They won't do it

hasty needle
#

they're too lazy

tranquil crane
#

Bedrock has far superior performance

hot hull
#

Well yea no shit

tranquil crane
#

In almost every way imaginable

ocean quartz
#

There is a bedrock implementation using Aether Engine which is insane good

hot hull
#

They showcased that yes

#

Would be nice if something like that were implemented for java

prisma wave
#

would be nice to see an MC client in rust

#

that would be good

#

yes

#

i would like that

hot hull
#

@ocean quartz How close is chat to being finished

ocean quartz
#

Hmm not too close, still need to refactor some stuff, do channels, do extensions, and a few other things

hot hull
#

Hmm

forest pecan
#

the next thing closest to custom blocks without texture packs is maps on itemframes

#

and its actually not too bad

#

only thing though is just corners

#

which may look ugly

burnt moth
#

what are advantages/disadvantages of using '§' in codes?

surreal quarry
#

use ChatColor#translateAlternateColorCodes

#

just make a util for it

half harness
#

^

surreal quarry
#

if you use the thing you sent yougotta copy and paste every time

half harness
#

or

surreal quarry
#

and im sure there are legitimate disadvantages too lol

half harness
#

alt + 2 + 1

burnt moth
#

Hmm

burnt moth
forest pecan
#

there is

#

you get a weird A character

#

if you dont do it

#

and hello again

#

from the spigot discord

burnt moth
#

Hey

forest pecan
#

🙂

#

lol

burnt moth
#

§bHello vs ChatColor.AQUA + "Hello"

surreal quarry
#

dont do that either

#

use ChatColor.translateAlternateColorCodes

#

lol

obtuse gale
burnt moth
#

I see

obtuse gale
#

Well they do, on bedrock aPES_LulLaugh

burnt moth
surreal quarry
#

d;spigot ChatColor#translateAlternateColorCodes

ruby craterBOT
#
@NotNull
public static String translateAlternateColorCodes(char altColorChar, @NotNull String textToTranslate)```
Description:

Translates a string using an alternate color code character into a string that uses the internal ChatColor.COLOR_CODE color code character. The alternate color code character will only be replaced if it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r.

Parameters:

textToTranslate - Text containing the alternate color code character.
altColorChar - The alternate color code character to replace. Ex: &

Returns:

Text containing the ChatColor.COLOR_CODE color code character.

forest pecan
#

json color chat

#

😮

surreal quarry
#

then you can use like &3Text

burnt moth
#

I know

obtuse gale
#

If you use § directly you may get some weird ass encoding issues depending on a few factors

burnt moth
#

you mean, if a player sends something, to allow him to do '&cHello'

half harness
#

format("&cstring")

burnt moth
#

So...

surreal quarry
#

just make a string util for it, then wherever you need chat color use that util

surreal quarry
#
public class StringUtil {
    public static String colorize(String message) {
        return ChatColor.translateAlternateColorCodes('&', message)
    }
}``` or something
forest pecan
#

whats up bois

#

§§§§§§§§§§§§§§§§§§§§§§§§§§§§§

burnt moth
#

lol

surreal quarry
#

then just StringUtil.colorize("blah")

forest pecan
#

hey

#

dont bully me

burnt moth
forest pecan
obtuse gale
#

? What do you want then?

burnt moth
#

or

surreal quarry
#

do you know java

forest pecan
#

pass in your string with & symbols and colors

#

and it will do so

burnt moth
surreal quarry
#

because its very easy to understand if you know any java

forest pecan
burnt moth
forest pecan
#

Yeah

burnt moth
#

s.colorize();

forest pecan
#

then pass the string

#

into your method

surreal quarry
#

StringUtil.colorize(s)

#

but yes

forest pecan
#

no no you dont do it on the string

burnt moth
#

Oops yea

half harness
#

||?learn-java||

forest pecan
#

i personally use chatcolor cause im a chad

burnt moth
half harness
#

do ?learn-java

#

😉

forest pecan
#

cap?

half harness
burnt moth
#

?learn-java

compact perchBOT
#
FAQ Answer:

Start with this -
https://docs.oracle.com/javase/tutorial/java/concepts/index.html
Breeze through this skipping stuff that doesn't seem relevant like bitwise operators-
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html
and then hit this
https://docs.oracle.com/javase/tutorial/java/javaOO/index.html

They're the first three from this larger thing - https://docs.oracle.com/javase/tutorial/java/index.html
Which you should definitely go through overall. But those three should be enough for slightly better understanding of wtf is happening here without feeling like a huge time sink
That one is a small part of this larger site - https://docs.oracle.com/javase/tutorial/index.html
wherein "Essential Java Classes" and "Collections" also have good useful stuff

If you want some online courses as well you should look at Coursera. They allow you to take courses for free. You won't get a certificate for them but at least you'll learn something. Some of the best courses for starter can be found here: https://www.coursera.org/specializations/java-programming

burnt moth
#

yes ok

half harness
#

lol

#

xD

burnt moth
#

?help

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

Source

half harness
#

welp

burnt moth
#

wow what a great command list lol

half harness
#

=help

compact perchBOT
#
Help Menu:

Various Commands for Barry.

󠀠󠀠󠀠=Help General

• General Bot/Guild Commands

=Help Misc

• Miscellaneous Commands

=Help Level

• XP and Level Commands

=Reaction Help

• ChatReaction Help

half harness
#

#bot-commands

obtuse gale
#

#bot-commands

half harness
#

lol

burnt moth
#

damn

surreal quarry
#

? is for faq = is for commands

burnt moth
#

if we were in a mobile game ad, my iq would drop

#

xD

prisma wave
#

lmao

burnt moth
half harness
#

.

burnt moth
#

lol were just looking around

half harness
#

translating color codes is just 1 line of code

surreal quarry
#

wtf

half harness
#

whats in the tutorial

burnt moth
#

but this

surreal quarry
#

that is so outdated lmao

#

that might be the worst way to colorize a string

half harness
#

🤣

obtuse gale
#

God fuck no

#

Don't do that

burnt moth
#

I don't care of his first code lol

surreal quarry
#

i sent you a method

#

to use

burnt moth
#

I know I KNOW lol

obtuse gale
#

Jesus fucking Christ my eyes hurt now

burnt moth
#

I'm not a random dude

#

well I mean

forest pecan
#

Author's response:
"The ting though is that for me, when I code custom abilities or items, the owner usually wants color codes that are not found within ChatColor. Also, using translateAlernateColorCodes means that when you send a player a message or whatever, you have to put that in for every message. Using this method, all you have to do is (colorize("string"))."
kekw

burnt moth
#

random stupid dude (||me|| but also ||!me||)

half harness
#

Isn't easier using ChatColor.translateAlternateColorCodes('&', STRING)?

  • confused person

The ting though is that for me, when I code custom abilities or items, the owner usually wants color codes that are not found within ChatColor. Also, using translateAlernateColorCodes means that when you send a player a message or whatever, you have to put that in for every message. Using this method, all you have to do is (colorize("string")).

  • author
forest pecan
#

omega kek

obtuse gale
#

the owner usually wants color codes that are not found within ChatColor.
WHAT AHAHAHAH

#

WHAT

onyx loom
#

what the fuck

burnt moth
#
public static String translateAlternateColorCodes(char altColorChar, @NotNull String textToTranslate) {
        Validate.notNull(textToTranslate, "Cannot translate null text");
        char[] b = textToTranslate.toCharArray();

        for(int i = 0; i < b.length - 1; ++i) {
            if (b[i] == altColorChar && "0123456789AaBbCcDdEeFfKkLlMmNnOoRrXx".indexOf(b[i + 1]) > -1) {
                b[i] = 167;
                b[i + 1] = Character.toLowerCase(b[i + 1]);
            }
        }

        return new String(b);
    }
#

I'll use this code each time

half harness
#

?

burnt moth
#

instead of the method

half harness
#

ok

#

im assuming u copied/pasted that from chatcolor#translatealternativecolorcodes

half harness
#

Curious though; what colors are you using if Bukkit doesn't support them? Bukkit supports all vanilla client chat colors.

I'm going to point out all of the "mistakes" that the code has; it's merely my point of view, so do not take it as an insult.

  1. str +=str2 is horribly inefficient. Every time you run that statement, internelly, Java creates a new StringBuilder/Buffer and runs append("str2"). I suggest switching to a StringBuilder (StringBuffer if you're threading).

  2. Why are you even going through all the characters if String already has a built-in replace()? It would be hypocritical to say this (since I do this sometimes without knowing it), but don't re-invent the wheel.

  3. By using String.replace or your method, it automatically assumes that all characters are chat color characters.

  • person
#

I like that idea as it is efficient, I might change the way in the thread, but still personally, I think that this way is a lot easier.

  • author
forest pecan
#

lol

burnt moth
#

Hmm

surreal quarry
#

lmao

burnt moth
#

WhAtAgreatRenAme

surreal quarry
#

that guy is horribly confused

#

about everything

forest pecan
#

my name is perfection

burnt moth
#

you're wrong lol

burnt moth
#

I understand now

half harness
#

Oh my god. Just use this.

public static String colorize(String message){
  return ChatColor.translateAlternateColorCodes('&', message);
}
```You are basically making life harder by using your method. It is not simpler.
  • person
burnt moth
#

I KNOW

#

I was just joking

forest pecan
#

hes not referring to u

#

lol

#

he was just saying i think

#

xD

half harness
#

not joking

burnt moth
#

you're mean

#

:(((

half harness
burnt moth
#

I know, I know

String s = (colorize("&bAqua&r&aButGreen&r&cText"));

half harness
#

why

surreal quarry
#

wtf

half harness
#

do you have another ()

surreal quarry
#

why reset every time

#

extra parens

#

??

burnt moth
#

ok I'm confused then

#

goodbye

half harness
#

leaves server

burnt moth
#

Actually, I was imagining this

#

but

#

I kinda like here

#

stays here just to copy the discord

#

anyway

#

nevermind

half harness
#
if (copy) 
{
}
else
{
help();
}
surreal quarry
#

what

#

what is the point

#

of the if

burnt moth
#

it would be

surreal quarry
#

if (!copy)

burnt moth
#

if(!copy)

half harness
#

lol

burnt moth
surreal quarry
#

thats atrocious

#

delete

#

noiw

#

kaliber delete meme

half harness
#

noiw

burnt moth
#

noiw

forest pecan
#

noiw

half harness
#

pulse

#

change ur nick to something typable

#

;-;

surreal quarry
burnt moth
#

@forest pecan

surreal quarry
#

found it

#

lkol

burnt moth
#

yes quite hard to ping

half harness
#

@forest pecan very hard

onyx loom
#

shouldve pinged me james 🙂

forest pecan
#

well if you knew me you would know my actual username

surreal quarry
#

true

half harness
#

@onyx loom

forest pecan
#

🌚

half harness
#

@forest pecan

onyx loom
#

not funny dkim

forest pecan
#

@forest pecan

#

@pusl

#

@forest pecan

#

@pul

half harness
#

@pulse

forest pecan
#

it pops up

#

after

half harness
#

@forest pecan

burnt moth
#

@@

surreal quarry
#

=offtopic 🌚

burnt moth
#

Hehehehheheheheheh

forest pecan
#

lol

half harness
#

@burnt moth ping

burnt moth
#

;(

forest pecan
#

@forest pecan

burnt moth
#

wow

#

this looks nice lol

half harness
#

@half harness

burnt moth
#

@burnt moth

forest pecan
#

@forest pecan
@forest pecan
@forest pecan
@forest pecan
@forest pecan
@forest pecan

burnt moth
#

&a@burnt moth_

half harness
#

215 more xp

#

so close

#

someone talk

burnt moth
#

hi

surreal quarry
#

bruh you guys need to shut

half harness
#

hi

#

can someone say something interesting

burnt moth
#

leaves server

surreal quarry
forest pecan
#

hello

half harness
forest pecan
#

my name is

#

tacobell

burnt moth
half harness
half harness
#

it's very kewl

burnt moth
forest pecan
#

a loop is what you find in cereal

obtuse gale
#

A cup of coffee

forest pecan
#

yeah whats java

obtuse gale
#

Java is a cup of coffee

burnt moth
surreal quarry
#

dkim explain to me how a loop can make your code better

forest pecan
#

tf is tha

half harness
forest pecan
#

ah

#

I see Java is a coffee

surreal quarry
forest pecan
#

yeah OOP i spilled my coffee!

surreal quarry
#

its bad

onyx loom
#

and i oop

surreal quarry
#

java bad

onyx loom
#

k

forest pecan
burnt moth
half harness
forest pecan
#

fun fact: caffeine can actually kill you

half harness
#

still 204 xp to go :c

#

this is too hard

forest pecan
#

Hey

half harness
#

i give up

forest pecan
#

@quiet depot gimme that boostah

ocean quartz
#

@forest pecan Change your name please

half harness
#

😳

forest pecan
#

fuc

half harness
#

u know u gotta change it when a staff tells u to

forest pecan
#

well

#

it works

half harness
#

🤣

onyx loom
#

not this again

burnt moth
#

I have to search for definition of documentation in the documentation to take a look at the documentation

onyx loom
#

what did fc say

burnt moth
#

lol

onyx loom
#

nicknames have to be something relating to ur discord username

surreal quarry
#

wait multi soon?

forest pecan
#

i pinged piggy to turn on my boost

burnt moth
#

matttt

forest pecan
#

idk if thats allowed

#

lol

#

but

surreal quarry
#

i think so

forest pecan
#

free xp

#

ok lol

half harness
#

lol

#

i need xp!!!

burnt moth
#

*free xp*

#

say something dumb

forest pecan
#

=decadely

onyx loom
#

pig aint coming on for atleast several hours clojuremoon

burnt moth
#

something dumb

half harness
#

193 xp to go!

onyx loom
#

he australian

#

sleepy boy

half harness
#

lol

burnt moth
#

I need 97 xp

#

xp

#

Xp?

#

@burnt moth

#

test

forest pecan
#

lmao

ocean quartz
#

Spamming doesn't give xp

half harness
#

i live on the opposite side of him because i am in the united states of america. piggypiglet, also known as piggy or porky or bacon, lives in australia!

burnt moth
#

but I wanted to say too much things at the same time

half harness
#

ah thats a yummy 20xp

burnt moth
#

dog

half harness
#

ur gonna get muted

surreal quarry
#

BM v2

half harness
#

lol

forest pecan
#

Wait remember @obtuse gale

burnt moth
#

me?

forest pecan
#

when you got muted

#

lmao

surreal quarry
#

BM got muted yesterday

burnt moth
#

nah

onyx loom
#

o

forest pecan
surreal quarry
#

for saying no too many times in development

forest pecan
ocean quartz
#

If Barry mutes you I won't ask anyone to unmute you

half harness
#

lol when you say no too many times the bot mutes

onyx loom
#

lol

half harness
#

😳

forest pecan
#

🌚

surreal quarry
#

are barry mutes perm

onyx loom
#

no

half harness
#

how long

forest pecan
#

5 inches

onyx loom
#

its like 10-30 mins

obtuse gale
forest pecan
#

lmao

burnt moth
surreal quarry
#

oh thats chill

onyx loom
#

i imagine that increments if uve been muted before

burnt moth
forest pecan
#

its very developy

onyx loom
#

so clojuremoon

half harness
#

=offtopic

surreal quarry
#

we are talking about discord bots

half harness
#

yes

forest pecan
#

yeah

burnt moth
#

ah yea

forest pecan
#

we are

half harness
#

can someone share their token

ocean quartz
onyx loom
#

fun main() = discordBot()

#

o rly?

ocean quartz
#

Yeah

forest pecan
#

how much for my social security number

onyx loom
#

who unmuted efe when he got muted then kekw

surreal quarry
burnt moth
#

More relaxed area Hmm.

half harness
forest pecan
#

gotchu fam

burnt moth
#

lol

forest pecan
#

localhost

#

^^^^^^

#

thats my social security number

#

its localhost

half harness
#

hey

#

i paid

onyx loom
#

25565?

half harness
#

but u share

#

to PUBLIC

#

😠

forest pecan
#

Yes

#

ikr

burnt moth
#

Hmmmmmmmmmmm

half harness
#

now dm me ur paypal and ip address

burnt moth
#

Can I ping @ocean quartz

#

DAMN

ocean quartz
#

?

half harness
#

matt?

burnt moth
#

yea nvm

forest pecan
#

yeah?

forest pecan
burnt moth
#

@ocean quartz we need a #meme channel

half harness
surreal quarry
ocean quartz
#

We really don't

onyx loom
#

we need music channel!|

prisma wave
#

wtf is happening here

half harness
#

lmao

ocean quartz
#

That we do

prisma wave
forest pecan
#

crisis

burnt moth
#

but I can't send files

surreal quarry
#

on topic development related things 🌚

burnt moth
#

hmm

ocean quartz
#

What?

burnt moth
#

nevermind

surreal quarry
#

Okay.

burnt moth
#

:)))

#

nevermind

#

gotta go

onyx loom
#

dont u just love kotlin

surreal quarry
#

yes

spark grove
#

hey can anyone help me?

onyx loom
#

was using a filter then .count() on a list but just found out that count also accepts a predicate

#

with what @spark grove

spark grove
#

installing a plugin

onyx loom
#

just put it in plugins folder?

surreal quarry
spark grove
#

im using pebblehost and it is so complicated and i can't do it

half harness
#

u have to use ftp

#

or their built-into-website ftp

#

filezilla ftw

surreal quarry
#

built-into-website-that-is-included-in-the-web-interface ftp ™️

half harness
#

they also have a wiki

surreal quarry
#

very cool indeed

jovial warren
#

xD

#

for web hosting at least

onyx loom
#

crap-panel-web-hosting

jovial warren
#

cPanel bad

#

overpriced bloatware that gives people an excuse to not learn how to setup a web server or use the Linux command line

surreal quarry
#

just get a vps

#

smh my head

jovial warren
#

yeah I use a VPS

surreal quarry
#

yea not you lol

jovial warren
#

imagine not using a VPS

onyx loom
#

☹️

surreal quarry
#

people who pay for mc hosting

jovial warren
#

also, what's with do btw?

surreal quarry
#

its like doing user.name = "james"

onyx loom
#

just makes u look cooler

surreal quarry
jovial warren
#

oh nice

surreal quarry
#

and yes it does make you cooler verycool

prisma wave
jovial warren
#

ah okay

#

user.apply { name = "BomBardyGamer" }

#

dis work too

surreal quarry
#

yea same idea

#

apply returns the user, with returns the result of the lambda

prisma wave
#

there's also apply which returns the result

#

oh

#

Wait

#

No what's it called

#

run?

surreal quarry
prisma wave
#

YES

surreal quarry
#

||pin it someone||

onyx loom
#

yes pin a kotlin message

#

kotlin is taking over the world

prisma wave
#

extend T as t {
let toString => t.name
}

jovial warren
#

also, can you ever imagine having to make your own builtins to work with things

prisma wave
#

they're all like 3 lines

jovial warren
#

had to write sumBy to work with longs in this lol

prisma wave
#

ew

jovial warren
#

also, no one question the constant right under that btw please

surreal quarry
#

lol

prisma wave
#

just map to Long and then sum

ocean quartz
# jovial warren also, what's `with` do btw?

If you wanna have a good time https://youtu.be/YxOTU9F_YX4?t=847

In programming, as in writing, we can express similar ideas in a variety of different ways. Kotlin in particular often allows us to approach the same problem with several valid solutions. The ability to choose the best tool for your situation is powerful, but only if you have a way to identify which tool is indeed best for your situation.

In t...

▶ Play video
jovial warren
surreal quarry
#

whats the point

prisma wave
#

Yes, and?

#

also Member.formatName can be a single line

jovial warren
#

ah I see

#

probably can be

prisma wave
#

no conditionals necessary

surreal quarry
#

blah.map(Int::toLong).sumBy or something

prisma wave
#

Just use an elvis

jovial warren
#

wait how?

#

you ideally need a ternary here

surreal quarry
#

if expressions

jovial warren
#

since you check whether nickname is null

surreal quarry
#

probably

#

im not looking at it tho

jovial warren
prisma wave
#

nickname?.let { blah } ?: asTag

jovial warren
#

omfg

jovial warren
prisma wave
#

that's the same line you sent earlier

jovial warren
#

is it?

#

oh yeah, it is

prisma wave
#

111

jovial warren
#

lemme get you the right one

#

that only exists because of Lavalink's cyclic dependency problem

#

(which has now been fixed because of me)

prisma wave
#

lateinit 🥶

jovial warren
#

Lavalink depends on JDA, which depends on Lavalink

#

so Lavalink there uses the JDA function, and I can set it later when I initialise JDA

#

that was actually suggested by Frederikam btw, so blame him for that lol

#

oh, if you think that's bad btw

#

also, flame me for my obsession with runCatching .getOrElse instead of try catch please

#

might go back to this at some point

#

and just fix up shit like this

prisma wave
#

elara is using something very similar 😟

jovial warren
#

what does Elara use?

prisma wave
#
let result = try {
  operationThatMayFail()
}

if result.isSuccess() {
  blah
} else {
  blahblah
}
jovial warren
#

ah

prisma wave
#

a try expression bundles the result into a Result

onyx loom
#

😟

prisma wave
#

so similar

#

i kinda like it

jovial warren
#

yeah it's not bad

prisma wave
#

try/catch is pretty ugly

jovial warren
#

but the way I use it here just causes me more issues than it's worth

#

also, getOrElse on a List<String> is great lol

prisma wave
jovial warren
prisma wave
#

Executors.newSingleThreadExecutor().asCoroutineDispatcher() 🥶

half harness
#

how would u rate my code

jovial warren
#

oh you haven't even got to the CommandManager yet

jovial warren
#

DefaultCommandManager is the original code I wrote for this

#

use of named lambdas

prisma wave
#

wtf

steel heart
half harness
#

i rate it a 1/5

steel heart
#

Lol

jovial warren
#

not using build tools

half harness
#

because i got spoonfed the whole thing

prisma wave
half harness
#

wut

#

what is /bin

prisma wave
#

i am going to beat you to death

jovial warren
#

yeah why did you commit that

#

and why u no use Gradle

half harness
#

what is /bin

jovial warren
half harness
#

look at that commit date ;-;

jovial warren
prisma wave
half harness
#

oh

half harness
#

idk why i committed that

jovial warren
#

also what is CMD

#

what kind of a package name is that

#

both the case and the name

onyx loom
#

wtf is this indentation dkim

steel heart
#

Main

jovial warren
#

main class called Main

half harness
#

lol

onyx loom
#

bent

jovial warren
#

because that definitely won't at all break if someone else has the same main class name

half harness
steel heart
#

Main of what?

jovial warren
#

or at least, I think that's the issue

half harness
jovial warren
half harness
#

btw i was spoonfed the whole managers package 😛

steel heart
#

dkim pro coder

jovial warren
half harness
#

this is back when I had 2 months of java experience

onyx loom
jovial warren
#

what the actual fuck happened here

prisma wave
#

vim, vim addict

jovial warren
#

I mean, I've seen worse

#

one of my developers made a plugin that was dependency injecting BukkitScheduler through method parameters

#

yako fixed that luckily

half harness
steel heart
#

die

jovial warren
#

get out

steel heart
#

thrice

jovial warren
#

leave

onyx loom
#

this is hurting my eyes

half harness
jovial warren
#

also, imagine having yako kindly volunteer for your team

onyx loom
#

u need to stop

prisma wave
#

hire me

onyx loom
#

prevarinite?

prisma wave
#

i will make plugins in clojure and go free of charge

jovial warren
onyx loom
#

o

jovial warren
#

Prevarinite isn't what it used to be

onyx loom
half harness
jovial warren
#

well, it never was anything

onyx loom
#

whatever happened to that

jovial warren
#

I lost interest in programming

#

and it kinda just died

half harness
jovial warren
#

I deleted the old Discord server

onyx loom
#

o yea u did

#

its funny cus i have the ezblocks project open rn 🙃

jovial warren
#

if you wanna keep going then go for it

prisma wave
#

(ns ezblocks.core)

onyx loom
#

im slowly chipping away at it

old wyvern
#

Clash?

jovial warren
onyx loom
#

🌝

old wyvern
jovial warren
#

you pushed .gradle, .idea and .iml xD

half harness
#

jerry

#

how come jerry is so inactive now

jovial warren
#

who jerry

old wyvern
#

Yea couldnt bother, was tired xD

jovial warren
#

fair

#

does the plugin even work btw?

half harness
jovial warren
#

never even tested it

old wyvern
#

Dont think so

#

Might

half harness
#

he helped me a lot 🙂

old wyvern
#

Actually I think it kinda works

jovial warren
#

ah, uses Vault chat

prisma wave
old wyvern
#

I remember running it on a test server once

jovial warren
steel heart
#

redis support?

old wyvern
#

xD

jovial warren
half harness
jovial warren
onyx loom
#

yes

prisma wave
#

yes

onyx loom
#

much of it

prisma wave
#

why do people do this

hot hull
#

Because BM

prisma wave
#
else {
  if (blah)
#

like

steel heart
#

dkim y do u hate urself

half harness
prisma wave
#

else if is a thing

jovial warren
prisma wave
#

or just remove it altogether

#

haskell doesnt have arrow code

jovial warren
#

because fuck plugin messaging amirite

steel heart
old wyvern
#

That def works

#

Invisible code

#

😌

jovial warren
#

this plugin doesn't have Redis support

half harness
#

390 lines in Main.java

steel heart
#

lmao

old wyvern
#

That plugin doesnt have any suppourt

jovial warren
#

I actually made one for the server I work on though that actually does

old wyvern
#

xD

jovial warren
#

might release it one day

#

or better yet, update PrevariniteChat and make it work

old wyvern
#

Thats 1 day of work

prisma wave
#

i kinda wanna

old wyvern
#

Like what I did on the first day

prisma wave
#

...

prisma wave
#

imagine the possibilities

onyx loom
#

😳

jovial warren
half harness
prisma wave
#

monads in spigot 🥰

half harness
#

i still use it to this day

ocean quartz
#

Wait, Haskell is jvm?

jovial warren
#

I'm tempted to do what my friend did one day and write a plugin fully in Python lol

prisma wave
#

@half harness thats fine

half harness
#

ok

steel heart
#

HashMultimap<String, String> should be SetMultimap dkim

prisma wave
#

but

#

it could be

#

with this power

#

and that means

#

you could write

old wyvern
#

How about

half harness
#

d;StringUtil.copyPartialMatches

ocean quartz
#

That sounds cool tbh

ruby craterBOT
#
public class Semaphore
extends Object
implements Serializable```
Semaphore has 1 all implementations, 13 methods, 1 implementations, and  1 extensions.
Description:

A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each acquire() blocks if necessary until a permit is available, and then takes it. Each release() adds a permit, potentially releasing a blocking acquirer. However, no actual permit objects are used; the Semaphore just keeps a count of the number available and acts accordingly.

Semaphores are often used to restrict the number of threads than can access some (physical or logical) resource. For example, here is a class that uses a semaphore to control access to a pool of items:...

This description has been shortened as it was too long.

old wyvern
#

Elara -> Haskell

onyx loom
#

spigot plugins in haskell!

prisma wave
#

qiufhqdiuqhdqiwuhdq

half harness
#

StringUtil.copyPartialMatches what does this do

ocean quartz
#

Dkim come on

prisma wave
#

lol

old wyvern
#

🥲

prisma wave
#

ive never used that

#

just stream + filter(startsWith)

#

i think

steel heart
#

stream

#

yo

#

thats illegal

half harness
#

d;StringUtil#copypartialmatches

prisma wave
#

streams 😐

ocean quartz
prisma wave
#

d;commons-text StringUtil#partialmatches

ocean quartz
#

Smh

prisma wave
#

bruh

surreal quarry
#

lol

half harness
#

lol

prisma wave
#

deleting that shit

#

absolutely useless

#

oh

#

its in bukkit

#

atrocious design

half harness
#

o

prisma wave
#

StringUtil

half harness
#

d;spigot StringUtil.copyPartialMatches

#

d;spigot StringUtil#copyPartialMatches

ruby craterBOT
#
@NotNull
public static T copyPartialMatches(@NotNull String token, @NotNull Iterable originals, @NotNull T collection)
throws UnsupportedOperationException, IllegalArgumentException, IllegalArgumentException```
Description:

Copies all elements from the iterable collection of originals to the collection provided.

Parameters:

collection - The collection to add matches to
originals - An iterable collection of strings to filter.
token - String to search for

Throws:

UnsupportedOperationException - if the collection is immutable and originals contains a string which starts with the specified search string.
IllegalArgumentException - if any parameter is is null
IllegalArgumentException - if originals contains a null element. Note: the collection may be modified before this is thrown

Returns:

the collection provided that would have the elements copied into

ocean quartz
#

Dude

surreal quarry
#

bruh

steel heart
#

d;spigot StringUtil#copyPartialMatches

ruby craterBOT
#
@NotNull
public static T copyPartialMatches(@NotNull String token, @NotNull Iterable originals, @NotNull T collection)
throws UnsupportedOperationException, IllegalArgumentException, IllegalArgumentException```
Description:

Copies all elements from the iterable collection of originals to the collection provided.

Parameters:

collection - The collection to add matches to
originals - An iterable collection of strings to filter.
token - String to search for

Throws:

UnsupportedOperationException - if the collection is immutable and originals contains a string which starts with the specified search string.
IllegalArgumentException - if any parameter is is null
IllegalArgumentException - if originals contains a null element. Note: the collection may be modified before this is thrown

Returns:

the collection provided that would have the elements copied into

half harness
#

welp

surreal quarry
#

y'all gotta chill with docdex

ocean quartz
#

Test your commands in #bot-commands first, once you get the right one do it here smh

steel heart
#

d;Spring

ruby craterBOT
#
public abstract class Spring
extends Object```
Spring has 1 fields, 13 methods, and  1 extensions.
Description:

An instance of the Spring class holds three properties that characterize its behavior: the minimum , preferred , and maximum values. Each of these properties may be involved in defining its fourth, value , property based on a series of rules.

An instance of the Spring class can be visualized as a mechanical spring that provides a corrective force as the spring is compressed or stretched away from its preferred value. This force is modelled as linear function of the distance from the preferred value, but with two different constants -- one for the compressional force and one for the tensional one. Those constants are specified by the minimum and maximum values of the spring such that a spring at its minimum value produces an equal and opposite force to that which is created when it is at its maximum value. The difference between the preferred and minimum values, therefore, represents the ease with which the spring can be...

This description has been shortened as it was too long.

stuck harbor
#

d;stawppppp

#

mhm

half harness
#

d;ok

stuck harbor
#

that's what I thought

#

Æugh

ocean quartz
#

It's supper spammy, it broke our lovely Haskell conversation 😭

half harness
#

wot

steel heart
#

Haskell can eat ass

stuck harbor
#

haskell must not be discussed

steel heart
#

^

prisma wave
#

where were we

half harness
#

#haskell

steel heart
#

no

stuck harbor
#

no bm

steel heart
#

ew

stuck harbor
#

halt

ocean quartz
#

The disrespect

steel heart
#

#cancelhaskell

stuck harbor
#

mmm

#

I just committed a sin

prisma wave
#

onEnable :: () -> IO ()

stuck harbor
#

I installed windows

steel heart
#

di3e

stuck harbor
#

its windows server tho

prisma wave
#

onEnable = .info getLogger "Hello World"

stuck harbor
#

so less bloat

steel heart
#

windows good

stuck harbor
prisma wave
#

anyone who disrespects haskell is disrespecting me

stuck harbor
#

:)

steel heart
#

Haskell officially sucks

prisma wave
#

wow

#

rude

#

wtf

stuck harbor
#

Ə

#

Ă

#

sports

steel heart
#

yeah ik haskell is gross

#

:]

#
void x() {
  var runnable = new Runnable() {
    Object o = new Null();
    public void run() {

    }
  }
  runnable.o;
}

#

this is cool

ocean quartz
#

Writing obfuscated code?

surreal quarry
#

lol

steel heart
#

no

#

var in java

#

its beyond any kotlin karens knowledge

half harness
surreal quarry
# steel heart var in java

and maybe in the next 20 years enough systems will be running that version of java for it to be usable kek

steel heart
#

yeah indeed

half harness
#

lol

obtuse gale
#

The button you don't have

surreal quarry
#

do it

half harness
#

🤨

old wyvern
#

So close

prisma wave
#

🥲

old wyvern
#

So so very close

#

I got the answer but wasnt able to format it to string in time

prisma wave
#

thats much further than me lol

old wyvern
#

Seems it was because I forgot to import Data.List xD

#

putStrLn (intercalate " " res)

#

I had the output line

prisma wave
#

🥲

#

another?

#

i could use some haskell practice

old wyvern
#

Yes

#

The what

surreal quarry
#

this seems hard lmfao

old wyvern
#

oh wait

#

that makes sense

ocean quartz
surreal quarry
#

hot

prisma wave
#

hmm this is tough

old wyvern
#

YESS

prisma wave
#

to do without brute forcing anyway

#

o nice

old wyvern
#

xD

old wyvern
prisma wave
#

hmmm true

#

nah im not gonna get this

#

no time

#

i misunderstood the question for the first 10 minutes 🥲

old wyvern
#

🥲

prisma wave
#

wow

obtuse gale
prisma wave
#

so simple 🥲

old wyvern
#

🥲

#

welp

#

gn

prisma wave
#

gn

somber tulip
forest pecan
#

i upgraded my mac to big sur and i saved up 60 gigabytes??

#

tf lol

#

what was taking so much space before

#

dkim

#

speak

#

lmao

#

you are unmuted

half harness
#

o

#

how do I limit the RAM usage with Jar Application in IntelliJ?

forest pecan
#

add the ram limits to vm options

frigid badge
#

program arguments

forest pecan
#

wait program arguments?

frigid badge
#

either of the two

#

prob

half harness
#

🤔

obtuse gale
#

VM options

half harness
#

so like -Xms 256M -Xmx 3G?

#

i sorta forgot how

frigid badge
#

google

obtuse gale
#

No space

forest pecan
#

spigot needs like a spooktober fest coding thing

#

like how mods have that every halloween

#

or something similar

obtuse gale
#

You mean Paper, right?

#

Imagine if md5 would do something like that aPES_LulLaugh

forest pecan
#

wait

#

paper does that as well?

obtuse gale
#

No lmao

forest pecan
#

oh

obtuse gale
#

You said spigot needs

#

You misspelled paper aPES_LulLaugh

forest pecan
#

lmao

#

yeah

#

or

#

helpchat should do it

#

that wouldn't be too bad

remote goblet
#

@prisma wave can you explain to me what circular references are in java peepoSad

forest pecan
#

they are circular

prisma wave
#

a refers to b and b refers to a

#

It makes a circle

remote goblet
prisma wave
#

what line

#

toJson

#

?

remote goblet
#

I have no idea honestly

prisma wave
#

yep that's gson

#

there's a cylic reference somewhere in Auction

remote goblet
#

Auction is a basic data class peepoSad

#

Im most likely gonna be removing the OfflinePlayer and switching it for UUID

somber tulip
#

Yeah, you can't really use most of bukkits objects in gson

#

You have to write your own adapters for them

remote goblet
#

well the spam message changed which is pog

ocean quartz
somber tulip
#

Ah nice! Is that going to be a website?

ocean quartz
#

Yeah

somber tulip
#

Sounds like a good idea c:

ocean quartz
#

Also will make a gradle plugin to interact with its API, so when you build your plugin it'll dowload all the language files as json and add to your jar

somber tulip
#

That's pretty neat, will it be specifically for plugins or no?

ocean quartz
#

Nah can be used for anything ;p

obtuse gale
remote goblet
#

yes sir

obtuse gale
remote goblet
#

exactly

#

im confused aswell

ocean quartz
#

Are you trying to just serialize an item?

obtuse gale
#

I mean paper has ItemStack#serializeAsBytes() and ItemStack.deserializeBytes(byte[]) lol

#

another reason to use paper fingerguns

#

that includes all the nbt n stuff (I think it actually is the nbt)

#

Serializes this itemstack to raw bytes in NBT. NBT is safer for data migrations as it will use the built in data converter instead of bukkits dangerous serialization system.

#

lol

somber tulip
#

Does anyone know of any actual decent resources for learning JavaFX beginner -> expert? Preferably free

remote goblet
half harness
#

Hotswapping always spams my console with errors :c

remote goblet
#

TriumphPets saving me with nms code as usual

ocean quartz
#

No nms

remote goblet
#

eh whatever

remote goblet
somber tulip
remote goblet
#

might not need the getBytes but eh

somber tulip
#

if you use gson that is

ocean quartz
remote goblet
obtuse gale
#

that doesn't actually save the whole NBT afaik

ocean quartz
#

Tested with even the most complex nbt and it worked perfectly fine

obtuse gale
#

even custom NBT? outside of namespaced PDC

ocean quartz
#

Yeah

remote goblet
#

What would yamlConfiguration["item"] = itemStack be in java, my brain cant translate that

obtuse gale
#

interesting

remote goblet
#

i felt like keeping a relatively small jar file so, java

ocean quartz
remote goblet
#

that makes logical sense

obtuse gale
#

it converts others to base64 under "internal"

ocean quartz
#

Yeah, seems to work with basically everything

forest pecan
#

go to that site and press reload each time

obtuse gale
#

Yeah it's creepy as fuck lol

#

So fucking unnatural

#

There was one that generated human faces and it was so fucking pitch perfect

forest pecan
#

lmao

forest pecan
#

'dependencies.dependency.systemPath' for org.spigotmcspigotjar should not point at files within the project directory, ${project.basedir}/../spigot-1_8_r1.jar will be unresolvable by dependent projects @ line 20, column 25
Some problems were encountered while building the effective model for com.github.pulsebeat02:v1_7_R4:jar:RELEASE-1.4.0

#

can maven fuck off?

#

and let me shade nms modules

#

that i reference the dependencies using jars to

quiet depot
#

just me or does it look like the bottom horse is giving the other horse's goodies a chomp

forest pecan
#

LMAO

#

I see that

#

xD

obtuse gale
#

because literally half the internet is flooded with kitty pics lmao

forest pecan
#

lmao

#

im currently running buildtools in 2 batch files

#

lmao

half harness
#

lol

quiet depot
#

@forest pecan y

#

what spigot jars did I miss?

static zealot
#

hmm. anyone using IJ + Git? I have a weird thing where it doesn't upload new made files. When I select which files to commit they don't show in the default changes list and I either don't see them or they're not in the Unversioned Files either. I'm assuming they're suppose to be in the unversioned files list?

#

oh nvm turns out they're there I'm just blind. well to be honest there's over 150 files there

#

yeah had to gitignore the .idea .gradle and build directories and now there's just the files I created. if only I could see sometimes 😦

hot hull
#

"anyone using IJ + Git" no Blitz, just like 90% of the devs in here

#

Latest IJ has a default gitignore which get's created and it's useful af

static zealot
#

k?

#

I fucking posted a 2 page long question in the same line and all you see is that first thing. I understood if it were just that question but it wasn't.

night canyon
hot hull