#dev-general

1 messages ยท Page 614 of 1

wind patio
#

why is maven so dogass

ocean quartz
#

Cuz maven

#

Use gradle fingerguns

wind patio
#

University ๐Ÿ’€

#

use maven, can't use others

#

how tf do I package dependencies into the jar with maven

#

wtf

ocean quartz
#

Shade plugin, then run mvn clean package

wind patio
#

why is pom.xml configuration for a single thing is like 200 lines long

#

when I can do the same with gradle in like 5

quiet depot
#

because maven trash

wind patio
#

lets gooo

sly sonnet
#

1st gradle 2nd maven

distant sun
#

even for a dependency, you have to write it on 5-6 lines

#

and 20 for relocations lol

quiet depot
#

"but gradle is too complicated"

wind patio
#

than god I switched to gradle because of that one post on helpchat web iirc

quiet depot
#

ur welcome

rugged spear
#

whats label is for?

#

should i use that ?

half harness
# rugged spear whats label is for?

label is used like this: ```
/label arg[0] arg[1]

The difference between that and `Command#getName` is that it gives what the user inputted, whereas `getName` always gives the actual command (instead of any aliases)

I personally use it in help messages, like ```kt
sender.sendMessage("/$label help - Show help message")
```for example
rugged spear
#

oh thanks

prisma wave
#

yea label will include aliases

distant sun
#

very nice

half harness
#

many command libraries don't support it tho :((

sly sonnet
half harness
#

or triumph cmd

#

idk what matt calls it

#

although to be fair the only use i can think of is help message

rugged spear
#

should use framework??

old wyvern
#

aliases?

ocean quartz
#

Getting the alias inside the command being called

#

Which i never found the use for

old wyvern
#

ah

potent nest
#

if you need it, you're basically building two different commands shrug_animated

wind patio
#

maven ๐Ÿ˜ฉ

empty pivot
#

what the mean Verified in authors on api extendedclip?

onyx loom
#

authors or the expansion?

umbral pendant
#

Can I change the row of this?

#
  divider_item:
    material: ''
    data: 0
    displayname: ''
    lore: []
static zealot
#

answered in #general-plugins and please stick to 1 channel when asking questions. ty

sly sonnet
#

Would DI be better than making getters?

half harness
#

static getters?

sly sonnet
#

yes

half harness
#

then yes

prisma wave
#

Oh so that's why it's called inversion of control

static zealot
#

yes

wind patio
#

why is lombok hated

cinder flare
#

?plsnolombok

compact perchBOT
#
FAQ Answer:

Why is Lombok bad?

  • It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
  • It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
  • Lombok'd code won't show in Javadocs
  • The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
  • Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
  • While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
  • Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
wind patio
#

basically less readable/debugable code iiuc, right

obtuse gale
#

also it's super hacky, it bootstraps itself as the compiler or hijacks it or some weird shit to do things the compiler doesn't allow

wind patio
#

pog

#

hacking ๐Ÿค“

cursive jolt
#

I like it because less code = less bugs

obtuse gale
#

less code = faster compile times

#

:thinksmart :

cinder flare
wind patio
#

well the only thing I'd be interested in lombok is less pain for getters/setters

cinder flare
#

lombok is fudging it in there

cursive jolt
#

Yeah, but less code to look through in the IDE is good

cinder flare
wind patio
cinder flare
#

and then you don't have a terrible dependency and a bunch of weird code problems

cinder flare
#

I use that a lot so that I can only focus on the code I want to look at

wind patio
#

just use less code ๐Ÿค“

cursive jolt
#

You can also do a @AllArgsConstructor and @Getter and @Setter to simplify everything

wind patio
#

ok so, three metas in helpchat so far

kotlin bad
lombok bad
maven bad

#

finna collect em all

obtuse gale
#

lombok is for those that secretly love kotlin but don't want others to find out

wind patio
#

kotlin = java + lobkok confirmed?

obtuse gale
#

or are in denial

#

closeted kotlin lovers start off by using lombok

rugged spear
ocean quartz
#

Well even lombok is bloated compared to Kotlin

rugged spear
#

i want to implement it

#

because the code used for display that is really ugly lol

#

or not hehe

inner umbra
cinder flare
#

the other two are very true though

rugged spear
#
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml```
#

lmao

inner umbra
rugged spear
inner umbra
#

Now I can see it

rugged spear
#

its cool??

#

player info๐Ÿ˜Ž

#

how to add papi?

rugged spear
#

tomorrow i will add papi api

cinder flare
#

ya could do it in like 20 minutes lol

rugged spear
#

but i have limited time to develop

#

so i can do other thing

sick belfry
#

so I guess protocollib also uses netty to intercept minecraft's packets?

cursive jolt
#

yes, via, protocollib, packetevents, protocolsupport, geyser, and floodgate all use netty

cinder flare
#

geyser ๐Ÿฅถ

fresh badge
#

Anyone speak spanish here? Contact me

rugged spear
#

geysernoice_devcord

steel heart
sweet cipher
gusty glen
#

I needed a software/website that let's you build a graph using the Cartesian system (from two or more points), then gives you what formula generates that graph. Do you guys know any tool that can do that?

urban sleet
#

Hi Helpchat

ocean quartz
#

Hello

static zealot
#

HI Chat!

sweet cipher
#

Hi

sick belfry
#

gorgeous

#

turns out that to me to set the owner of a skull I have to get that player, then get the UUID and apply it

#

or I can just use @SuppressWarnings("Deprecation") and skullMeta.setOwner(playerName)

#

yeah second option better

ocean quartz
#

d;spigot SkullMeta#setOwningPlayer

ruby craterBOT
#
boolean setOwningPlayer(@Nullable OfflinePlayer owner)```
Description:

Sets the owner of the skull.

Plugins should check that hasOwner() returns true before calling this plugin.

Parameters:

owner - the new owner of the skull

Returns:

true if the owner was successfully set

rugged spear
#

Helo

#

How i can do like %player_name% on config, with papi API

