#dev-general

1 messages · Page 148 of 1

heady birch
#

Oh right

#

Yes

jovial warren
#

Free & Open-Source > Freemium > Premium

heady birch
#

Maybe one day

frigid badge
#

or just y'know quit the bullshit with all the crap code made

#

and do it for free with a note of that it's shit

jovial warren
#

the only reason I'd ever obfuscate is to not have people see my shit code lol

#

which is a bad idea

heady birch
#

Well you could say that for the event triggers lol

#

Actually its not too bad

jovial warren
#

I'd probably just rewrite shit code and still make it OS

heady birch
#

That's what I've started doing

#
  • Commenting everything
#

Because everything looks 10x better commented anyway

jovial warren
#

yeah but you're missing one key part of that sentence lol

frigid badge
#

OS

jovial warren
#

OS >>>>>>>>>>>>>>>>>>>> Proprietary any day

heady birch
#

Once I have fixed my maven structure

jovial warren
#

but that's just because idgaf about making money, I care about making a difference

heady birch
#

The group names are all wrong

#

Might even convert some stuff to kotlin for the fun of it

jovial warren
#

yes

frigid badge
#

23 of 42 repos are public on my gh

jovial warren
#

I got 2 of 2 lol

frigid badge
#

and those are just the repos on my acc

#

I'm in like 6 orgs

jovial warren
#

actually make that 3/3

#

but one is archived

frigid badge
heady birch
#

epic games?

jovial warren
#

yeah that was my reaction lol

frigid badge
#

yea epic games

heady birch
#

Nice

#

Or should I say

#

"Epic"

jovial warren
#

you work for epic games?

prisma wave
#

Probably for unreal

jovial warren
#

I'm guessing Unreal Engine is open-source

frigid badge
#

it was for unreal yea

#

I work for a different company

#

which is like 100x smaller lol

jovial warren
#

noice

#

I'm not even old enough to start working yet lol

#

I still got 3 months left

prisma wave
#

I'm guessing Unreal Engine is open-source
yeah but you have to be in the epic org for it

heady birch
#

When you forget how to do manual DI 😦

frigid badge
#

how old are you if I may ask

jovial warren
#

me?

frigid badge
#

yea

jovial warren
#

I'm 15

frigid badge
#

ah alright

hot hull
#

Lemmo, Imagine only having 42 repos

jovial warren
#

lol

#

imagine only having 3 repos and the rest being forks

#

a great representation of my creativity span and laziness lol

frigid badge
#

I mean I rarely do any personal stuff

#

it was that tiny kernel the other day and now the ecloud

#

but otherwise it's all work related and we use azure for that.

jovial warren
#

I don't get any stuff to do from other people lol

#

also Azure?

quiet depot
#

how many u got frosty?

hot hull
#

47

frigid badge
#

azure devops @jovial warren

quiet depot
#

lol imagine only having 47 repos

jovial warren
#

Linux support?

hot hull
#

Bruh

frigid badge
#

what linux support?

hot hull
#

For only a year, I'd say that's decent Piggy

jovial warren
#

do you never work from home? lol

quiet depot
#

121 repo gang (excl repos i've made on organisations)

prisma wave
#

azure is platform agnostic?

jovial warren
#

idk how Azure DevOps works

frigid badge
#

azure devops is just a website

jovial warren
#

oh it's a CI

frigid badge
#

CI/CD & repos

jovial warren
#

ah okay

frigid badge
#

allows us to deploy our docker containers to managed vpses

jovial warren
#

Azure VPS'?

frigid badge
#

Azure App Service

jovial warren
#

ah okay

#

was gonna say lol

#

Azure is hell 'a expensive

frigid badge
#

yup

#

it is very expensive

jovial warren
#

but they can get away with it since businesses still pay for it

#

what really confuses me though is why the GitHub Student Developer Pack bothers to give you $100 free credit for it

#

when that literally lasts you a few months at best

prisma wave
#

you could say the same about the $50 digitalocean

jovial warren
#

yeah, and I do

hot hull
#

You get free credit, why you complaining?

jovial warren
#

and the AWS credit

hot hull
jovial warren
#

You get free credit, why you complaining?
because it's not good enough lol

quiet depot
#

not that you can use any of the credit lol

jovial warren
#

they should at least give you enough to actually deploy something good

#

not that you can use any of the credit lol
wdym? it's only the AWS credit I can't use (since you gotta be 16, I found that out by talking to the support team lol)

hot hull
#

Ah yes just depend on other people giving you free shit

jovial warren
#

Ah yes just depend on other people giving you free shit
what?

quiet depot
#

the hosts usually require verification, often via a credit card, which minors don't have

jovial warren
#

true

#

but I get a debit card with my Barclay's Plus current account anyway

#

so I'm good now

#

but the GitHub Student Developer Pack gives you other really useful tools to make up for that anyway like BrowserStack, Datadog, Crowdin, Sentry and Travis CI

#

(or at least, I find all of them useful)

#

BrowserStack gives you 2000+ kinda VMs for all kinds of different devices and browsers so you can test your website on many different devices, and it's used by big corporations like Microsoft, Twitter, Expedia and even the Wikimedia Foundation

#

Datadog is a really high quality SaaS time-series database and metrics system

#

Crowdin is a platform for collaborative translation and localisation

#

Sentry is really good for managing errors and issues

#

and Travis is a really good CI service that integrates flawlessly with GitHub, is really easy to setup, and works like a charm with minimal configuration

#

wow I do a lot of talking xD

errant geyser
#

yup

quiet depot
#

I use the free namecheap domain, jetbrains, github, gitkraken pro, termius, & sendgrid from the education pack

#

seems like they don't offer sendgrid anymore, which is worrying

#

might have to switch over to mailgun

#

hopefully my license isn't cancelled

split talon
#

What's the best way to handle storing time values? I'm writing a plugin to allot x minutes/hours of being able to use certain commands. mysql seems like the best option but how would I go about updating the allotted time so I don't read/write every second

prisma wave
#

store timestamps?

heady birch
#

☝️

jovial warren
#

I use the free namecheap domain, jetbrains, github, gitkraken pro, termius, & sendgrid from the education pack
I think I've used like three of those lol

signal tinsel
#

@ocean quartz how big is ur gui lib

ocean quartz
#

About 70kb because of XMaterial

signal tinsel
#

Ah

#

That's why mine is so big lmao

#

Mine is 78kb

#

just made a new GUI lib and it works great

#

Though you do have to pre-register any gui you wanna use

#

But you can persist it

prisma wave
#

Shouldn't using XMaterial be up to the person using the lib rather than the lib itself?

signal tinsel
#

Like re-open it without creating a new instance, meaning variables are persistable

prisma wave
#

Having it shaded seems like an odd decision imo

signal tinsel
#

Maybe mitten

#

But my ItemBuilder class uses it

#

Or well, has the option to use it

prisma wave
#

When it's potentially useless for a lot of people

#

¯\_(ツ)_/¯

signal tinsel
#

You provide an ItemStack to GuiItem instances

#

You can make your own or use itembuilder

ocean quartz
#

Yeah the ItemBuilder uses it, plus it's more of a just one more thing in it rather than a requirement

prisma wave
#

yeah it just seems a strange decision

ocean quartz
prisma wave
#

And a waste of space if you were only targeting one version

signal tinsel
#

Meh

prisma wave
#

That's pretty cool though

heady birch
#

He he

#

English spelling finally

signal tinsel
#

Anyway rn the lib only has gui paginatedgui

#

But thats fine

#

I do like matts scrolling gui tho

errant geyser
#

@steel heart did you push fixing the IdentifierOption thingy you were on about? IJ says my files are even with the repo

hot hull
#

@signal tinsel Why not try to make something noone made before, like I doubt you'll find making a gui lib interesting since there's so many out there already, you could try making the thing me and Aj discussed in #off-topic

steel heart
#

Kotsu I think

#

Look at the repo

obtuse gale
#

:))

