#dev-general

1 messages · Page 541 of 1

half harness
#

lol nice 👍 if you are then also check out KFoenix - that's what I'm using to make everything look pretty

humble silo
half harness
#

and use a game engine if you're looking to make a game

humble silo
#

lol, i wasnt gonna make a game, but noted

half harness
humble silo
#

ReactJS?

half harness
#

I've heard of it but i have no clue what it is

#

oh have you heard of JavaFX?

humble silo
#

ah ok, well its like a component based html css js replacement kinda? all in js

humble silo
half harness
#

oh

humble silo
#

never used it though

half harness
#

if you want java 15+ support you'll have to modify the build.gradle a bit though

humble silo
half harness
#

and TornadoFX master branch only supports java 8 compilation

humble silo
#

oh wow its actually written in kotlin too

half harness
half harness
humble silo
#

huh cool

half harness
#

It also supports FXML (so scenebuilder and CSS too)

#

:))

#

and if you don't like FXML you can use just code itself, i'd recommend fxml if you're making menus though

humble silo
#

lol never heard of that, but ya menus is what ill be working on

half harness
#

FXML is just XML but for JavaFX

#

i think

#

¯_(ツ)_/¯

humble silo
#

Ill hit you up when i start working on the thing thatll use it!

#

lol

half harness
#

lol

#

👍

#

😄

humble silo
#

Alright see ya

half harness
#

cya

vast canopy
#

thx

#

So it's reverse domain split in two. Interesting

half harness
vast canopy
#

Yeah I use com.GargatheOro.whatever usually

half harness
#

lowercase*

vast canopy
#

I just find it odd IJ splits it in two

#

Why lowercase

half harness
#

wdym splits it in two?

half harness
vast canopy
#

Eclipse you just type out all three elements

half harness
#

just like classes being uppercase

vast canopy
#

com.gargatheoro.advancedelections

half harness
#

yea sometimes it's just groupid.artifactid

#

GroupIDs and ArtifactIDs aren't specific to intellij btw

vast canopy
#

Ahh

#

I am migrating from Eclipse to IJ so idk 😄

half harness
#

iirc u said u were using gradle?

#

or was it someone else

vast canopy
#

It was me

onyx loom
half harness
#

ya gradle uses the groupid and artifactid

onyx loom
#

and its technically kebab case

half harness
#

well packages are java conventions, but ig

#

¯_(ツ)_/¯

#

since he sent his package name

#

but

#

idk

#

uihwajkds

half harness
onyx loom
#

well it could be the group id + artifact id

vast canopy
half harness
#

yea ik

vast canopy
#

Also Eclipse had some shortcuts for importing and cleaning/reformatting

#

What are they on IJ?

#

cntrl shift O for import and cntrl shift F for cleaning on Eclipse

#

F seems to be some sort of find function on here

half harness
#

and yes Ctrl + F = Find, Ctrl + R = find & replace

#

oh and Ctrl + Alt + O cleans up unused imports @vast canopy

vast canopy
#

Thanks

#

Damn no auto import 😦

#

Another reason I use Eclipse instead of IJ lol

half harness
#

¯_(ツ)_/¯

#

plus you're not gonna be importing frequently

#

since tab completion auto-imports (as long as you press Enter to autofill)

#

better tab completion than eclipse 😌

onyx loom
#

alt + enter????

obtuse gale
#

^

half harness
#

but eclipse's import system is faster

#

ignoring the tab completion :))

obtuse gale
#

there is no "import everything" shortcut, as there may be collisions in class names (different packages) and you'd have to go one by one to resolve them anyway

half harness
#

iirc in eclipse you'd have to type a . for the tab completion to appear, for example variable.<tab completion>, so the import keybind becomes really useful

obtuse gale
#

i kinda like that ngl

half harness
obtuse gale
#

o

half harness
#

ya, shows a list of the packages

#

and you choose which one to import

obtuse gale
#

yeah but eclipse lets you force compile by default

half harness
#

lol

obtuse gale
#

which is disastrously hideous

half harness
#

I wouldn't be able to live without immediate live tab completion

#

😛

obtuse gale
#

so skipping compile time errors is somehow better than some fancy completions?

#

🥶

half harness
#

lmao

#

i mean

#

okay

#

maybe not

#

xD

obtuse gale
#

I was literally clueless when I first saw an error at runtime related to a compilation failure

half harness
#

🤣

obtuse gale
#

Weirdest thing is that the message was oddly descriptive

half harness
#

the thing is

#

eclipse warns you

#

if theres an error while compiling

#

im 99% sure

#

it's been quite a while since I've used it

obtuse gale
#

Yeah but it's an error, not a warning

#

It shouldn't even let you skip it

half harness
half harness
obtuse gale
#

"lol"?

#

What's so funny

half harness
#

;-;

#

also isn't there a way to disable it?

obtuse gale
#

Yes, in one of the building/compiling screens

#

There's a checkbox, idk if it's ticked on by default but the one screenshot I saw, it was ticked lol

obtuse gale
#

🥲

eternal compass
#

Is there a way to compile / execute java code at runtime?

#

Or would I need to build a custom interperter

#

Mapped to actual java

obtuse gale
#

Why though

#

This totally screams to be exploited

eternal compass
#

For runtime testing

#

as in I need to see what value works somewhere