rugged spear
static zealot
#

@hot hull you don't mind me ripping of your action lib right?

#

I will credit you ๐Ÿ‘

old wyvern
#

Just rip him off

#

Its frosty

#

Thank you

#

๐Ÿ˜Œ

static zealot
#

well already did

#

just asked so I look nice

#

:)))

#

well technically I could just use his. well maybe not nvm

static zealot
#

ty โค๏ธ

agile galleon
gusty glen
# sweet cipher Desmos?

not exactly, this website is a graph plotter (it takes a formula, and displays the graph), I need an "inverse graph plot" (something that takes the graph, or more precisely, the points, and output the formula)

prisma wave
#

that seems tricky

obtuse gale
#

@sturdy magnet can you accept my friend request

prisma wave
#

there are infinitely many functions that satisfy a finite set of points lol

gusty glen
distant sun
#

Xy problem?

prisma wave
#

oh just a straight line?

#

thats easy then

#

y-y1 = m(y-x1) where m = dy/dx

gusty glen
# distant sun Xy problem?

I need to create a formula that, given a file size, it outputs a number that will be used as the socket timeout (client-side), in seconds, to give the server time to process the request (because the bigger the file is, greater the time needed to process it), and the time increases linearly, hence why I wanted to output some points (because I have experimented with some file sizes and extract the time the server took to process them).

hot hull
sweet cipher
obtuse gale
#

Taylor seriespausechamp

cunning oriole
#

So the current developer of the plugin named "UltimateCore" is looking for someone to buy the rights to the plugin and continue it as he doesn't have time to maintain the plugin and is abandoning it, here's what he said to me but if you wanna talk to him, his discord ign is ZubeySweet#8337, here's the plugin link - https://www.spigotmc.org/resources/โญultimate-coreโญ-skills-collections-enchants-pets-runes-alchemy-anvil-talismans-dragon-more.87116/

Here's what he said - https://ibb.co/KWD9VhL

sweet cipher
#

$800?

cunning oriole
#

you could proberbly try negociating it

#

currently its the only good hypixel skyblock like core in the market as far as I'm aware

cunning oriole
#

what

inner umbra
#

Add .png to your image link

#

NVM discord won't embed it.

half harness
obtuse gale
#

Epic embed fail

ocean quartz
obtuse gale
#

Yeah duh

half harness
#

i meant for him to change the link to that

distant sun
#

what plugin makes 800$/mo lol

agile galleon
#

i think its all of his plugins

#

15

#

plugins

dense dew
distant sun
#

who is that?

dense dew
#

author of Vulcan anticheat

half harness
prisma wave
#

my favourite game is VPS hosting

static zealot
#

well to be honest, you can host anything on a VPS or almost anything

#

so they're not wrong

#

they just give you the most lowlevel stuff xD

sick belfry
#

I was thinking

#

would it be possible to use github actions to deploy a build of the plugin when pushed to the testing server?

#

I dont test it locally because my pc is bad

#

if it can use sftp (actions) it should work

#

I guess

half harness
half harness
sick belfry
#

like I have server

#

and when I push to the repo it would build the jar and then using sftp send it to the server

sick belfry
#

just gotta do some sftp magic

#

actions*

sick belfry
#

wait what

obtuse gale
#

in paper Entity extends HoverEventSource

sick belfry
#

huh?

obtuse gale
#

and the client reads that and shows a nice hover tooltip

sick belfry
#

yeah

#

would that be what Origin Realms uses for the tooltips at the furniture shop?

obtuse gale
#

all i know about OR is their name and their insane resource pack system

#

nothing else

sick belfry
#

a sec

urban sleet
sick belfry
#

thought so

sly sonnet
#

Will ChatColor.translateAlternateColorCodes work if it would be used for ConsoleCommandSender?

obtuse gale
boreal needle
#

i'm working on a project and don't know whether to use mysql or mongo

onyx loom
#

both :)

quiet depot
#

what r u storing

boreal needle
#

user data, purchase history, app config

quiet depot
#

app config, per user?

boreal needle
#

global

quiet depot
#

mysql

boreal needle
#

theming and stuff

#

alright thanks

sturdy magnet
#

hello there
i am trying to make code that will on BreakBlockEvent ignore fortune enchantment, however i can't seem to figure it out how i can do this, i think this is tricky, is it?

distant sun
#

How does jetbrains annotations work? Are they replaced by some kind of preconditions at compile time?

boreal needle
#

they don't

#

theyre just for documentation and compile time error detection

distant sun
#

I see

steel heart
#

I believe thereโ€™s an option to turn them into what Lombokโ€™s nonnull does

potent nest
distant sun
#

Oh thats nice

sturdy magnet
#

any ideas how to ignore fortune enchantment on BlockBreakEvent?

rocky coral
#

If they have the fortune enchant

boreal needle
#

im working on a project atm that involves billing and donations for minecraft servers

#

i'm considering making it not work on servers that aren't in online mode

#

would that be a reasonable thing to do? if they're making money then they can afford to go buy the game

obtuse gale
#

bungeecord go brrrr

inner umbra
obtuse gale
#

But you can't guarantee it's either online or offline mode when it's hooked up to a proxy

inner umbra
boreal needle
#

pretty sure the messaging channel can be used for that

#

obviously bungee is the exception

#

i could check a uuid or something

inner umbra
#

Or just tell users offline isn't supported.

boreal needle
#

that is another option ig

sturdy magnet
#

what is entity type name of wither skeleton for mc 1.8.8-1.12.2?

obtuse gale
boreal needle
#

yeah

#

a uuid check is the best option imo

obtuse gale
obtuse gale
#

Good luck with online/offline hybrids omegaalul

boreal needle
#

what

#

why is that a thing

obtuse gale
#

Yeah there are plugins that do some hacky fucky and if you're legit it'll change your UUID during handshake or pre-login or whatever

boreal needle
#

christ

#

i guess it doesn't need to be foolproof, there's nothing stopping people just forking the plugin and removing the check

#

its more to make a point than anything