#

frcst this is gona be hard lol

#

Im failing to make a turtle

steel heart
hot hull
#

If I weren't busy I'd help Aj fingerguns_reversed

obtuse gale
#

:))

hot hull
#

Cause not gonna lie, that'd be hella interesting to make

obtuse gale
#

mmm

hot hull
#

Gotta make that snowman with legs fingerguns_reversed

obtuse gale
#

I think its a pain in the ass to make them move as well

#

since you gotta have them all in a map

#

like each "part"

signal tinsel
#

@hot hull which is?

hot hull
#

nvm, Aj is working on it, thought he wasn't gonna do it, but now he is fingerguns_reversed

obtuse gale
#

:))

#

I think its also gona need alot of maths

hot hull
obtuse gale
#

why does the snowman have 3 arms in the last scene

hot hull
#

It's moving up and down

obtuse gale
#

oh

#

now i feel stupid

#

also ngl I was a bit concerned when I saw that last shot for the first time

hot hull
#

So I have this, which I implement in the specific Mob Drop class, but I'm kinda not liking having this since it's repetitive, and all the methods are always the same
https://paste.helpch.at/rosegibato.cs
ie. https://paste.helpch.at/ibazehapuj.java

Should I just have a single EntityDrop object which I can instantiate for that specific type (by putting it in a map, which can then be access)

lunar cypress
#

Yeah this definitely isn't great

#

You use instance methods to operate on a purely static state

#

Have a drop registry class that has a map of entity -> drops

#

You could do this without static entirely

hot hull
#

sec, lemme push and I'll show you what I have at this point in time

#

I've changed a shit ton since the above

lunar cypress
#

Or not if you're confident in a single registry across the project

hot hull
#

I'm currently confused af because it's pulling all drops, instead of just the mob type specific ones

heady birch
#

Hello

#

They dont call me the API expert for no reason

#

frosty

hot hull
#

Yes Niall

heady birch
#

I usually put my api classes in same package

#

But a separate module

#

but up to you really

hot hull
#

bruh screw design right now

#

I'll figure that shit out when everything actually works kek

heady birch
#

api design just makes me

#

so happy

surreal quarry
frigid badge
#

this man's commits are so shitty he could've just used google drive

hot hull
#

Bruh everyone comments something, then just dissapears like the question just got resolved by itself or what

#

Stfu Lemmo

#

My commits are perfectly named.

steel heart
#

imagine doing rp in commits

surreal quarry
#

i have a private repo just for stuff and i just mash my keyboard

steel heart
#

jez

surreal quarry
#

lmao

heady birch
#

Lmao

hot hull
onyx loom
#

:Fingerguns:

signal tinsel
#

Tbh @hot hull the library is mostly going to be for my own use

#

I just needed a GUI lib that I could use

#

And I wanted my own, this way I don't need to wait on someone else to potentially fix or add things

surreal quarry
#

use mf-gui

#

its open source so you can fix / add things

#

and then pr it

heady birch
#

Enigner time

jovial warren
#

what?

heady birch
#

What do you reckon is the fastest way of duplicating each char in a string

#

ABC -> AABBCC

jovial warren
#

linear search and replace probably isn't going to cut it lol

heady birch
#
private String shortHand3DigitTo6Digit(final String shortHandHex) {
        final char[] chars = new char[6];

        for (int i = 0; i < shortHandHex.length(); i++) {
            chars[i] = chars[i + 1] = shortHandHex.charAt(i);
        }

        return new String(chars);
    }
#

Came up with this

onyx loom
#

shortHand3DigitTo6Digit

#

enterprise naming

jovial warren
#

it's Niall

#

enterprise logic is ingrained in to his brain lol

#

time to boot up repl.it then I guess to figure this out lol

heady birch
#

Aye beautiful

jovial warren
#

ffs