#

I'd build a plugin that can call any method

#

Via a command

obtuse gale
#

Gotta be very careful with that though

eternal compass
#

Ofc

obtuse gale
#

Incredibly cautious

eternal compass
#

For my test server only

#

(Which is in docker)

obtuse gale
#

Ah okay lol

humble silo
eternal compass
humble silo
#

kubernetes!

eternal compass
#

Thats called k8?

humble silo
#

k8s

eternal compass
#

New to me

humble silo
#

because there are 8 letters between the K and S

eternal compass
#

Fair

#

And no, no K8s

#

Just a panel of mine

#

Ptero

humble silo
#

Docker is so cool, and i havent had any major issues with it yet so i dont totally hate it!

eternal compass
#

Its a game panel

humble silo
#

oh lol, never heard of it

eternal compass
#

really? Wow

#

Very popular

#

Most hosts use it

humble silo
obtuse gale
prisma wave
#

Are placeholder expansions Turing complete

static zealot
#

?

old wyvern
#

I guess so, yea

prisma wave
#

Incredible

old wyvern
#

😌

#

burple truck bm

prisma wave
#

Thanos car

jovial warren
#

that is fucking cursed

static zealot
#

exposed

old wyvern
#

😮

steel heart
#

Bukkit Coding Tutorial 😌

old wyvern
#

Must be the one from the brister mitten person!

steel heart
#

Lmao yeah it has to be, clearly

cinder flare
#

I'm tryina learn how to use the debugger 🥲

steel heart
jovial warren
#

currently trying to work on a tree rendering application, just for a bit of fun, and currently I have this: test1 ├──testSub1 │ ├──testSubSub1 │ ├──testSubSub2 │ └──testSubSubSub1 │ └──testSubSubSub2 │ ├──testSubSub3 │ ├──testSubSub4 ├──testSub2 test2which is great, but I can't quite figure out what the formula is for appending those horizontal bars, I want them to also go in between the testSubSub2 and testSubSub3 parts of the tree, so it looks like this: ```
test1
├──testSub1
│ ├──testSubSub1
│ ├──testSubSub2
│ │ └──testSubSubSub1
│ │ └──testSubSubSub2
│ ├──testSubSub3
│ ├──testSubSub4
├──testSub2
test2

#

nvm, got it

#
test1
├──testSub1
│  ├──testSubSub1
│  ├──testSubSub2
│  │  ├──testSubSubSub1
│  │  ├──testSubSubSub2
│  │  └──testSubSubSub3
│  ├──testSubSub3
│  └──testSubSub4
└──testSub2
test2
```think I kinda nailed that
quiet depot
#

@jovial warren what’s wrong with gnu tree

jovial warren
#

didn't know it existed, and kinda just wanted to see if I could make my own

#

it's literally 6 classes with probably less than 100 lines of code lol

quiet depot
#

you called your version “tree”

#

how could you not have known tree existed

jovial warren
#

nah it's called tree-creator

quiet depot
#

but tree is in the name

#

tree is a basic linux command

jovial warren
#

oh you mean that

#

yeah ik that exists ofc

#

tree is for listing directories though

jovial warren
#

what are you doing that at?

prisma wave
#

classes

#

ofc

steel heart
#

It’s just Brister Mitten being Brister Mitten 🥲

sly sonnet
#

Mrister Bitten

prisma wave
#

that's where the name came from

#

mostly

old wyvern
#

Mister Britain right?

prisma wave
#

"Britton" originally, but yeah

#

My history teacher when I was 13

old wyvern
#

ah

#

lol

ocean quartz
#

Mister Bri'in

prisma wave
#

Bri'un

old wyvern
#

I read that as "Mister Berlin" for some reason

prisma wave
onyx loom
#

@prisma wave can u make a discord bot in python for me

old wyvern
#

Haskell, take it or leave it!

onyx loom
#

but he said any language 🙁

old wyvern
#

Any language in this list

- Haskell
onyx loom
#

programming languages at their finest

prisma wave
#

Unfortunately

onyx loom
#

💀💀

distant sun
#

What about crystal?

prisma wave
#

Never used it before but probably

#

Would like to try it

#

Ruby seems really easy so

distant sun
#

Whats crystal even used for

#

Dont say jewlery @ocean quartz

old wyvern
#

statically typed ruby

ocean quartz
#

Apologies, yesterday was pretty busy
Hmm I don't think i've ever used the host thing, so can't help with that part
Though if you're using static don't you need to install it?

ocean quartz
distant sun
#

Noob

errant geyser
# ocean quartz Apologies, yesterday was pretty busy Hmm I don't think i've ever used the `host`...

I couldn't find anything to install for it. I have it working now using

        route("/assets") {
            static {
                resources("css")
                resources("images")
                resources("js")
            }
        }
``` routes before the static blocks. I'm currently trying to make a form submit to a route (`/subscribe`), which works fine, but when clicking submit I get redirected to `/subscribe` which rightly returns a 404 since there's nothing there. The form request is handled successfully, but do you happen to know how I can stop being redirected on submit?
prisma wave
#

it's what typescript is to javascript

ocean quartz
#

It probably auto installs static when it's called, similar to routing, but normally features are installed with install(Static)
Do you do any redirecting on it? Is it something from in the html or the call itsef? @errant geyser

distant sun
#