obtuse gale
#

Yeah

inner umbra
obtuse gale
#

wat

inner umbra
# obtuse gale wat

Create an offline player connection, send it to the proxy, if the player joins, the proxy is in offline mode, if not the proxy is in online mode.

obtuse gale
#

That's actually pretty clever

boreal needle
#

just finding the proxy ip is difficult

#

theres no telling if the given ip is public or if there's another lower-level proxy in front of bungee

#

and whitelists get in the way too

obtuse gale
#

Yeah firewall settings etc, hm

boreal needle
#

i think ill probably go down the uuid checking with this one, i don't need it to be 100% reliable

inner umbra
#

Wouldn't matter your if you use the main IP and it joins the proxy is offline

boreal needle
#

firewalls though

#

or ptero for example

#

or what if they're using 0.0.0.0

inner umbra
#

Doesn't matter

#

If the offline player connection joins the server... its in offline mode

boreal needle
#

how are you going to create that offline connection if you don't have an ip to connect to

boreal needle
#

...

#

have you been ignoring literally everything ive been saying

inner umbra
#

You use the IP that is used to join the server. You can get that from playerjoinevent using event.getHostName()

boreal needle
#

ah that is true

#

whitelists are still an issue though

#

whitelist checking happens before authentication

inner umbra
#

True. But IDK any whitelist servers that have donor shops anyways.

boreal needle
#

probably because theyre whitelisted

inner umbra
cinder flare
noble gulch
cinder flare
#

oh huh

#

you can just like, view the deobfuscated code in your IDE ya know

median cloud
#

can someone help me with making a youtoube short

#

I cant do it

inner umbra
cinder flare
#

yeah I was gonna do a ๐Ÿฅด

#

lmao

pastel imp
#

Just wanted to say... I am in love with MiniMessage. Okay, bye.

static zealot
#

LMAO

#

only 24 hours and you already fell in love? not surprised tho

pastel imp
#

specially the custom tag feature

terse wyvern
#

how to get 1.17 deluxe chat?

pastel imp
#

(Also, think there is only a build with 1.17 support, unsure lol)

#

I remember someone making their own chat plugin because deluxe chat didn't support 1.17

#

lol

static zealot
#

nah. bcz it didn't support hex

pastel imp
#

or that

wintry plinth
pastel imp
#

oh ye

#

mb

#

imagine is PAPI used the MM placeholder system

#

๐Ÿ˜ฎ

wintry plinth
pastel imp
wintry plinth
#

ohhh haha

dense dew
wintry plinth
distant sun
#

what would be a good lib for particle animations?

cursive jolt
ruby dew
#

ใ‚’wใฆใ‚ƒtsใซใ›

#

OMG

#

i meant wow thats nice

#

now i dont have to rack my brain and study packets version by version

quaint isle
#

Hello fellow internet users,
would you pay 49 instead of 39 bucks to go from 100mbps down / 40 up to 250 down 50 up?

Will the extra 150mbps download speed make my life noticeably better or is it waste of money?
I do move large files over the cloud frequently and play a couple games that have large updates every now and then, but I never felt like my current 100mbps connection was slow ๐Ÿค”

cinder flare
#

bro $10 a month

#

you live in a utopia

quaint isle
#

What if it's EUROS tho ๐Ÿค”๐Ÿค”

cinder flare
#

that's still awesome

#

my dad paid Comcast like $150 a month for that

#

ISPs are a scam and need to be regulated

#

oh maybe you live in a country where they are

quaint isle
#

Germany is actually quite expensive when it comes to internet compared to other European countries. But you're obviously right that 10 bucks isn't much given how much time I spend using the internet ๐Ÿ˜„

I'm not sure whether I need these additional 150mbps downstream tho or if it would feel pretty much the same.

pastel imp
#

Wtf

#

I pay 45 for 600mbps

#

(Euros)

#

Get scammed lol

potent nest
#

I'm paying 40โ‚ฌ for 1000mbps

pastel imp
#

You win.

boreal needle
#

that is insane

sly sonnet
#

im paying 20 for 600 up/down

#
  • television
#

๐Ÿ™‚

boreal needle
#

40โ‚ฌ here will get you 180mbps and that's just because im lucky enough to live on a ftth estate

primal crystal
#

< $2 here for 100mbps

dense dew
#

uwu $17 for 30/5

hot hull
#

Like 40 for 25/5

agile galleon
#

38โ‚ฌ 1000/100

quaint isle
#

y'all stop flexing ๐Ÿ˜ฉ ๐Ÿ˜ฉ

distant sun
#

pro devs, IDEA Ultimate

static zealot
#

here. better

#

screenshot

agile galleon
#

yes

#

IJ = PES_Heart

mental trench
#

Is favourite IDE discussion is allowed here?

quaint isle
#

I had to turn off this feature because people would laugh at me when it said "Playing PHPStorm" ๐Ÿ˜ญ ๐Ÿ˜

mental trench
#

hahaha! playing phpstorm

ocean quartz
half harness
#

๐Ÿฅฒ

mental trench
#

Thats good news Kapp

primal crystal
#

Is there anyone who still prefers Eclipse or Netbeans

ocean quartz
#

Eclipse yes, Netbeans only if your name starts with M and ends with 5

static zealot
#

MBlitzOffline5 ?

mental trench
#

Eclipse could be the best IDE ||if IDEA didnt exist||

agile galleon
#

oh no

inner umbra
mental trench
dense dew
inner umbra
#

Every time I watch someone use it, it crashes, throws errors when it shouldn't, lags etc...

dense dew
#

๐Ÿคจ

static zealot
#

yeah sounds like you never watched anyone use it lol

#

or only did once, it went bad and that was it

inner umbra
#

Nah I've seen atleast 30 people use it.

static zealot
#

I've been using IJ for over a year and never had major problems with it. and when I had, it was maven or gradle and refreshing dependencies usually was enough

inner umbra
#

Some newbies and others actually know what they are doing.

distant sun
#

I never encountered a crash wtf

#