#

also if you were using Kotlin that could look better lol

#

since you can have spaces in method names by surrounding the method name declaration with backticks

hot hull
#

Niall, you disgust me.

heady birch
#

This is kind of the standard for test naming

jovial warren
#

yeah

heady birch
#

But yeah I've seen kotlin tests

jovial warren
#

but Kotlin's `` multi-word function names make them look so much better lol

heady birch
#

With the ``

#

Yeah

rotund egret
#

I've still never implemented tests into my stuff.
I need to give that a go, it'd probably make my testing smoother

heady birch
#

It just helps me not break something down the line

#

Without having to test it all manually

split talon
#

@heady birch I think you can use bit flips?

heady birch
#

Yes hello

#

@split talon

split talon
#

Oh wait I misread

#

Never mind lol

heady birch
#

ok i can do bitwise stuff if you need

split talon
#

Was responding to your char duplication question

#

I need more coffee bleh

heady birch
#

oh

quiet sierra
#

Niall wraps everything

#

even colors

heady birch
#

Yeah but this wrapper serves a useful tool

quiet sierra
#

Let's create a wrapper for a player using a wrapped uuid, wrapped data for each value and a wrapped class wrapper

heady birch
#

Lmao

#

WrapperWrapper

quiet sierra
#

Enimem: I'm the rap god
Niall: I'm the wrap god

heady birch
#

😫