I see

obtuse gale
#

Crystal's a nice name for a hooker though

errant geyser
onyx loom
jovial warren
#
interface Builder<B : Builder<B, N, T>, N : Node.Builder<N, T>, T>
```jesus fucking christ almighty lol
ocean quartz
errant geyser
#

Oh, sorry I should've said. I changed action to onsubmit and now it works as intended. Thanks a lot anyway

ocean quartz
#

Oh yeah xD

hot hull
#

Am I missing anything or?

obtuse gale
#

io.papermc.paper

hot hull
#

Yea saw that, still nada

obtuse gale
#

You need to compile against Java 16

hot hull
#

Was using java 15 yoikes

prisma wave
#

By default, cloud uses a FactoryDelegatingCaptionRegistry, which allows you to override the exception handling per caption key.
what the heck

nvm im dumb i forgot that inheritance was a thing yikes

eternal compass
#

BM apparently thinks $500/command is an affordable price lmao

#

(For a discord bot)

onyx loom
#

well yeah, why is it not?

eternal compass
#

@prisma wave what do you have to say for yourself?

prisma wave
#

you are a scammer

eternal compass
#

Elaborate?

prisma wave
#

all discord bots need commands

eternal compass
#

Not mine obviously

#

I said no commands

#

(He said $500/command for a 100% .bat discord bot)

half harness
#

btw is it weird if i put commands that ill probably have in every one of my discord bots in my command lib?

#

so that i dont have to copy and paste it throughout all my bots
(and you can choose if you want it ofc)

eternal compass
#

Only like help makes sense there

half harness
#

also other cmds such as ping, eval, etc

eternal compass
#

You have eval commands?

half harness
#

ya

eternal compass
#

Seems like it could be a security flaw if something messed up

#

Well.. ig not

half harness
#

i only let myself use it

#

but is this idea a good idea?

#

to add commands already into the lib

eternal compass
#

I'd say help and none others, but thats me

half harness
#

hmm

eternal compass
#

I'm gonna trip on those staircases

half harness
#

lmao

outer prawn
#

Hello, I am currently coding a small plugin where I will need several "int" variables except that these are variables that are shared between all players on the server which is not wanted. The problem with that is that I don't know how to make these variables become "personal". Can you help me please
Thank you 🙂

prisma wave
#

don't use static

half harness
#

wat

half harness
outer prawn
half harness
#

wat

prisma wave
#

objects > maps

#

when applicable

half harness
#

uh

#

oh

#

i didn't see the word several

#

i mean i guess u can make a POJO or whatever it was called

#

so that u dont need a million maps

eternal compass
prisma wave
#

yes

#

but

#

it's a bit more OO

stuck harbor
half harness
eternal compass
distant sun
#

Interesting how String#join uses StringJoiner which is basically a StringBuilder lol

prisma wave
#

So @ruby dew

#

Have you ever heard of functional programming before?

#

it's certainly rather niche

#

Ok dead chat

static zealot
#

lmao

prisma wave
#

I'd start monologuing if there was a multi still

static zealot
#

@frail glade can we get 1 more multi? XD we've been good boys

frail glade
#

Isn't the one I did earlier still going?

#

=multi

compact perchBOT
#
Your XP Multiplier:
static zealot
#

nah

frail glade
#

Ahh I guess not

static zealot
#

its been gone for like half an hour now

frail glade
#

Maybe later when I'm back

static zealot
#

well actually just 20 minutes

#

well later we won't have things to talk about 😢

#

well I Won't have thing sto talk about

frail glade
#

Yeah but why would I use my personal spin when I'm not around?

static zealot
#

ah

#

was not talking about personal one

#

just a random oneb

#

the 10k members spin

#

xD

#

bcz we didn't get enough of them

frail glade
#

Oh is that why Cube did so many of them?

onyx loom
#

10k spins for 10k members

static zealot
#

yeah

#

piggy also gave the 10th k user

ocean quartz
#

=flex

compact perchBOT
#
<:discord:699228850537889854> - HelpChat Stats

Here are some guild wide stats for your eyeballs. :eyes:

XP Generated:

xp20,860,686

Level Ups:

levelups 22,119

Pastes Created:

pastes 54,392

Commands Ran:

commands 136,823

Images Generated:

images 75,746

Words Scrambled:

words 66,572

Total Messages:

messages 4,530,062+

Guild Members:

members 10,002

Date Created:

calendar Mar 29 2016

static zealot
#

a free iphone 12

ocean quartz
#

Ayy pog

frail glade
#

That's a lie. Piggy doesn't have any money.

static zealot
#

he did tho

#

look there ^^^

#

I really was hoping he'll make it an embed

#

and make the [click here] clickable

#

and it would take you to some random website. or maybe a rick rolpl

ocean quartz
#

Isn't that a thing on mobile?

frail glade
#

In other news, I just re-enabled artifact browsing on my Nexus. I spent the last day reworking some of their plugins that bundle with the software to hide uploader IPs because that's not something you can disable by default.

static zealot
#

o

#

nice

#

in other news, I moved to chrome then decided to move back to firefox

#

even on linux it sucks

frail glade
#

I think I just use Brave.

static zealot
#

I Was just browsing the EssX repository on github and it was just randomly lagging and crashing

onyx loom
#

bad pc

half harness
#

hi glare

#

😄

#

no wave sticker this time

#

☹️

static zealot
#

but firefox is still better

#

if it works on my pc

frail glade
#

My work gave me a laptop and it's better than my own laptop OMEGALUL

#

But I can't do anything on it cause it's all locked down 😦

onyx loom
#

pain

half harness
#

lmao

frail glade
#

My laptop has like an i5 in it and this laptop they gave me has an i9.

static zealot
#

well you can dual wield

half harness
#

just take apart the laptop and replace the components :))))))))))))))))))))

static zealot
half harness
#

hey mine is i5

static zealot
#

and a 920MX nvidia gefroce

half harness
#

my pc

static zealot
#

yeah but my i5 is old gen

half harness
static zealot
#

lemme check

half harness
#

ive got i5 3450

static zealot
half harness
#

it sucks

static zealot
#

and now I can play minecraft at almost 100 fps

frail glade
#

Adios people. If I don't see you again today, have a great day!

half harness
#

:))

static zealot
#

i forgot what I used to see my components

#

lmao

static zealot
#

🥲

#

nah

#

it doesn't run online

#

I'm to lazy to download it

half harness
#

😩

#

ofc it doesn't run online

static zealot
#

also what use?

#

wanna compare?

#

or what

half harness
#

yea

#

wanna compare

static zealot
#

ok alr

#

will download it

half harness
#

make sure u dont have like 10 apps open though xD

static zealot
#

it doesn't seem to be for linux tho

half harness
#

oh nooo

#

aw

#

rip

#

ok

static zealot
#

its an .exe

#

yeah

prisma wave
#

wine

half harness
#

🍷

static zealot
#

yeah wine sucks

prisma wave
#

it's not that bad

static zealot
#

for me it is

#

it doesn't even go to the size of my big monitor

#

when I make it full screen there's like 2 lines one at the bottom one on the right

#

and the rest is the size of my small monitor

#

also the loading speeds

#

are trash

#

I just tried to open epic games and it almost crashed

#

idk

#

my laptop might be very bad. I Don't disagree with that

#

but still

tropic cypress
#

If someone knows 100% of Java but nothing about Minecraft, what does they need to know to code plugins?

cinder flare
#

the spigot api

#

and I severely doubt you know 100% of java

static zealot
#

well

tropic cypress
#

I didn't say I know

cinder flare
static zealot
#

this is the post

tropic cypress
old wyvern
tropic cypress
#

what

old wyvern
#

😌

static zealot
#

that's how I Feel rn

old wyvern
tropic cypress
#

I don't know what the hell are you talking about

#

it is beyond my math skill

cinder flare
old wyvern
#

😌

cinder flare
#

plus it looks better with math notation

#

that font really hits different ngl

tropic cypress
#

what ngl means

cinder flare
#

not gonna lie

tropic cypress
#

thanks

static zealot
#

btw if u want just google <word> urban dictionary

#

first link will always tell you

cinder flare
#

lmao

static zealot
#

👍

tropic cypress
#

thanks

static zealot
# cinder flare lmao

well if you're not english you don't know those stuff, so you have 2 ways of learning it. Ask and possibly get laughed at for not knowing it (bcz people don't care if you're english or not) or google

#

lmao

cinder flare
#

i mean urban dictionary is a hot meme

static zealot
#

🥲

old wyvern
#

😌

tropic cypress
#

what's in the mouth of the blonde girl in your avatar?

cinder flare
#

i dunno a stick or something lol

distant sun
#
class Cooldown(
    id_: String,
    var start: Long,
    var expiration: Long
) : Cloneable {
    val id: String = id_.lowercase()
}```
Since I can't have something like `this.id = id.lowerCase()` like in java, would this be a bad replacement?
tropic cypress
#