And the only lag was caused by the GIGANTIC Material enum

inner umbra
static zealot
#

I have a pretty bad and old laptop and I don't think IJ ever crashed on it (at least I Don't remember it doing so)

onyx loom
#

the person ran out of memory ๐ŸŒš

dense dew
#

how JB IDE's works like its in Java (Kotlin) but you can run it as exe it use wrapper?

sweet cipher
#

Are you sponsored by eclipse?

distant sun
#

wdym xdd?

inner umbra
#

I'm sure if I was they would be mad at me for using such an old version xD

distant sun
#

nah they would be mad for using Eclipse

dense dew
distant sun
#

I mean, it is just an installer

#

and I believe that you can create executables with java

dense dew
#

(idea64.exe)

onyx loom
#

u can use stuff like launch4j

#

itll build an exe file for u

#

theres lots of methods

obtuse gale
#

I've had IJ open classes faaaaar larger than the Material enum with like 1gb of ram allocated to it and it worked fine
not gonna say perfectly fine because it does spin up the CPU a bit but when it loads it works fine lmao

distant sun
#

like what LOL, the material enum is like 10k lines long

obtuse gale
#

it's too large for gh to render so you have to see the raw file hell

dense dew
#

what is that lol

distant sun
#

touche

static zealot
#

just the imports take up more lines than my average class length xD

distant sun
obtuse gale
#

the great majority of this is generated code from templates lmao

distant sun
#

from templates?

obtuse gale
distant sun
#

1.13 MB ๐Ÿคฃ

dense dew
#

wtf what is that why

pastel imp
#

(Ik I am late)

obtuse gale
pastel imp
#

My school forces us to use netbeans....

distant sun
#

23 methods ๐Ÿคฃ

pastel imp
#

I will legit write a complaint

distant sun
#

btw em, what templates?

pastel imp
obtuse gale
# distant sun btw em, what templates?

i don't know where they're stored in exactly but I know all those Tuple<T> to Tuple<T1, ... T22>, same with Record, all the arguments etc etc is generated code

#

it's explained in their guides

distant sun
#

I see

abstract hearth
#

Everyone in year 1 had to use BlueJ

pastel imp
#

Tf is that lol

#

I will suppose its worse than netbeans

#

But netbeans sucks

#

Ngl, gonna write an email complaining about it

#

We shall use intellij

obtuse gale
#

ok but Dr. Java

pastel imp
#

confusion

obtuse gale
abstract hearth
#

Well after year 1 you can use whatever you want (they tell you to use IntelliJ, but you have a choice) so thatโ€™s nice I guess

pastel imp
#

We use this in our first year

#

Then we switch to netbeans

hot hull
#

Update on the shirt, 7โ‚ฌ for customs

static zealot
#

damn

#

that's exactly how much the shirt costs

#

lmao

#

pretty sure it says it on the package. or maybe 7.5 euros

hot hull
#

Nah the shirt is 6 lol

static zealot
#

lmao

distant sun
#

F

hot hull
#

I want the shirt so fuck it

static zealot
#

and they pay actual people

#

like they have a contract with an actual firm to take care of that kind of stuff

#

but hey its tax money anyways. I Don't have to pay am I right? xD

pastel imp
#

Lol

#

Fair enough

static zealot
#

Fortunately they didn't force us to use anything and even if they did I've been thru enough of these experiences to be able to tell a teacher to fuck off in their face

#

for legal reasons, the message above is not advice

pastel imp
#

For legal reasons, I will not publicly say I would do the same.

static zealot
#

well I guess except for all the communication platforms lmao

pastel imp
#

||(I would and did)||

static zealot
#

we got like 6 or 7

#

each teacher uses their own thing

pastel imp
#

Tf

#

Tell me one of them uses discord

#

At least that

static zealot
#

nah

pastel imp
#

GOD

#

Idk why teachers dont use it

#

Its 10x better than the rest

static zealot
#

is it tho?

#

xD

pastel imp
#

Even has student hubs

#

It is

static zealot
#

but is it really?

pastel imp
#

In my opinion it is

static zealot
#

also we have to use: wapp (for chat only), telegram(for chat only), zoom, google meet, whatever the microsoft meet app is (teams I think), and also a teacher is livestreaming it all on youtube (I actually love that bcz I can go back at any point and just rewatch the entire stuff)

pastel imp
#

Thats just cringe

#

Luckly we use Teams

#

For everything here

static zealot
#

well in theory we should be using teams only but only 2 teachers use it lol

#

well that and the elearn website

cloud gorge
#

I need someone to help me setup my domain that I've recently bought for my Minecraft Server, DM ME!

old wyvern
#

Does spigot transform classes before loading?

#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

old wyvern
#

Some jetbrains employee's discord got hacked

prisma wave
#

?

prisma wave
#

add api-version maybe

old wyvern
#

I did I think, let me check

#

Yea i have

#

api-version: 1.16

prisma wave
#

i know paper and maybe spigot also does some classloading stuff with event handlers

#

hm

old wyvern
#

Im on paper

#

And it seems to originate form Commodore#convert

#

That's luck's command library right?

prisma wave
#

i think so

#

not sure whats going on there

old wyvern
#

weird

#

It also crashes only on specific ways the code is put in

#

Also happened with shadowjar a bit earlier

#

Might be an asm bug

#

And.... its randomly fixed

#

Wonderful

obtuse gale
#

I dare you to read it

pastel imp
old wyvern
#

But my api-version is set to 1.16

#

Why does it need to transform it in this case

old wyvern
pastel imp
#

more specifically?

pastel imp
#

oh also, @wintry plinth should fix that xD

old wyvern
#

Not sure how to be more specific

pastel imp
#

lol

obtuse gale
old wyvern
#

Everyone over there is dissing jetbrains for hiring employees who cant manage basic cyber security

#

mass-ping + dm spam

prisma wave
#

they have a discord?

old wyvern
#

I had 1.16 set already before building

old wyvern
#

Sent you link

pastel imp
#

could you send me it too? pls