surreal quarry
#
fun MessageChannel.send(message: () -> Message) {
    sendMessage(message)
}``` I want to be able to have this extension so I can do something like:
```kotlin
    channel.send {
        val mes = MessageBuilder()
        mes.setContent("Content")
        if (someBool) mes.setEmbed(EmbedBuilder().setDescription("a").build())
        mes.build()
    }```
that way i can have stuff like if statements within the send function instead of making a variable outside of it and then building it later
is there a way to make that lambda actually be a message cause right now it won't compile with this error:
prisma wave
#

sendMessage(message())

#

message is a () -> Message not a Message itself

surreal quarry
#

right which was my issue i didn't know how to turn it into a message

#

but that worked

prisma wave
#

yeah

surreal quarry
#

thanks

prisma wave
#

np

#

you might want to make the function inline too

surreal quarry
#

what would that do?

prisma wave
#

it means that the function body gets inlined at compile time

#

it makes functions that take lambdas slightly faster

surreal quarry
#

ah ok

prisma wave
#

basically the compiler copy and pastes the body into the call site

surreal quarry
#

ok cool

#

ty

prisma wave
#

👍

analog crater
#

How does inline use variables which are out of scope such as fields. Does it reference the original variable or does it create a copy

#

And in what way is it referenced

old wyvern
#

You cant access them in inline

prisma wave
#

if the property is accessible, it's just referenced normally

#

but private properties can't be accessed

#

wait

old wyvern
#

yea?

prisma wave
#

yeah you can't access them

old wyvern
#

mhm

analog crater
#

Waiting. My wish order is "nearly here"

jovial warren
#

wish?

#

s c a m

#

lol

prisma wave
#

this is insanely cool

#

I made a little calculator in Frigga

jovial warren
#

noice

prisma wave
#

merci

onyx loom
#

👏

prisma wave
#

It took a surprisingly long time

#

but everything works 😄

frail glade
#

Okay but that isn't PDM.

prisma wave
#

No it's not 😦

onyx loom
#

he makes a point

prisma wave
#

I'll come back to it in a few days

frail glade
#

Alrighty then I will push back my updates for a few weeks.

prisma wave
#

I usually cycle between side projects and never end up finishing one

#

😦

#

I mean

#

it's functional

#

mostly

#

so you could try using it

frail glade
#

It's fine, dw. I shut down my PC in 2 days for about a week since I'm moving.

#

I shouldn't rush this anyways.

prisma wave
#

Alrighty

jovial warren
#

wdym you shut it down in 2 days? lol

prisma wave
#

I'll try and get it done by then

frail glade
#

I shut down my PC in 2 days to move.

jovial warren
#

so you keep your PC on all the time then?

frail glade
#

My PC will be disassembled for about a week.

jovial warren
#

ah okay

frail glade
#

I see how that could've been confusing

jovial warren
#

yeah I was wondering if you were one of those lol

lunar cypress
#

I usually cycle between side projects and never end up finishing one
@prisma wave welcome to my life

prisma wave
#

that's fun though

#

it means you never get bored

analog crater
#

But you never get a reward for finishing a projecy

#

Meaning you have an endless goal to make it

#

Oh shit. That makes you the worst worker but the best student

#

And means your constantly working for nothing

prisma wave
#

👀

analog crater
#

You whole life is a waste...

prisma wave
#

naah

#

eventually you'll actually finish something

analog crater
#

At the rate of constant change, the technology will be old by the time you finish requiring you to redo it but by the time that is done then bam software update

prisma wave
old wyvern
#

The most subtle way of calling someone a boomer

lavish notch
#

Any ideas why i+1 is outputting 41, when raritiesColor.size() outputs 5?

prisma wave
#

what is that logic

#

You loop from 0 to the size, and then reassign to the size?

lavish notch
#

Is there a way to kill/end a loop?

surreal quarry
#

break?

lavish notch
#

Does that only skip the current loop?

surreal quarry
#

continue skips the current loop

#

break terminates it and jumps out of the loop entirely

lavish notch
#

Aight - cheers

chilly jungle
#

Does anyone use eclipse

prisma wave
#

ew

onyx loom
#

absolutely not xd

chilly jungle
#

Kangaroo on spigot is saying he’s still having an issue with papi maven

#

Because of the jetbrains annotations

#

I don’t think he refreshed his dependencies

#

I confirmed myself it’s fixed by testing in eclipse

#

And 2 others

frail glade
#

On eclipse, doesn't it still pull from the local .m2?

ocean quartz
#

It should

chilly jungle
#

I cleared my local repo

frail glade
#

Yeah, sounds like something on his end.

chilly jungle
#

im testing again

#

just deleted jetbrains from my m2

static zealot
#

yo guys how much would you say that a bot that does something like barry where in announcements would be worth? It does a few things. It has a command like =announce warn/update/etc. and then takes the player name and player photo to set it as a footer then takes the text after the command and makes it into a description and also takes the warn,update part and makes it into a title so I'm not expecting it to be super cheap. I just want an average price if possible. ty

surreal quarry
#

like $5

#

at most

#

are you looking for someone to make one for you?

static zealot
#

nah just want a price for now

#

I'm thinking of looking into discord.js myself and make my own

surreal quarry
#

jda

static zealot
#

but yeah I don't have a lot of time lately so

#

maybe

#

dk

surreal quarry
#

i use jda

#

i really liek it

#

but thats probably just cause i am used to the language

onyx loom
#

jda and use kotlin 🙂

surreal quarry
#

^^

static zealot
#

yeah maybe

#

I mean I know js as much as kotlin so almost not at all xD

#

I'm working on renovating the apartment we're moving on and also learning for 2 exams at the end of the month

onyx loom
#

KotlinJS 🙃

prisma wave
#

frigga discord library coming soon

#

bet

onyx loom
#

altho idk how good kotlinjs is

#

maybe i should try it out

prisma wave
#

it's regarded as quite good

onyx loom
#

i could do my college assignment in kotlinjs

prisma wave
#

i believe

surreal quarry
#

code is ass don't judge but

#

thats basically what it is

onyx loom
#

teacher says to use php js html for a site. but yuck

prisma wave
#

code is ass don't judge but
famous last words

surreal quarry
#

lmao

static zealot
#

hippity hoppity your code is now my propriety

#

xD

surreal quarry
#

enjoy 🙂

static zealot
#

will probably lose the link by the time I get into this

surreal quarry
#

i believe in your ability to make it yourself

#

its like 50 lines

static zealot
#

I mean yeah probably just no time

#

rn am working on something else and its 3 am

surreal quarry
#

lmao

static zealot
#

going to sleep at about 5 am to 10 am

#

then back to construction work

#

then learning maths

#

then doing some other shit

#

and that's my week xD

surreal quarry
#

maths is no fun

static zealot
#

yeah

prisma wave
#

excuse me

static zealot
#

I failed my exam

prisma wave
#

maths is very fun

surreal quarry
#

lies

static zealot
#

it is actually fun

#

its just I don't understand much because I didn't have someone to actually teach me

#

since 9th grade

#

went from 10/10 to 4/10 in 4 years

surreal quarry
#

"HUGE" server

#

"$400 of plugins"

static zealot
#

yeah but I feel like it gets reposted every day for some reason

#

ah because it is

#

its literally 5 messages above

surreal quarry
#

thats why

static zealot
#

barry broken again

surreal quarry
#

lol

#

[Service] Discord Bot
[Request] Repost the following service request every 2 hours

static zealot
#

its psoted 3 times ...

#

let's hope an admin or a trusted person is actually watching

#

oh man can't even remember when I last watched an episode on Netflix

surreal quarry
#

im watching netflix rn lol

static zealot
#

xD

#

why you here then? ..

surreal quarry
#

idek

#

2 monitors

static zealot
#

same but still xD

chilly jungle
#

alright so after dicking with eclipse for a half hour

static zealot
#

did what now?

#

clip is a sinner xD

chilly jungle
#

i deleted the jetbrains shit out of my m2

#

updated to the dev build

#

and it got annotations

#

from papi

static zealot
#

clip if no one is checking can you check #staff-chat please? if you're not busy of course

ocean quartz
#

ugh why do we procrastinate?

onyx loom
#

true

#

dilemma: ive taken over the chatreaction expansion. as its written in java, is it worth me rewriting it in kotlin as im more familiar with it?

ocean quartz
#

I don't think so

prisma wave
#

2mb expansions are kinda

#

ew

onyx loom
#

yeah thats where the dilemma comes from

prisma wave
#

it can't be more than like

#

100 lines

onyx loom
#

134 🙂

prisma wave
#

close enough

onyx loom
#

but then again

#

this code is kinda yuck

prisma wave
#

🤔

ocean quartz
#

You can make Java be less yuck

prisma wave
#

yeah still not worth it imo

onyx loom
#

by making it kotlin 🙂

#

i mean theres nothing wrong with the code tbh

prisma wave
#

yeah but kotlin good java bad

#

sooo

onyx loom
#

exactly

#

2mb expansion?

prisma wave
#

nah

#

not worth imo

onyx loom
#

😦

prisma wave
#

get papi to shade kotlin stdlib fingerguns

onyx loom
#

imagine

#

or get pdm to work with papi fingerguns_reversed

prisma wave
#

it might work

#

kind of

#

well

#

maybe not

#

¯_(ツ)_/¯

#

actually...

onyx loom
#

😳

prisma wave
#

it could probably work fine if you had a java class that ran PDM, and then delegated the placeholder requests to a kotlin class

#

that could work

#

the problem is really getting past all the kotlin generated stuff rather than pdm itself

onyx loom
#

just get papi itself to use pdm

#

ez fix

prisma wave
#

i like that idea

onyx loom
#

papi v3 😳

#

ik ur in that channel mr mitten 😳

prisma wave
#

👀

onyx loom
#

make it happen

prisma wave
#

indeed

#

hmmmm

#

they don't actually talk about v3 that much 😦

#

kinda boring

onyx loom
#

😠

#

bring the pdm conversation upon them ASevil

prisma wave
#

how's that

onyx loom
#

fantastic

prisma wave
#

i'll leave it there

#

add a bit of mystery

onyx loom
#

🙂

#

now we wait thonk

prisma wave
#

what could go wrong?

onyx loom
#

nothing at all

prisma wave
#

exactly

onyx loom
#

ive never heard of such bugs where pdm doesnt relocate properly and it might affect 100k users

prisma wave
#

bugs? no such thing

#

it's flawless software

onyx loom
#

perfection

prisma wave
#

truly flawless

onyx loom
#

if i have only 2 arguments that i need to get from a string, would it be better/cleaner to split it instead of using subStringBefore/After?
itll result in more lines, but will have less chars on those lines

quiet depot
#

@prisma wave what would the point of pdm be in papi 3

#

im confused

frail glade
#

I don't think pdm is needed for papi3

onyx loom
#

so we can use kotlin in expansion without it being 2mb fingerguns

frail glade
#

Jar size doesn't matter

quiet depot
#

kaliber you could do that in papi 3 without pdm

onyx loom
#

omg

quiet depot
#

dependency downloading would be ez to implement with the jar system

onyx loom
#

omg

quiet depot
#

not that it'd be officially supported

#

use the internal components at your own discretion

onyx loom
#

so

#

when is papi 3 thonking

quiet depot
#

yes

onyx loom
#

☹️

frail glade
#

Precisely

prisma wave
#

Interesting

timber birch
#

does anybody have the nuvotifier discord server?

onyx loom
#

isnt it just moss discord?

timber birch
#

think so, do you have that link?

onyx loom
timber birch
#

nevermind, found it ty anyway

onyx loom
#

👍

prisma wave
#

Oh no

#

The EVIL operator

quiet depot
#

yeah I mean !! bad

#

but that method is also entirely useless

#

just override getPlugin

onyx loom
#

ur useless

quiet depot
#

or it might be getRequiredPlugin

#

whichever isn't deprecated

onyx loom
#

getRequiredPlugin ye

keen creek
obtuse gale
#

Just use a command lib lol, unless your making one in which case you gotta add it into the command map I think

#

which I think needs reflection

rustic hedge
#

We all need

#

PlayerCheatEvent

#

In our spigot versions :/

regal gale
#

Lol

weary wagon
#

who is really good with plugins were having item id issues with legacy

obtuse gale
#

Just ask your question

weary wagon
#

im trying to add a gui in 1.8 but the item ids for glass panes dont work because there item id is all the same in 1.8 for stained glass pane

#

scroll to 160 if your confused

obtuse gale
#

does 1.8 even have stained glass lol?

weary wagon
#

yes

obtuse gale
#

its 6 years old and people still use it smh

old wyvern
#

The damage specifies the color

weary wagon
#

pvp is better

#

and nostalgia

obtuse gale
#

subjective but ok

old wyvern
#

where in x:y
x being item ID
y being damage

weary wagon
#

Caused by: java.lang.IllegalArgumentException: No enum constant org.bukkit.Material.160:10 a

old wyvern
#

What are you using

weary wagon
#

ssx

old wyvern
#

No what method are you calling

#

Dont use Material.valueOf

weary wagon
#

Caused by: java.lang.IllegalArgumentException: No enum constant org.bukkit.Material.PURPLE_STAINED_GLASS_PANE

old wyvern
#

I already linked you that

#

Type is STAINED_GLASS_PANE when in legacy versions

weary wagon
#

yes

old wyvern
#

Make sure you have the right dependency if you are using 1.8

weary wagon
#

but no variable so i cant add to gui

#

it just turns to white

old wyvern
#

Mate look at the constructor once

ivory gale
#

quick question thou legacy id 160 and new id is by name which should i use

#

magenta pane glass

old wyvern
#

You dont have those in 1.8

#

Specify the right version for your dependency

ivory gale
#

what would you use for your id value then

#

?

#

1.8.8

#

is the server

ivory gale
#

that makes it white

#

i want purple or a different colour

old wyvern
#

damage

#

ItemStack constructor

#

Already answered this

#

Its specified in damage

#

not material

steel heart
#

the 1.8.8 has a constructor taking a byte which represents damage or durability

#

If you plan to make your plugin multi compatible, consider using XMaterial from xseries

weary wagon
#

i understand so what would i use for an item id as an example?

versed ridge
steel heart
#

Item id?

#

That’s just an alternative for Material?

weary wagon
#

yes

#

i need to place it here

#

0: # Item in 6th slot action: 'none' online: item: 'PURPLE_STAINED_GLASS_PANE' data: 0 enchanted: false name: '' lore:

weary wagon
#

it needs to be a letter value

#

still doesnt tell me what value i should use for purple stained glass

old wyvern
#

🙃

weary wagon
#

ditto

old wyvern
#

Mate

#

There is no "Purple_stained_glass_pane" in 1.8

#

What you do have

#

is

steel heart
#

new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)13);

old wyvern
#

a Stained glass pane

#

with a damage

#

that represents the color

steel heart
#

You’d change the 13 to purples number

weary wagon
#

so i inset this Material.STAINED_GLASS_PANE, 1, (short)13

steel heart
#

Depends if 13 is the number to make it purple

weary wagon
#

fyi this is for a config file not a jar file

steel heart
#

For the record this channel isn’t exactly made for help

weary wagon
#

what is

steel heart
#

Wait you’re configuring a plugin?

weary wagon
#

yes

steel heart
versed ridge
#

bruh

obtuse gale
#

bruh

regal gale
regal gale
hot hull
#

@somber tulip Peculiar name HexiTextLib

obtuse gale
#

frcsty

#

this things too hard I think

hot hull
#

Hm?

obtuse gale
#

idk it just seems really hard to actually get something basic working lol

hot hull
obtuse gale
#

gradlew - if you have the wrapper

hot hull
#

wut

obtuse gale
#

do you have gradle installed?

quiet depot
#

lol noob

#

aj

#

if he's using init

obtuse gale
#

i KNOW

quiet depot
#

he obviously isn't using the wrapper

#

init is to get the wrapper

obtuse gale
#

I didnt look at the thing lol

quiet depot
obtuse gale
#

I just saw gradle is not recognised

hot hull
#

Thanks porkchop

#

And Aj, just don't give up, it'll be cool in the end fingerguns_reversed

#

And it'll be a massive flex

obtuse gale
#

it seems hard tho lol

#

not just hard as well - just a massive pain in the ass

hot hull
#

I mean yea, but would it not be cool?

#

Worth the effort imo

obtuse gale
#

ehh

hot hull
#

wdym ehh

quiet depot
#

what'll be cool?

obtuse gale
#

armour stand/pets lib

quiet depot
#

oh

obtuse gale
#

I think the idea was like you could implement something and add new joints for the animal and stuff

quiet depot
#

lol me & yugi were talking about this in #development just a couple of hours ago

hot hull
#

Stop stealing my ideas weeb

hot hull
quiet depot
#

ur dumb

#

you copied the guide exactly

#

and I specifically said not to do that

#

oh

#

i lied

hot hull
#

bruh wdym

quiet depot
#

I didn't explicitly say not to do that

#

I just implied it

hot hull
#

Do what exactly?

quiet depot
#

ur paths are different

#

u installed gradle 6.5.1

#

and added gradle 6.5 to the path

hot hull
#

Oh shit didn't even see that

quiet depot
#

i can add a warning if you'd like, saying "Do not copy the values in the images"

hot hull
#

The paths match and it still doesn't recognize it, wut

split talon
#

Time to throw the whole computer out and get a new one

hot hull
#

Wanna buy me a new one?

#

Cause I'll record throwing it out the window if you do fingerguns_reversed

quiet depot
#

uh

#

open a new terminal

#

or source the new path

heady birch
#

So I rewrote my gradient system

#

It looks alot nicer

#

But its less efficient

#

I'll probably profile see how good/bad it is

#

only difference is gradients exist by themselves and have no relation to length e.g

#

so the interpolation has to calculate some things more often

#

probably miniscule

#

or a wrapper

split talon
#

I’ll buy you a $100 chromebook @hot hull ❤️

#

Niall wraps so much we should start calling him Santa Claus

hot hull
#

@quiet depot Still not recognizing the command

quiet depot
#

then u dun goofed

#

show me ur path

heady birch
#

Niall wraps so much we should start calling him Santa Claus
@split talon 😐

hot hull
heady birch
#

I use literally two wrappers in the whole codebase

split talon
#

Is there a space after the 6.5. Or am I crazy

heady birch
#

Make it 4 if you count inheritance

hot hull
#

You're crazy Jax

quiet depot
#

frosty idk what that is

#

but it definitely wasn't on the guide

split talon
#

That’s what my therapist says but I think she’s lying

hot hull
#

It's windows7, shit is different than win10

solemn coyote
quiet depot
#

I honestly doubt this specific part has changed

#

go to environment variables

obtuse gale
#

eclipse

#

🤮

quiet depot
#

and take a screenshot

hot hull
quiet depot
#

look for something called PATH in system variables

#

might not be caps actually

hot hull
#

It's caps

quiet depot
#

k well

#

that's where it goes

#

like I said on the guide

#

this doesn't change across windows versions

hot hull
#

Ah I see, yea it has some weird ass formatting

quiet depot
#

it's just paths separated via a semi colon iirc

#

delete that gradle variable

hot hull
#

Works now, sheesh

quiet depot
#

follow the guide 4head

hot hull
quiet depot
#

show me yo path

#

and open a fresh terminal

hot hull
#

gradle -v works fine in a bash, just IJ doesn't recognize it

regal gale
#

Restart IJ then?

errant geyser
#

How do I push to GH via CLI if I have 2fa enabled? I'm getting "authentication failed" every time, the user and password are correct, but I don't get sent an auth code, and there's no option to enter one

regal gale
#

For most, use File -> Exit on IJ

errant geyser
#

ohk apparently I gotta create a personal access token and use that as a password, thank god for GH docs

hot hull
#

Which import is this? Because it's trying to import

JavaVersion.VERSION_1_8

quiet depot
#

it’s from groovy

hot hull
#

@quiet depot You can't say this doesn't look nice fingerguns_reversed

    @Override
    public void onEnable() {
        registerCommands(
                new MobsClearCommand(),
                new SpawnerCacheClearCommand(),

                new SpawnerGiveCommand()
        );

        registerListeners(
                new SpawnerEnableListener(),
                new SpawnerPlaceListener(),
                new SpawnerStackListener(),

                new MobSpawnListener(this),
                new MobDeathListener(this)
        );

        WRAPPER.getStorage().load();
        WRAPPER.getActivation().run();
        WRAPPER.getEntityDrops().loadDefault();
        WRAPPER.getSpawnerTypes().loadDefaults();
    }
obtuse gale
#

java

regal gale
#

@obtuse gale suffer that then ^

split talon
#

Heresy

quiet depot
#

@hot hull but it doesn’t look nice

hot hull
#

How so

quiet depot
#

so much going on

heady birch
#

Another wrapper frosty

errant geyser
#

https://github.com/katsumag?tab=overview what do you guys think of the profile readme? I'm aware its cringe af but I didn't know what else to write, so I asked some people for opinions and ended up with this

prisma wave
#

quite nice

#

how did you get the github stats thing?

errant geyser
#
<img align="left" alt="My Github Stats" src="https://github-readme-stats.vercel.app/api?username=katsumag&show_icons=true&hide_border=true" />```
prisma wave
#