ok

static zealot
#

what I've seen kaliber do

#

is have a method

#

instead

#

well it was for a player

#

but same thing

onyx loom
#

eh

cinder flare
#

you can override a getter and setter

static zealot
#

u had in CombatStats

#

oh right also that

#

something like

onyx loom
#

i is confusion

distant sun
#

I mean inside the constructor or whatever @cinder flare

cinder flare
#

you can have init blocks p sure

distant sun
#
public Cooldown(String id) {
  this.id = id.toLowerCase();
}```
This ^
static zealot
#

don't remember exact thing

#

but u had something similar

cinder flare
distant sun
#

I need it to be public but with private setter

cinder flare
#

you can override the setter

onyx loom
#

ud have to put it in a field to do that star

cinder flare
#

it already is?

distant sun
#

I searched for that but is not possible for constructor arguments

cinder flare
#

oh well

#

just make it a field then

old wyvern
#

btw gaby

#

I dont think you need to name it id_

distant sun
#

I know I can use id but then I will need id and this.id

cinder flare
#

ya that's better

#

id_ is like python style

old wyvern
#

no no, you wont have to

cinder flare
#

oh yeah it can probably shadow

old wyvern
#

id when assigning to id will be the parameter one

distant sun
#

I see

gusty fulcrum
#

can someone advise what would be the most efficient way of creating an auto rankup system? Ranks will be determined on the players level (not asking for spoon feed just a guide in the correct direction)

steel heart
#

Define efficient

gusty fulcrum
#

well structured & lag free with a heavy load of players

steel heart
#

I mean, are you going to code this yourself solely?

oak coyote
#

Keep data in memory at least short term to avoid mass modifications, or use a good database hook and ensure you only do your checks once and when necessary

steel heart
#

Anyways I would use something like LuckPerms so I don’t have to care about storage myself

#

LuckPerms is also scalable horizontally so that fixes most of the trouble

gusty fulcrum
steel heart
#

Anyways the auto rank up system shouldn’t be too complicated

half harness
#

if i type git --version it works

#

;-;

ocean quartz
#

Git Gud

half harness
#

and if i press the X it appears right back

ocean quartz
#

Check the IJ git settings

half harness
#

IT SAYS DETECTED_ _

#

WHYajnds

#

oh

#

its not popping up anymore

#

ok

#

woah

#

anyone know what the blue means?

#

blue/green

#

i've always seen it yellow, red, or green

#

oh it just means modified

#

rip yellow

#

idk why it hchanged

#

lol

ocean quartz
#

Yellow is uncommitted, red is new file, blue is modified

#

It was always like that

obtuse gale
ocean quartz
#

Oh yeah green is staged right?

half harness
#

oh

#

i've never seen green before

obtuse gale
#

staged

#

that i always forget about lol

#

more to do with the word itself

steel heart
#

Emily u purple

obtuse gale
#

yes?

#

since like

#

it's been a while

steel heart
#

yeah best color

#

well pink is better but myeah

obtuse gale
#

i like this one

#

it's smooth

#

booster pink is a bit too hm,

#

harsh? idk

steel heart
#

hmm yeah I feel that too

#

this one is arguably more relaxed or something in that way

#

man, why would one implement an annotation/@interface

obtuse gale
#

?

prisma wave
#

guice does it with @Named

#

So you can do Named.named(something)

#

I think

obtuse gale
steel heart
#

ah

#

thats pog

obtuse gale
#

"Tuples in Java" @prisma wave lol

hot hull
#

Ew

obtuse gale
#

Ikr lmao

hot hull
#

Where does one find motivation to start coding again

obtuse gale
#

All the way down in the bottom of the abyss

hot hull
#

I mean

prisma wave
prisma wave
#

Not even circlejerking

#

It is good for curing burnout

ocean quartz
steel heart
distant sun
#

Lombok ??

old wyvern
#

Yea, just dont select it lol

distant sun
#

Horrible

#

And I thought spring is good, ew

old wyvern
#

You dont need lombok to use spring

distant sun
#

Ik but it is there!!

old wyvern
#

Also, why are you using the web initializer

#

Intellij has one built in

lunar cypress
#

Spring is cancelled

#

lombok smh my head

old wyvern
distant sun
#

It is a video yugi

old wyvern
#

oh lol

distant sun
#

xD

#

@lunar cypress is your pfp from a movie or so?

lunar cypress
#

yes

distant sun
#

Name?

ocean quartz
prisma wave
#

😌

old wyvern
#

😌

lunar cypress
distant sun
#

Why does the perl logo looks like an onion lol

ocean quartz
#

Upside down redish

distant sun
#

Onion

ocean quartz
#

Amazing movie

lunar cypress
#

yep

hot hull
#

What movie is that

ocean quartz
#

Kung Fury

hot hull
#

Worth the watch, or will I die of cringe

lunar cypress
#

absolutely worth

#

it's the most serious movie out there

hot hull
#

I'll take your word for it

steel heart
#

xdd

#

I humbly request you to remove those emotes

prisma wave
steel heart
#

Ikr

#

its beautiful

#

true fulfillment

prisma wave
#

@static zealot 😌

static zealot
#

alr 👍

onyx loom
#

ah yes

prisma wave
#

😌 😌 😌

static zealot
onyx loom
#

what trend

static zealot
#

of things being in the wrong place

onyx loom
#

oh i see

#

makes sense

static zealot
#

yo is there somewhere where I can find the hex or rgb value of java.awt.Color colors?

#

oh wait

#

I can just google cyan srgb I Think

#

xd

old wyvern
#

Thats a "break" not a "bend"

steel heart
#

lol

static zealot
#

@half harness where u at?

#

yo @eager fern decided I Don't need sleep anymore. if u still wanna play couple games xD

#

oh wrong channel

#

discord bad

obtuse gale
static zealot
#

discord sometimes just doesn't switch the channel

#

like it switches for a sec

#

then switches back

obtuse gale
#

god please forgive me

#

i did a terrible, terrible thing

#

and it works

steel heart
#

🥴

sweet cipher
#

How could you do that

obtuse gale
#

i'm using a ThreadLocal to use an object that would be a local variable, but there is a lambda in a field that would use that local variable so i gotta make it a field somehow, and since it's a process that can be triggered from many threads i resolved to using a ThreadLocal

#

someone kill me already

#

please

steel heart
#

PES_Blush 🔪

quiet sierra
#

glad I'm on it with my cursed pics

prisma wave
#

🥰

neat obsidian
#

Does EzPrestiges have an event for when someone prestiges ?

static zealot
#

EzPrestigeEvent

#

listen for that

neat obsidian
#

k thanks ❤️

neat obsidian
static zealot
#

don't think so

#

u need to import the jar

neat obsidian
neat obsidian
static zealot
#

you do it like with any other event

#

you have a class that extends Listener

#

and a method with the EventHandler annotation

neat obsidian
#

its just slandered events, ok

onyx loom
#

implements 😊

neat obsidian
#

also true lol

old wyvern
#

deriving 😊

neat obsidian
#

Thanks for the help 🙂

static zealot
#

same thing

#

almost

steel heart
#

Hello fellow helpchaties

#

I would like to formally introduce to the objectively true concept that everything is an object

#

Anf yes even primitive s

old wyvern
steel heart
#

Woman as man, yes

#

They’re just objects

#

Like everything else

steel heart
#

To put it simply, you’re an object

prisma wave
timber oak
#

Forgot how to make a repo into a git repo
fatal: not a git repository (or any of the parent directories): .git

static zealot
#

git init

timber oak
#

ty

#

If a server runs as a paper jar I should also make the plugins with paper right?

static zealot
#

not required but you can take advantage of all the stuff paper added

timber oak
#

Yeah, but if a server runs as a spigot jar I shouldn't use paper to make the plugin? Because I might include some code that doesn't exist in spigot right?

static zealot
#

yeah Ig. Idk how paper made it work. I know for async teleport and stuff like that it will work just fine even if you use paper's method

#

but for the new events and stuff idk

onyx loom
#

or u could say fuck u to the spigot users 🤡

static zealot
static zealot
#

was that with just PaperLIB?

obtuse gale
#

PaperLib does that yes

timber oak
#

Is there any reason for a server to use spigot instead of paper?

obtuse gale
#

It is not API, it's a whole other library

static zealot
#

no Valdemar

timber oak
#

kk

static zealot
#

someone said that a while ago in development or osmething

obtuse gale
#

Nope

static zealot
#

I didn't look into it

obtuse gale
#

If the API isn't there, it just isn't, it'll throw an error

static zealot
#

ok my bad 👍

old wyvern
#

What is PaperLib for?

timber oak
#

Anyone knows how to set this up to build faster? Starting a Gradle Daemon (subsequent builds will be faster)

static zealot
#

it adds the stuff from paper and just uses spigot stuff if you're not on paper

old wyvern
#

ah alr

static zealot
#

for example teleportAsync if you're on paper otherwise uses the teleport from spigot

timber oak
cinder flare
#

It does incremental builds once you've built it once

static zealot
timber oak
#

Ohhh wait yeah

cinder flare
#

hence why it says "subsequent builds will be faster"

timber oak
#

Forgot what the word subsequent meant ngl lmao

hot hull
#

Star

timber oak
#

I know what it means now lol

hot hull
#

How FJ looking, we at 10k yet?

static zealot
#

notice he says We

cinder flare
#

just about yeah

static zealot
#

lmao

onyx loom
#

only 9967 to go!

timber oak
static zealot
hot hull
#

Kek

compact perchBOT
#
FrozenJoin
Information:

A Fully Customisable Join/Quit Message Plugin
Spigot
GitHub

onyx loom
#

hehe

old wyvern
#

Time to bot the download??

hot hull
#

Yes

cinder flare
#

that link is wrong kali

static zealot
hot hull
#

Do it Yugi, you won't

onyx loom
#

yoo thanks for stating the obvious guys

static zealot
#

star u should update it

cinder flare
#

boutta

old wyvern
#

Maybe

#

Ik its possible because someone did it to one of my old resouces at some point

#

And the staff blamed me 😄

#

How nice

static zealot
hot hull
#

@obtuse gale Consider multiplying your budget 3 or 4 times

static zealot
#

a lot of those are botted downloads

old wyvern
#

wow xD

static zealot
#

alr @cinder flare can I update?

cinder flare
#

ye

old wyvern
#

Mine reached around 150k before they reset it

static zealot
#

=update links

compact perchBOT
#
📎 Downloaded links!
Successfully downloaded links from github, atempting to reload links...
old wyvern
#

lol

compact perchBOT
#
✅ Links updated and reloaded!
All ready to use...
hot hull
#

Pathetic Yugi

old wyvern
#

lol

compact perchBOT
#
FrozenJoin
Information:

A Fully Customisable Join/Quit Message Plugin
Spigot
GitHub

onyx loom
#

😎

cinder flare
#

nice nice

obtuse gale
static zealot
#

the downloads went to 34 in the mean time

#

nice

cinder flare
hot hull
#

60 or even higher depending on how kek stuff would be to implement

obtuse gale
#

wew

cinder flare
#

if it took 4 hours, which would probably be on the fast end, that would be like $5 an hour lmao

timber oak
#

I thought you made it Star? lol

cinder flare
#

it's called FrozenJoin lmao

#

i just maintain it

timber oak
#

True lol

steel heart
#

@cinder flare

#

Hi

cinder flare
#

hey

ocean quartz
#

StarJoin

steel heart
#

You wanna maintain my superior plugin?

cinder flare
#

oh?

#

which plugin would that be

#

perchance

onyx loom
#

deluxeasyncjoinleaveplugin

cinder flare
#

ahhh

ocean quartz
#

Just the best plugin ever posted on spigot

steel heart
#

Yeah

old wyvern
#

@cinder flare
Hi

cinder flare
#

hey

old wyvern
#

You wanna maintain Jaimss's superior plugin?

onyx loom
#

😂

cinder flare
#

who's Jaimm lmao

steel heart
old wyvern
steel heart
#

@surreal quarry why u died btw

old wyvern
#

😄

onyx loom
#

😌

cinder flare
#

it has a docker-compose with rcon enabled lmaooo

old wyvern
#

Boiis, Jetbrains meeting in 1.5 hours

cinder flare
#

and it's paper 1.8 🥲

onyx loom
#

ok but like

#

check the code

ocean quartz
#

Why is this a valid groovy syntax? Just, why

obtuse gale
#

Lmao

potent nest
#

everything is valid groovy syntax

quiet depot
#

looks like regex

cinder flare
steel heart
prisma wave
#

Yeah I think it's a regex literal

old wyvern
#

Whats with the $ at the front and end?

quiet depot
#

I've seen it before in other langs I think

#

just convention ig

old wyvern
#

You only need the slashes for regex in groovy

#

oh

quiet depot
#

oh idk then

old wyvern
hot hull
#

Why am I getting bullied

hot hull
surreal quarry
steel heart
#

Oow

#

U work?

#

Like r u full time fang employee now?

surreal quarry
#

not full time but approx 20 hrs a week, and it’s summer so i’ve been like golfing and hanging out with friends and stuff

steel heart
#

Ah

surreal quarry
#

It’s actually a company that posted in req paid a while back lol

hot hull
#

This man said golfing

#

Okay grandpa

surreal quarry
#

don’t disrespect golfing

#

it’s so fun

hot hull
#

I need to go one day

surreal quarry
#

you should

hot hull
#

Where u work

surreal quarry
#

Vertmix

hot hull
#

Or better yet, what kind of work

surreal quarry
#

it’s like a startup in canada

#

different things but mostly mc plugins for different clients if theirs

hot hull
#

Ew mc

surreal quarry
#

yea but it’s pretty easy stuff most of the time and pays well

#

and i get to use kotlin 😩

steel heart
hot hull
#

I'm starting to hate mc development, it's too repetitive

static zealot
#

🥲 imagine getting paid for your work.
||I am complaining but also I Just got 4 avatars made for free lmao||

surreal quarry
#

yea it is frosty

hot hull
#

Imagine not getting paid for work

onyx loom
surreal quarry
#

basically…

static zealot
#

to be honest I haven't even tried to do any mc development in months other than working on deluxetags and deluxemenus.

surreal quarry
#

i’m writing a bedwars plugin right now 😂

hot hull
#

Gonna probably remove myself from mc and finish this goddamn world gen

#

The amount of ideas, yet no time

prisma wave
surreal quarry
#

Thank you for your condolences

hot hull
#

Which lang you cirklejerking now BM?

surreal quarry
#

MittenLang

static zealot
lunar cypress
#

He's been with Haskell for a while

static zealot
#

still haskell yeah

hot hull
#

Ah still on haskell I see

surreal quarry
#

it’s been months

#

i feel like he was on that one when i was active here

hot hull
#

Same

onyx loom
#

james and frosty dieded

prisma wave
#

haskell will live forever

surreal quarry
#

sadge

hot hull
#

Kali, I got a job now

#

Making moolah

onyx loom
#

discord is more important

surreal quarry
#

the only thing keeping me on the leaderboard was my 300 something daily streak but i lost it

hot hull
#

I'm active, just not here

onyx loom
#

wow 😔

static zealot
#

smh

lunar cypress
#

Where were you when frosty and james dies?

hot hull
#

Fun fact, I spent around 150$ on valorant skins lmao

onyx loom
#

nah but fr congrats frosty i hope the job is good for u

#

what job is this?

hot hull
#

I mean it's a summer job - cleaning service. But the pay is amazing, the job is easy, and I get to not be in my country

onyx loom
#

frosty the janitor

hot hull
#

Not exactly but yea I ain't complaining

onyx loom
#

🥲

static zealot
hot hull
#

We don't have these kind of luxuries, but I went swimming in Faaker See the other day

#

Was nice

ocean quartz
static zealot
#

I probably spent most in minecraft

lunar cypress
#

Faaker see is awesome

#

Been there twice I think

static zealot
#

and that's like 30-40 euros or something idk

#

I spent 5$ on fortnite when it was first becoming popular as well xD

hot hull
#

Where you from Johnny

lunar cypress
#

Berlin Germany

hot hull
#

Oh

lunar cypress
#

We went there on vacation a few years ago

#

Got some Austrian friends

hot hull
#

Yea the water was amazing

#

Plus the ducks are really nice :3

distant sun
#

@ocean quartzwhat was the link?

hot hull
#

How's the lady btw

distant sun
ocean quartz
hot hull
#

Heh

timber oak
#

Does NBT tags disappear if I set for example a tag on a bottle and then check in the ExpBottleEvent since it's an entity now and not an itemstack anymore

#

I set the tag when adding it to the inventory

#

As an ItemStack

hot hull
#

get the itemstack

#

from the entity

timber oak
#

How?

cinder flare
#

Entity#gimmeYourItemStack()

timber oak
#

Wat

cinder flare
#

lmao

timber oak
#

lol

#

I can't just do this can I? new ItemStack((ItemStack) bottle);

#

bottle is the entity

hot hull
#

nein

timber oak
#

thought so

cinder flare
#

well passing an itemstack to an itemstack constructor after casting something would be pretty weird regardless

hot hull
#

d;paper ExpBottleEvent

ruby craterBOT
#
public class ExpBottleEvent
extends ProjectileHitEvent```
ExpBottleEvent has 1 all implementations, 8 methods, and  1 extensions.
Description:

Called when a ThrownExpBottle hits and releases experience.

obtuse gale
#

the entity should have the NBT of the item though

#

that's like vanilla behavior

hot hull
#

smh

#

bruh

cinder flare
hot hull
#

Yea it will have, since it's the same object no matter it's casted state

timber oak
#

Hmm my method for checking doesn't work

obtuse gale
#

other than for PDC which writes to NBT

timber oak
#

This returns true no matter if the key is wrong

        if(obj instanceof Entity) {
            Entity entity = (Entity) obj;

            net.minecraft.server.v1_12_R1.Entity nmsEntity = ((CraftEntity) entity).getHandle();
            NBTTagCompound compound = new NBTTagCompound();

            System.out.println(nmsEntity.c(compound) + " TEST");
            return nmsEntity.c(compound);
        }
        return false;
cinder flare
#

oh god NMS

#

and 1.12 wtf

timber oak
#

Lol

#

the server runs that

cinder flare
#

no "lol"

#

what fucking server mate

timber oak
#

A bad one :))

#

But dont worry about it

#

Can you see what's wrong?

#

Other than using 1.12 ofc...

cinder flare
#

no because I have no clue what nmsEntity.c is

ocean quartz
#

8% 😬

cinder flare
#

also 1.12_R1?

hot hull
#