wintry plinth
#

Maybe Iโ€™ll just change the login page to dark too

pastel imp
obtuse gale
pastel imp
#

since you are using tailwind (I think)

#

you just can just the dark: tag

#

ez

old wyvern
wintry plinth
#

The dashboard auto switches, itโ€™s just the login/register that doesnโ€™t

pastel imp
#

oh mb, well, should be ez to fix

wintry plinth
#

yee

onyx loom
#

smh

pastel imp
#

just noticed, I am actually becoming quite active here lol

onyx loom
#

forcing light theme on us

wintry plinth
#

just login not changed

ocean quartz
wintry plinth
obtuse gale
#

(idk if that pinged, didn't mean to aaaaa)

obtuse gale
#

Nice

wintry plinth
sweet cipher
#

It says @

#

In the reply

agile galleon
#

the little @ before the original message author's name

obtuse gale
#

Doesn't show on mobile angrylarge

agile galleon
wintry plinth
#

oh i didnt know that

#

TIL

sweet cipher
ocean quartz
# obtuse gale Huh?

Ignore me I'm tired, I thought he was implementing luck's commodore into spigot
And you know you can ping me nerd patemily

obtuse gale
ocean quartz
#

Yeah mobile doesn't like it

wintry plinth
abstract hearth
#

Yknow, almost anything Microsoft does for developers is great
Almost anything Microsoft does for users is horrible

GitHub? Godlike
Skype? Dead
Visual studio ||code||? Great
Edge? Horrible ||or atleast was||
Typescript? Great
Teams? meh
Azure? Good
Minecraft ||bedrock||? wtf happened

distant sun
#

๐Ÿคฃ

#

I swear, teams is so shitty, I can't open images without trying three times, scroll doesn't work properly

abstract hearth
#

Iโ€™ve only used it like once and regretted life

distant sun
abstract hearth
primal crystal
#

Is windows that bad?

abstract hearth
#

Eh, depends on the time of day

distant sun
#

I love when it breaks after updates

abstract hearth
#

If it wasnโ€™t for Adobe Iโ€™d be on Linux

abstract hearth
# distant sun I love when it breaks after updates

Iโ€™ve been having a very fun loop of it bluescreening every 30-40 minutes, and never reporting the reasonโ€ฆ so in event viewer it just says โ€œdrive has a bad blockโ€
So I scan it with like 7 different tools and they all say itโ€™s good

#

So basically trying to fix a problem that I have no way of seeing

obtuse gale
#

MC Bedrock edition isn't that bad, it's just that there are many, many mechanics that are very different Shrug
And the performance is INSANE, credit where it's due

boreal needle
#

minecoins go brr

pastel imp
ruby dew
#

๐Ÿ˜‚ ๐Ÿ˜‚

ruby dew
marble plaza
#

Hello!
I'm trying to load location from configuration file from string, what format should I use and how to parse it to Location?
Currently I have: "world,1,2,3"
Any easy method to parse it to Location?

#

I guess I could split it...

#

But then again I need to convert all coordinates to doubles etc.
Any easy "oneline" method? :D

rustic herald
#

Hey, is their any placeholder that returns the player that command in chat that the player provided?

eager fern
#

No

#

Dont ghost ping weirdo

rustic herald
eager fern
#

no

#

not gonna help someone who does that sorry

#

learn the rules

rustic herald
#

sorry bro

#

can you help?

#

i haven't read the rules but i have seen and accepted them now

rustic herald
#

I mean that if a player provides a command like plugins

#

or help

#

i wanna return that command in the message the command plugins has been blocked

#

or the command help has been blocked

ruby dew
#

i think this is the event you are looking for

#

by checking if the command starts with /help in e.getMessage

rustic herald
#

i don't know how to use?

#

i am new in java

ruby dew
#

bruh

#

ok

#

In this episode, I show you how to listen for Minecraft events with event listeners, how to read Javadocs on a basic level, and how to work with the Player object. #Spigot #SpigotDevelopment

Code: https://github.com/Spigot-Plugin-Development-Tutorial/Event-Listeners-Javadocs-and-Players

โญ Kite is a free AI-powered coding assistant that will he...

โ–ถ Play video
#

skip to event listener in main class

rustic herald
#

my server version -1.8.8

ruby dew
#

then replace the on join event to the playercommandpreprocessevent

#
package yourmom;


public final class Events extends JavaPlugin implements Listener {

    @Override
    public void onEnable() {
        System.out.println("The plugin is starting up.");
        getServer().getPluginManager().registerEvents(this, this);
    }
    @EventHandler
    public void PlayerCommand(PlayerCommandPreprocessEvent event){
        if(e.getMessage().startsWith("/help or whatever here")){
          e.setCancelled(true);
          e.getPlayer().sendMessage("command /help is blocked you moron");

        }

    }
static zealot
#

Please someone tell me you recognise this sequence or at least the pattern bcz I Don't. what would come after?

#

oh nvm its going to be 4x1, 4x2, 4x3 and 4x4

#

man sometimes typing stuff down really helps

ruby dew
#

you work for fbi?

static zealot
#

yes

#

now I need to generate the first n numbers of the sequence. how the fuck would I do that?

#

If someone can help me with this problem in the next hour, I'd be very grateful. I have to generate the first n numbers of this sequence and I can't think of a way. My brain freezes when I'm under pressure ๐Ÿ˜ฆ

distant sun
#

is that the only example you have? 1 1 1 2 2 1 1 1 2 2 2 3 3 3

static zealot
#

yeah. but the sequence I'm pretty sure is just 1 1122 111222333 1111222233334444 etc.

#

but I have to generate the first n numbers (not groups) of the sequence

ruby dew
static zealot
#

well yeah but I have to generate the string as well. and I was thinking of a performant way. if my input is 3: I have to get 111 but my best option rn is I generate all those numbers so 11122111222333 and just get the first numbers or something like that. idk. I might've found a soultion tho

ruby dew
#

well i mean you have to get a storage thing,whether a list or a string to store all of them right

distant sun
ruby dew
#

jeez

#

this hard

#

i mean the maths

#

i have 0 iq

static zealot
#

yeah I get that. but I needed an algorithm to generate the first n numbers

#

like if for example the input is 3 I generate 111

ruby dew
#

its really hard if you want it to be performant to not allow even a string declaration
but shouldnt be a problem otherwise

potent nest
#

String#repeat

distant sun
#
final var n = 9;
final var builder = new StringBuilder();

for (int i = 1; i <= n; i++) {
    builder.append(String.valueOf(i).repeat(n)).append(',');
}

System.out.println(builder);```
> `111111111,222222222,333333333,444444444,555555555,666666666,777777777,888888888,999999999,`
ruby dew
#
    public static void main(String[] args) {
        System.out.println(firstN(2)); 
        
    }
    public static String firstN(int n){
        String plain = "";
        //main loop for each n index
        for(int i = 1;i <= n;i++){
            //for generating numbers in the tuple (1,2,3,4,5,6...n)
            for (int j = 1;j <= i;j++){
                //for repeat
                for(int k = 1;k <= i;k++){
                    plain = plain+j;
                }
            }
        }
        return plain;
    }
#

nailed it,but with only loops

#

cuz you probably arent gonna use library functions for algorithm

#

idk

#

you need space?

#

you alr? @static zealot

static zealot
#

Oh its done already. my bad. working on something else. ty tho!!

ruby dew
#

ok cool

distant sun
#

teachers often ask not to use methods ๐Ÿ™„

static zealot
# potent nest What

yeah. its an exam. my friends failed and I had to help them and I Did as much as I Could lol. and many many times they ask us to not even use the methods that come with the standard .net library

static zealot
#

but for input 3 I just needed 1112. I just needed to have a few extra checks

#

that's all

prisma wave
#

Lmao

#

The spigot community never fails to impress / disappoint

static zealot
#

yeah. but I wanted something more optimised since this would generate n^2+(n-1)+...+1^2 numbers and I would only take the first n numbers from that

prisma wave
#

Just do it lazily then ๐Ÿ˜Œ

static zealot
#

yeah exactly

old wyvern
# static zealot yeah exactly
public static int[] generateSequence(final int n) {
    final int[] result = new int[n];
    int index = 0;
    int i = 1;
    while (index < n) {
      for (int j = 0; j < i && index < n; j++) {
         Arrays.fill(
           result, 
           index, 
           Math.min(n, index + i), 
           j + 1
         );
        index += i;
      }
      i++;
    }
    return result;
}
static zealot
#

yeah a bit too late now xD. I did manage to make it work nicely tho

#

thanks tho

prisma wave
#

WHERE IS THE LAZINESS

old wyvern
#

yea ๐Ÿฅฒ , I wrote a bit, forgot and left it here, just remember now when i opened the channel

old wyvern
#

I am the laziness

#

Thank you

prisma wave
#

use a stream or i will kill you

old wyvern
#

๐Ÿ˜จ

modest river
#

Hi can you help me. My discord was hacked and someone change the email address

obtuse gale
#

?not-discord

compact perchBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

obtuse gale
#

@modest river ^

hot hull
old wyvern
hot hull
#

wdym what's wrong, you need glasses?

#

Animal.

old wyvern
#

eh?

#

i & j?

#

Thats usually what looping variables are named

#

index keeps track of the current index in the array

#

and result, is well, the result

hot hull
#

I know, however stop it. Get some help.

obtuse gale
#

wait 'till you find out about axis names in linear algebra

old wyvern
#

๐Ÿ˜Œ

#

i cap, j cap, k cap

pastel imp
#

@boreal needle No comments

boreal needle
#

what

#

webstorm is ๐Ÿ‘Œ

pastel imp
#

Just no comments

#

VSC do be better ngl

boreal needle
#

haha no

pastel imp
#

But well, no ide discussions here

#

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

boreal needle
#

ye

#

its basically intellij ultimate but without the java

#

i use it for work so cant use my student license and cant afford a full ij ultimate license

pastel imp
#

Oof, why cant you use your student license?

#

Should work

boreal needle
#

the terms say no commercial use

#

like im getting this software for free, the least i can do is show some respect to them

static zealot
#

VSC roflmao

#

cute emote

pastel imp
boreal needle
#

does it matter?

pastel imp
#

Idk does it?

boreal needle
#

its just not the right thing to do imo

obtuse gale
#

"it's not illegal if no-one knows" moment

pastel imp
#

^^

#

Facts

boreal needle
#

like not paying a very reasonable price for some world-class software that i will profit from just doesn't float with me

#

it's not exactly expensive for what you get

pastel imp
#

I can just use ultimate for study purposes aka studying how I will do it, then ctrl c ctrl v to community ver

#

Hehe

#

Ye I am speaking but I do have the paid version xd

old wyvern
#

its only like 6$ a month I think

pastel imp
#

Got it for free in a giveaway

#

Lucky af lmao

old wyvern
#

Not that they're going to sue you or anything most likely

boreal needle
#

more of a question of ethics than anything

old wyvern
#

Unless you have an extremely successful company and they think they can profit well from that lawsuit

pastel imp
#

Ye

#

I mean, am I wrong to use it if I got it for free?

old wyvern
#

You can use it for open source/personal work

pastel imp
#

(Not with educational license but in a giveaway)

old wyvern
boreal needle
#

if the license allows it, sure

static zealot
pastel imp
old wyvern
static zealot
#

well yeah. but in the case they do and they care at least a bit

old wyvern
#

Well I accidentally told their staff I use it for my work, they didn't really mind

static zealot
#

lol

old wyvern
#

So yes, Unless you're making a few thousands, they dont really give a shit

prisma wave
#

in most cases a business would prefer to just keep you as a potential customer rather than sue you or anything

old wyvern
#

Yes, a customer would prefer to just keep you as a potential customer

#

๐Ÿฅฒ

prisma wave
#

?

#

not sure what you're talking about mate! ๐Ÿ˜…

static zealot
#

what u talking about yugi?

old wyvern
#

brand loyalty at its best!

prisma wave
#

yea

#

same goes for adobe with their evil subscription model

old wyvern
#

๐Ÿ˜ท

prisma wave
#

it sucks ass but theyll usually cancel it if you contact them since it's more valuable for you to not hate them

#

and maybe because you could sue them for being evil

#

but

#

well

old wyvern
#

I gave up on even installing they who shall not be named but occasionally say yarred version of their stuff

prisma wave
#

they actually are

old wyvern
#

Mr. Robot season 5?

#

Hello elliot!

prisma wave
#

havent seen season 5 yet ๐Ÿ˜”

#

only up to like 3

#

but yeah

#

adobe can go to hell

mental trench
#

at the end

#

he dies

prisma wave
#

WHAT

#

!!!!

mental trench
#

||ironman||

prisma wave
#

dude

#

spoilers!!!

#

๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก

old wyvern
prisma wave
#

oh

mental trench
#

it sinks ||(the titanic)||

prisma wave
#

๐Ÿฅด

old wyvern
#

Season 4 is the only season we actually see elliot in (except his younger self)

prisma wave
#

what

old wyvern
#

exactly!

#

watch! it!

prisma wave
#

stop trolling me

old wyvern
#

Im not

mental trench
#

or maybe

old wyvern
#

They actually dont show elliot till s4

#

s4 last ep

#

or second last

#

I forgot

#

||Mastermind, Dad, Mom, and Younger self(? or brother, cant recall) go back||

static zealot
#

yugi I know I've asked like 10 times but can you repeat or relink me the message where you explained what was wrong with the js expansion performance?

static zealot
#

ty

wintry plinth
#

xo

distant sun
#

@jaunty maple you better remove that component example, looks painful ๐Ÿคฃ other than that, nice project

pastel imp
#

did someone say MiniMessage?

agile galleon
#

no

pastel imp
#

u sure?

#

like 100%? ๐Ÿคฉ

static zealot
#

@hot hull would you mind transfering the FrozenJoin github repo to

old wyvern
jaunty maple
#

@distant sun thats why you use paper with adventure :)

distant sun
#

Or just adventure

jaunty maple
#

Yep

#

May create a pure adventure module for OOB usage

distant sun
#

Oob?

jaunty maple
#

Out of the box

distant sun
#

Ah

wintry plinth
#

Ugh, I'm trying to build an SDK for a project, and not where to start for structure ๐Ÿ˜‚

wind patio
#

real question

#

mAven or mAYven

distant sun
wind patio
#

๐Ÿ’€

distant sun
#

07939939-b752-435f-874e-bc3611097285
nice uuid, looks like a phone number lol

wind patio
#

why you yoink my uuid

wintry plinth
#

With gson, I have a string with a date like 2022-02-15T21:40:14.000000Z, how can I fetch it and parse it as a date object within java?

distant sun
#

try this

#

d;gson GsonBuilder#setDateFormat

ruby craterBOT
#
public GsonBuilder setDateFormat(intย dateStyle, intย timeStyle)```
Description:

Configures Gson to to serialize Date objects according to the style value provided. You can call this method or setDateFormat(String) multiple times, but only the last invocation will be used to decide the serialization format.

Note that this style value should be one of the predefined constants in the DateFormat class. See the documentation in DateFormat for more information on the valid style constants.

Since:

1.2

Parameters:

dateStyle - the predefined date style that date objects will be serialized/deserialized to/from
timeStyle - the predefined style for the time portion of the date objects

Returns:

a reference to this GsonBuilder object to fulfill the "Builder" pattern

distant sun
#

huh

wintry plinth
#

haha

distant sun
#

d;gson GsonBuilder#setDateFormat(String)

ruby craterBOT
#
public GsonBuilder setDateFormat(Stringย pattern)```
Description:

Configures Gson to serialize Date objects according to the pattern provided. You can call this method or setDateFormat(int) multiple times, but only the last invocation will be used to decide the serialization format.

The date format will be used to serialize and deserialize Date and in case the java.sql module is present, also Timestamp and Date.

Note that this pattern must abide by the convention provided by SimpleDateFormat class. See the documentation in...

This description has been shortened as it was too long.

Since:

1.2

Parameters:

pattern - the pattern that dates will be serialized/deserialized to/from

Returns:

a reference to this GsonBuilder object to fulfill the "Builder" pattern

wintry plinth
#

Ah so I'd need to set my format there, and gson will auto give me a date format?

#

Essentially reading from an api, which gives a string like 2022-02-15T21:40:14.000000Z, need to be able to get that as a Date object

abstract hearth
#

Hmm I can either do the writing assignment thatโ€™s due on Monday and will take like 15 minutesโ€ฆ

Or I can keep doing the programming assignment due in 2 monthsโ€ฆ

primal crystal
#

Go for the hard way

pastel imp
#

I think I broke my finger

#

no more coding ๐Ÿ˜ญ

static zealot
#

thank god. was getting tired of you coding kappa

agile galleon
static zealot
#

in my DMs. kappa

agile galleon
pastel imp
#

Hella sus

sly sonnet
#

@compact perch

hot hull
distant sun
#

nice

#

mine is god knows where

sly sonnet
distant sun
wintry plinth
distant sun
#

no ๐Ÿ™„

wintry plinth
#

Bruh

#

I got like more than a month ago

hot hull
#

He lives in Romania

#

What do you expect lmao

#

I'm surprised I even got mine

static zealot
#

well...

#

I live in romania and I've gotten mine

#

and even better... for free

#

LMAO

#

suck it frosty

distant sun
#

fuck you blitz

hot hull
#

A friend of mine had to pay 9โ‚ฌ, and I had to pay only 7โ‚ฌ

#

So I'm confused as fuck

quiet depot
#

@distant sun has yours shipped yet?

distant sun
#

"En Route" and this is the last update

quiet depot
#

yep that's definitely lost

#

feelsbadman

#

mine shipped after urs and is already in aus

distant sun
#

fucking hell

wintry plinth
distant sun
#

it is stupid

#

same thing happened in 2020

wintry plinth
#

Wait really?

distant sun
#

Ye pig_unamused

wintry plinth
#

Did you ever get it?

distant sun
#

Nah, couldnt bother to contact them

#

But I did it them this time

wintry plinth
#

With a gradle project, is it possible to be able to locally install it, so other gradle projects can utilise it?

distant sun
#

publish to maven local

wintry plinth
#

Without locally having the project

distant sun
#

well, yeah

wintry plinth
#

Just not sure where to start ๐Ÿ˜‚

distant sun
#

gradle pushToMavenLocal
open gradle from right tab, go to tasks and then publish

wintry plinth
#

ahhh thank you, godsend, once ive done that do I just reference the artifact from another project?

distant sun
#

yeah and add mavenLocal() in the repositories { } block

wintry plinth
#

Ahhhh, tysm <3 so in my docs I'd just need to tell people to clone the sdk repo, run ./gradlew pushToMavenLocal to be able to use it?

distant sun
#

that or push it to a repository

#

such as maven central

wintry plinth
#

how could I do that with this plugin? I did run ./gradlew publish

#

but couldnt find it

distant sun
#

you need an account there

wintry plinth
#

oh right

long dagger
#

I am making a plugin almost identical to Hypixel's lobby selector, but completely customizable. What features besides just having the lobby selector would be nice to have and fit this plugins theme?

mental trench
#

identical?

#

you have the same gamemodes as hypixel?

long dagger
#

not an exact copy

mental trench
#

all of them?

long dagger
#

no no no

mental trench
#

then?

#

elaborate

#

most use deluxemenu

#

or animatedmenu

long dagger
#

ok soi

#

when you log onto hypixerl

mental trench
#

for gamemode selector

long dagger
#

you have the nether star

mental trench
#

??

long dagger
#

right>

mental trench
#

no

long dagger
#

yes

mental trench
#

thats not gamemode selector

#

thats hub selector

#

totally different thing

long dagger
mental trench
#

you can also make that

#

with deluxe menu

#

if what you want exactly

#

is to have red when full, green when available

#

and i think orange when a friend is in that server

long dagger
#

My plugin does all that for you

mental trench
#

then

long dagger
#

but I was thinking that just the lobby/hub selector might not be enough to entice someone to use it

mental trench
#

what?

#

i dont even get the actual issue

long dagger
#

there isnt a issue

#

that is the thing

#

the plugin is complete

#

but I feel like if someone comes across this plugin, they might not download it just because all it does is have a lobby/hub selector. I feel like there needs to be more to the plugin, I just dont know what

mental trench
#

well

#

didnt understand whats the issue is

urban sleet
long dagger
urban sleet
#

๐Ÿ‘ Thank you!

urban sleet
#

I'm just learning, what would you suggest the best thing to do is? Should I check if the main hand is null and in that case get the offhand item, or something different?

long dagger
mental trench
urban sleet
long dagger
urban sleet
#

Perfect

urban sleet
long dagger
urban sleet
#

Oh perfect, i'll try that now

long dagger
#

what is GrapplingHook:54?

urban sleet
#

if (item.getItemMeta().getItemFlags().contains(ItemFlag.HIDE_ATTRIBUTES)) {

static zealot
#

item is null

long dagger
#

yeah

urban sleet
#

Hmm, I'm holding the item though

static zealot
#

you probably wanted to do item = ...

#

item = e.getPlayer().getInventory().getItemInOffHand();. also can't that be null as well?

long dagger
#

it can be as far as I know

urban sleet
# static zealot you probably wanted to do `item = ...`

Yes that is what I did

    public void onRightClick(PlayerFishEvent e) {
        Player p = e.getPlayer();
        ItemStack item = e.getPlayer().getItemInUse();
        if (e.getState() == PlayerFishEvent.State.REEL_IN || e.getState() == PlayerFishEvent.State.IN_GROUND) {
...
static zealot
#

I assume it just gives an AIR itemstack

long dagger
#

oh, interesting

static zealot
#

oh nvm. you don't even get there

#

lmao

#

the null is above

long dagger
#

yeah, line 54

urban sleet
static zealot
#

wait that's strange. what spigot version do you use?

urban sleet
#

It's using spigot 1.17.1 right now

#

I can update it though, just didn't bother

static zealot
#

yeah nah. getItemInMainHand is not nullable in 1.17.1 either. so

#

wait I'm a bit lost. give me 1 second. need to go and reread everything you wrote

#

ohhh

#

I've misread

#

the meta is null. not the item lmao

urban sleet
#

Oh I see

static zealot
#

I believe air has null meta

#

but anyways just check if meta is null first. if it is just return

urban sleet
#

Awesome, thank you

static zealot
#

ah I see where the confusion came from. The second error you sent was giving null at item bcz you were not using getItemInMainHand. Didn't realise you sent another error before

sweet cipher
#

I donโ€™t trust Bukkit annotations

#

Half the time they say something is not null and it ends up being null

half harness
#

๐Ÿค” really?

cursive jolt
#

yeah, I've seen this too. Don't trust @NotNull in bukkit

half harness
#

o ๐Ÿ‘€

ocean quartz
#

Yeah there are nullable things in Bukkit annotated with not null

viral grove
#

Because Bukkit

half harness
#

whats the method?

#

or methods

#

also, still confused - what's the purpose of using Docker vs just running them on the machine?

#

seems like its sorta like a VM that it can make separate "instances", but why do that at all in the first place?

cinder flare
#

reproducible build environments is the biggest

#

and it is important to note that docker containers are not VMs

#

if you've ever setup a tangled mess of like an nginx proxy, a web server or two, some other stuff, a pterodactyl panel, all on a raw machine, you know how annoying it is

#

and good luck ever moving off of that to a different server or something

#

docker lets you have containers that can run anywhere you have docker installed and can build their own environment like a clean room so that it will always be identical