interesting

errant geyser
#

It actually updates too

#

Which is cool

prisma wave
#

very cool

#

something else that's cool is the dokka updates

#

these actually look sick

errant geyser
#

dokka?

prisma wave
#

the kotlin documentation tool

#

javadoc for kotlin

#

they gave it a massive UI update

#

with support for interactive examples and stuff

#

looks great

errant geyser
#

oooo

#

Sounds fancy

hot hull
#

@heady birch Okay, Santa Claus

surreal quarry
#

index doesn't generate in the docs folder with dokka 😦

hot hull
#

Anyone have any suggestions when it comes to making my own block triggers? Ie. Replicating the spawner activation system

distant sun
#

@foggy pond any updates about your hex plugin? :0

surreal quarry
#

Getting

> List is empty.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.```
when i try to use dokka on a multimodule project

build - https://paste.jaims.dev/apomojuxeb.cs
build scan - https://scans.gradle.com/s/nf2go5qbqp6am
Any ideas?
heady birch
#

That looks nice

foggy pond
#

@distant sun When was the issue popping up? What plugin were you using Iridescent with?

hot hull
#

He was using Kiteboard

distant sun
#

^

#

I wasnt actually using it anywhere because that error was spamming the console

foggy pond
#

Can you send me Kiteboard's config.yml?

#

Or not config.yml

#

Wherever you define how the scoreboard looks like

#

The resource is premium I can't test it myself thonking Hope I can help you without getting the plugin myself

heady birch
#

Klyser

#

Let me find the conversation

#

Ah nvm

foggy pond
#

I mean it looks like KiteBoard supports hex colors itself (better than Iridescent does), so idk why you would use my plugin for that 😂

heady birch
#

Kiteboard sets the prefix & suffix to null in some cases

distant sun
#

..

heady birch
#

In kiteboard 3.2.2 I no longer do this and use the default IChatBaseComponent

foggy pond
#

Oh KiteBoard is yours Niall 😂 I just saw that

distant sun
#

I wasnt using Iridescent with KB

foggy pond
#

Wat

heady birch
#

To fix this temporarily just the the prefix & suffix board isnt null

foggy pond
#

WHy were you asking ME

#

I am confused

distant sun
#

That error filled the console smh

#

And I thought I should report it to the author smh

heady birch
#
private IChatBaseComponent baseComponentOf(final String legacyText) {
        if (legacyText == null) {
            return ChatComponentText.d; //returning null interferes with protocol lib
        }

        return new Adapter_1_16_R1KiteChatComponent(legacyText);
}
hot hull
#

Anyone have any suggestions when it comes to making my own block triggers? Ie. Replicating the spawner activation system
fingerguns_reversed

foggy pond
#

I mean if you don't use Iridescent with the scoreboard, just disable the scoreboard iridescent colors in Iridescent's Config.yml

distant sun
#

Mkay

#

Is the plugin OS?

hot hull
#

Niall, mind showing me the code for the chat component :))

foggy pond
#

It's not but in one of the next updates I will make it OS

hot hull
#

Ayy OS good

foggy pond
#

Just gotta make sure that it looks clean

#

I don't wanna be judged too harshly sad_fingerguns

distant sun
#

Can you add me to the repo?

hot hull
#

Klyser dw, if someone doesn't like it, they'll pr anyways lmao

foggy pond
#

pr?

heady birch
distant sun
#

Pull request

heady birch
#

If u use it at all just mention its from kiteboard

#

also its nms

#

so its version specific

foggy pond
#

It's a util class

#

Where there is just util methods

heady birch
#

Not too bad

distant sun
#

you can also use static block ig

foggy pond
#

I need an instance of my plugin in my methods in the class hence that injectMainClass()

heady birch
#

But generally a util class shouldn't depend on the plugin

distant sun
#

Im so proud of you klyser

foggy pond
#

Why thoe

distant sun
#

You use <#rrggbb>

foggy pond
#

That is correct? Why wouldn't I be using that 😂

hot hull
#

Gaby, gimme regex for that one

distant sun
#

And I said im proud of you smh

foggy pond
#

Thank you thank you sorry 😢

distant sun
#

check my gist, im on phone

foggy pond
#

Regex for what

distant sun
heady birch
#

Should I upgrade to <#>

#

Atm I use &#

foggy pond
#

I think it looks cleaner

errant geyser
#

Klyser couldn't you just use JavaPlugin.getProvidingPlugin() instead?

distant sun
#

YES @heady birch

foggy pond
#

Cause you can see where the color's hex ends easily

heady birch
#

Eh I'll just add a converter

hot hull
#

I mean honestly just add support for multiple Niall

heady birch
#

I never really ever remove a feature

distant sun
#

<#18a28b>A<#f1816d>B<#8cd850>C > &#18a28bA&#f1816dB&#8cd850C

foggy pond
#

I don't like &#ff00ff as it looks very crowded imo

heady birch
#

It just gets removed from documentation and I keep compatibility within the plugin

distant sun
#

Good good

foggy pond
#

I allow for users to change their own formatting

#

The default is <> but if they don't like it they can change it

distant sun
#

And then you remove it 😈 Niall

errant geyser
#

Klyser couldn't you just use JavaPlugin.getProvidingPlugin() instead?
Rather than your injectMainClass method?

foggy pond
#

Whoa

#

😮

#

I never heard of that method

hot hull
#

It's when you don't wanna use DI, but know static is disgusting

distant sun
#

Have you found it frosty?

heady birch
#

Have you tried a DI container?

hot hull
#

On mobile so haven't even checked Gaby :p

foggy pond
#

But it makes sense for this class fingerguns

distant sun
#

Have you tried a DI container?
@heady birch whats that

hot hull
#

Thanks

heady birch
#

spring

#

pico container

#

guice

distant sun
#

Ah

#

Np frosty

foggy pond
#

private static Iridescent plugin = (Iridescent) Iridescent.getProvidingPlugin(Iridescent.class); is it really this easy :0

distant sun
#

do you have to cast it?

foggy pond
#

Yep

#

Returns JavaPlugin

distant sun
#

There's a method that returns your plugin instance

#

probably getPlugin

foggy pond
#

getPlugin()

#

Yeah true

surreal quarry
#

with ChatColor.of is that only for bungee or spigot too?

hot hull
#

@foggy pond Use JavaPlugin.getProvidingPlugin(Iridescent.class)

heady birch
#

I'll release Colour.java soon

hot hull
#

Not
Iridescent.getProvidingPlugin(Iridescent.class)

heady birch
#

Its an awt wrapper with hsb, rgb, 3digit,6digit hex, and bukkit support

hot hull
#

Niall, I wanna see that chat component more than colour.java fingerguns_reversed

foggy pond
#

Why Frosty

heady birch
#

Bro I sent it

foggy pond
#

also why not JavaPlugin.getPlugin()

hot hull
#

Which ever of the two, but iirc you won't need to cast

foggy pond
#

Oh nvm I know why

ocean quartz
#

getPlugin requires the name, the class is better

heady birch
foggy pond
#

both require the class

#

Forgot how that T is called

hot hull
#

Oh damn thanks Niall, I assume each version is different?

heady birch
#

Yeah

#

Are you gonna use it?

hot hull
#

Might in FJ

#

Since it's so much more efficient

foggy pond
#

I am triple checking that I am not infringing any of Java's principles n shit before making it OS

heady birch
#
/**
 * A class that considerably speeds up the process of building an IChatBaseComponent
 *
 * (c) Niall7459 2020
 * (c) KiteBoard, KiteSoftware 2015 - 2020
 */
#

Just put that at the top

#

😄

hot hull
#

Yea no worries

heady birch
#

But yeah its version dependent at the moment

hot hull
#

You're already linked as contributors on FJ

distant sun
#
/**
 * A class that considerably speeds up the process of building an IChatBaseComponent
 *
 * (c) Niall7459 2020
 * (c) KiteBoard, KiteSoftware 2015 - 2020
 */

@heady birch "Stole from kiteboard"

heady birch
#

Nah hes aloud

#

Lmao

hot hull
#

Adapted from KiteBoard Gaby

#

Ctrl + C + V'd from KiteBoard fingerguns_reversed

heady birch
#

Just annoyed I have to basically duplicate this for each version

distant sun
#

Nmshit

heady birch
#

I'd like to drop everyone under 1.16

#

Just to focus on everything since then

#

Also Kiteboard is s**t on 1.8

#

I have no idea why

#

But it just seems to skip random frames

#

And Id like to keep 1.12 support myself so I can actually test

#

I'd only run 1.16 if i need to specifically test 1.16 features

dusky drum
#

hm

foggy pond
#

is ConsoleCommandSender the console?

distant sun
#

Yes

foggy pond
#

(Checking if the command is ran through the console)

#

Okay

#

I had forgotten

heady birch
#

Normalize 👏 Annotating 👏 Your 👏 Code 👏

signal tinsel
#

Hm

#

My grandma has a wifi network ending in 5G with name

heady birch
#

😳

signal tinsel
#

But we dk where jt comes from

dusky drum
#

in wall

heady birch
#

Yo how do I hide the coverage text in IJ?

split talon
#

“The issue will clear up in prod once you’re working with live data. No worries.“

errant geyser
#

What's the correct usage for JavaPlugin.getProvidingPlugin() if I don't have a main class for that

#

Like the class to pass in

distant sun
#

Hmm?

heady birch
#

you need one

#

a plugin class

errant geyser
#

So how does Matt do it in MF-GUI then?

ocean quartz
#

JavaPlugin.getProvidingPlugin(BaseGui.class), the plugin that loads this class gets loaded in

foggy pond
#

Is it difficult to have a public repository for my plugin

#

I tried doing it once and it was very confusing

errant geyser
#

oh cool

#

Klyser you mean a Maven repo or GH? Both of those are pretty simple

foggy pond
#

Maven repo I mean

errant geyser
#

Not that hard

#

Most of us use a Sonatype Nexus

foggy pond
#

My plugin's got the tiniest API ever but wanna make it easy for people

distant sun
#

Can simply use jitpack I guess

heady birch
#

now im wondering

foggy pond
#

Shoudl the plugin's resources be on github lol

#

I think I messedu p

#

I don't remember

errant geyser
#

¯_(ツ)_/¯

distant sun
#

If you are talking about resources folder, yes

foggy pond
#

god damn it

errant geyser
#

If you want to host it on my nexus I'll give you some creds for it, otherwise use Maven Central or Jitpack or smth

foggy pond
#

I don't think I can delete directories on github right

#

Yikes

distant sun
#

you can somehow

#

git rn -r folderor smth, look on google because one command remove it from both, repo and local

foggy pond
#

should I add src/main/resources/* to my .gitignore

distant sun
#

No

#

Push them to github

#

How else would someone be able to buid & use your plugin

foggy pond
#

So the resources folder should be there wahat

old wyvern
#

Yes

foggy pond
#

yall playing tricks on me

distant sun
#

Yes

foggy pond
#

grr

surreal quarry
old wyvern
#

You should only not add the IDE files

ocean quartz
#

It's faster

distant sun
#

I just use it in general

old wyvern
#

like .idea in IJ

surreal quarry
#

oh really?

distant sun
#

.idea, build and a few more

old wyvern
#

mhm

ocean quartz
#

My tests were about 40ms for String#replace and 1/0ms for StringUtils#replace

distant sun
#

.idea/
.gradle/
build/
out/
*.iml

#

Btw do you create .gitignore before or after git init?

errant geyser
#

I do it after

#

¯_(ツ)_/¯

foggy pond
#

SPIGOT is down

#

GODDAM N

#

what it's back up

#

Fmf cloudflare shit

surreal quarry
#

what would you guys say is best for kotlin guis

heady birch
#

Desktop applications?

#

Just standard JavaFX or Swing I guess

surreal quarry
#

looks pretty good

#

ill check a few things out tho

#

ty

errant geyser
#

Added Javadocs to IAL, this is an example, the newItem function. What do you think?

prisma wave
#

You should clarify why it returns an Optional

hot hull
#

Because ew null