Please do use an nbt lib

#

cough mf-gui's nbt class cough

timber oak
#

Link?

#

Couldn't find a lib for NBT under 1.14

ocean quartz
timber oak
#

a good one at least

cinder flare
#

huh

ocean quartz
#

Yeah

cinder flare
#

md5 and his dumb version schema

obtuse gale
#

a lot of minor versions stay with the same revision number

cinder flare
#

not 1.16 🙂

#

we got 3

obtuse gale
#

and then rolled back to 2

#

then 3 again

sly sonnet
obtuse gale
#

md5 at its best

hot hull
#

wdym wxip, a true fucking beauty

cinder flare
timber oak
hot hull
#

ask matt

ocean quartz
#

I already linked it to him a while ago lmao

sly sonnet
#
/**
 * simple method to get instance of plugin
 * @return plugin (mostly)
 * @throws Throwable when it doesnt work
 * @since today
 */
public static Optional<Plugin> getInstance() throws Throwable {
    Optional<Plugin> emptyOptional = Optional.empty();
    SimplePluginManager plugMan = (SimplePluginManager) Bukkit.getPluginManager();
    Field f = org.bukkit.plugin.SimplePluginManager.class.getDeclaredField("plugins");
    f.setAccessible(true);
    List<Plugin> plugins = (List<Plugin>) f.get(plugMan);
    for (Plugin plug : plugins) {
        if (plug.getClass().getCanonicalName().equalsIgnoreCase(String.valueOf("dev.jaims.terribleplugin.Main"))) {
            instance = (Main) plug;
            return Optional.of(plug);
        }
    }
    return emptyOptional;
}
#

why

#

just why

hot hull
#

Because why not?

sly sonnet
#

@return plugin (mostly)

#

mostly

ocean quartz
#

Read the name of the plugin

hot hull
#

SimplePluginManager plugMan = (SimplePluginManager) Bukkit.getPluginManager();
this tho, makes me wanna yeet

#

Not the cast, but the name

timber oak
#

I just don't understand where this hasTagMethod comes from

        try {
            return (boolean) hasTagMethod.invoke(nmsItemStack);
        } catch (IllegalAccessException | InvocationTargetException e) {
            return false;
        }
#

I mean it's here but hasTagMethod = Objects.requireNonNull(getNMSClass("ItemStack")).getMethod("hasTag");

#

I dont get it lol

distant sun
#

that's called reflection

cinder flare
#

mmm invocation

hot hull
#

reflection go brr

ocean quartz
#

I was gonna rewrite that class well, but can't be assed

hot hull
#

I mean it works fine

#

Why change it if it's working

ocean quartz
#

Cuz it's ugly

cinder flare
#

yeah hey how come nobody has written an NMS library that just abstracts over every version from 1.8 to 1.17

ocean quartz
#

Too much work

cinder flare
#

that's true

timber oak
#

So I could include the entire class and then it'd work? Technically

ocean quartz
#

well

#

You'd need to include everything

timber oak
#

Yes in the class only though right?

#

Like not other classes

#

I also need the wrapper ig

ocean quartz
#

LegacyNbt, Pdc, NbtWrapper and if you want, ItemNbt just to be easier, that's all that is needed for 1.8 - 1.17

timber oak
#

Can I do it without implementing Pdc? Because the plugin is made in 1.12.2...

cinder flare
#

🥲

timber oak
#

Or even better, can I change mc version for the plugin now?

#

After creating it

cinder flare
#

of course

#

all you need to change is the dependency in maven/gradle and what target api version is in your plugin.yml

timber oak
#

Also, how can I find a list for the versions like this? compileOnly 'com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT' because I can't find it anywhere on google

prisma wave
#

😵‍💫

timber oak
#

lol

prisma wave
#

\😵‍💫