#dev-general

1 messages · Page 589 of 1

obtuse gale
#

watch this

#

yeah that would be an issue, lmao

ocean quartz
#

The win 11 requirements are such bullshit lol

obtuse gale
#

yeah it's literally a joke

#

what do you need? a 9th gen or a 10th gen Intel CPU? An i9 maybe?

ocean quartz
#

9th gen up

steel heart
#

lol

ocean quartz
#

Actually 8th gen up

#

I thought mine was 8th but i have a 7500 😩

steel heart
#

😞

dense dew
dense dew
sick belfry
#

ohh fuck you found out

somber tulip
#

What are server types such as fabric and sponge built off? Like are they all implementations of bukkit, spigot or just different altogether?

steel heart
#

They’re not implementations of spigot

obtuse gale
#

thank god

steel heart
#

Lol yeah

#

Idrk if Sponge server jar is its entire own server eco system or if it still has vanilla nms code in it tbf.

obtuse gale
#

Sponge has a Sponge API from which SpongeForge and SpongeVanilla are built on top of, and just like CraftBukkit, it modifies the core jar (although with other mechanisms, not with patches)

somber tulip
#

Ah that makes compatiblity a small issue

obtuse gale
#

what kind of compatibility?

#

cross platform?

somber tulip
#

Allowing the plugin to run on spigot, sponge, fabric etc

#

I'll just have to made a core module or something with different implementations

#

but effort

obtuse gale
#

mhm that's the way to go

somber tulip
#

A tad annoying though because the core implementation needs basic info like world size

obtuse gale
#

Abstract it enough and it's not an issue anymore, lol

#

Look at WorldEdit :P

somber tulip
#

hahah yeah I'll pass on that, I was looking through it and they literally just recreated all the bukkit objects it looks like

#

or the important ones

obtuse gale
#

As for Fabric, it's just a mod loader, there is no server API, you "interact"/"code" with the game itself; the way a mod can, well, modify it is with mixins (bytecode manipulation made easy)

static zealot
#

hello guys. talking to you from an ssd. only problem is I could only transfer the windows boot. anyone know how I could transfer the popos boot? I've got a samsung ssd and used their transfer tools from windows since I do not believee it works on linux

obtuse gale
obtuse gale
#

The issue is looking at it from a Bukkit perspective

#

Which is literal garbage

somber tulip
#

Yeah well, either way as FUN as that rounds I cba lol

#

sounds *

#

or I guess its something to do

somber tulip
#

I'll start off writing the plugin as generically as possible and see how far I get

steel heart
#

Yeah

#

Good luck (:

static zealot
#

because it says "restore and clone your windows system"

inner umbra
#

IDK I only have windows but it copies the drive directly with all file formats and partitions so its worth trying.

static zealot
#

yeah I can use samsung's tools directly for that and they worked but only for windows.

#

that's my problem. I need tools that can migrate both my boots windows and pop

timber oak
#

Any recommended GUI APIs?

obtuse gale
#

MF-GUI or Interfaces; though most people in here are more familiar with mf-gui

forest pecan
half harness
#

?mf

compact perchBOT
obtuse gale
timber oak
obtuse gale
#

lol

half harness
obtuse gale
half harness
#

ye but they're the same thing ;-;

#

afk

obtuse gale
#

yeah

ocean quartz
forest pecan
#

would it not work?

ocean quartz
#

It would up to a specific as well, same thing as intel

forest pecan
#

F

onyx loom
#

2nd gen+ for ryzen

#

basically anything after 2017

#

or 2018

obtuse gale
#

I'm quite proud of this annotation processor uwu

#

Learned so much!

forest pecan
#

Oh phew

#

i got amd 2600x

ocean quartz
#

It's great for learning right, it's awesome

forest pecan
#

im fine

ocean quartz
#

Proud of you Emily 😌

obtuse gale
#

it's so weird

#

you can't get or read the annotation directly nor its values like you would during runtime

ocean quartz
#

Yeah it's really weird

timber oak
forest pecan
#

my guy

#

look right here

#

and look closely

timber oak
#

...

forest pecan
timber oak
#

Thank you...

forest pecan
#

Are you blind or smthing?

#

lmao

timber oak
#

Seems like I am lmao

serene cave
#

@ocean quartz Sir fellow. Am I too ugly to be in your server? I am terribly sorry if my requirements do not match your kind.

#

Certainly I also plead apology from @obtuse gale too

obtuse gale
#

no thank you

serene cave
#

But

#

America is in your hands!

#

With Trump comes great opportunity

ocean quartz
#

Don't see any difference

final sphinx
#

Does anyone know any good videos or tutorials for java/minecraft plugin development? I've been wanting to start for a long time just never found anything that works.

compact perchBOT
#
FAQ Answer:

Online Courses:
Online courses are also great for learning java. Some websites that offer them are:

  • Coursera - Free unless you want a certificate
  • PluralSight - Great courses from what I've seen. Mostly Paid
  • Udemy - Never used them myself but they seem to all or at least most be paid.
    My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.

Oracle Docs:
Oracle docs can help a lot at learning and understanding java:

  • Start with this,
  • Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
  • Hit this.
    They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
    That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Other services:
Some other cool services that will help you learn java are:

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

forest pecan
#

Man really asked to get learnjava'd

#

xD

#

did you guys see the thirtyvirus thing?

#

While i agree that SpigotMC should take more into consideration about troll reviews, I don't really like how Thirty is approaching it cause the last time he made a video flaming spigot it was about how he got banned after telling his viewers to purposely put bad reviews on another plugin.

#

now hes getting bad reviews and made that video 💀

obtuse gale
#

@ocean quartz i need your opinion

humble silo
#

@obtuse gale Little suggestion

obtuse gale
#

lmao

#

what

humble silo
#

im trying out your annotation thing

ocean quartz
#

Yes do it

humble silo
#

eventually, take it out of the snapshots for mvn central, its super annoying

obtuse gale
#

it's.. on central already

humble silo
#

take it out of snapshots though

#

i gotta add it seperately

obtuse gale
#

??

#

what?

#

you don't have to use the snapshot builds if you don't want to?

humble silo
#

There are snapshots, and releases in maven

humble silo
half harness
ocean quartz
#

Smh

obtuse gale
#

yes... the one on central releases

humble silo
#

lol

obtuse gale
#

central is for releases

humble silo
#

my bad

#

didnt see the actual release version

obtuse gale
#

no problem, lmao

humble silo
#

lol, ok testing it now

#

better work first try

#

smh

#

lol

ocean quartz
#

Emi

obtuse gale
#

well I used it myself so yeah lol

ocean quartz
#

Opinion

obtuse gale
#

Matt yes, I need your opinion

#

What are your thoughts on anarcho-capitalism?

#

I mean, sorry, typo

ocean quartz
#

Lmao

humble silo
#

Doesnt seem to be working for me, does it work with tests in junit?

#

using java 13

obtuse gale
eternal compass
humble silo
#

uhh, thats what was default when i created this project?

#

idk

#

would use 11

forest pecan
#

Use 16 lmfao

obtuse gale
humble silo
#

too much effort to change it

eternal compass
obtuse gale
#

16, pleb

eternal compass
#

don't use 13

obtuse gale
#

17

forest pecan
#

17?

#

18

#

snapshot

#

pleb

humble silo
#

fine, ill go back to 1

eternal compass
#

1.18 caves and clifs java

humble silo
#

for the most part i write everything in 8

#

but ok

half harness
#

there's so many people that think java version = minecraft versions ;-;

humble silo
#

it needs to be 8 compatible

#

so

eternal compass
#

Steams though 😌

humble silo
#

kotlin though

eternal compass
#

also, Emily I probably asked you this, but do you know go?

obtuse gale
#

you didn't, and no I don't

eternal compass
#

oh hm

ocean quartz
eternal compass
#

I need to do the impossible

#

and I can't figure out how

obtuse gale
humble silo
#

@obtuse gale do you have a test case i can see?

obtuse gale
#

for unit testing or just general usage?

humble silo
#

just in general

#

in my case the unit testing shouldnt affect anything

obtuse gale
#

it's not about "your" unit testing, but about how gradle and/or junit invokes and loads things
but just in general, annotate any class (with a default constructor) with whatever that works, @Provides(Object.class), build the jar file, then it should create the META-INF/services/java.lang.Object with the annotated class as content

humble silo
#

ya im not seeing the service file being created, for the unit testing i dont really know how your thing works, but i have the most textbook setup(for testing) so my setup shouldnt be doing anything weird

#

Idk if this affects this in your system, im providing and implementing the service in the same module

#

just for testing

eternal compass
#

anyone have a good example of a mongodb database accessor that only updates a small portion of a database, to prevent 2 writes at the same time overwriting eachother

obtuse gale
#

I can push a demo if you want me to

humble silo
#

sure

ocean quartz
#

Emi was that really the opinion you wanted or was there something serious? xD

obtuse gale
#

I didn't really get to ask anything, lol

ocean quartz
#

Ask on my discord then to not get buried here lmao

obtuse gale
#

will do

humble silo
sly sonnet
#

Heyy guys. I accidentally removed Commit tab from my left toolbar. Like this thing

#

How can I add it back? xd

distant sun
#

try to press the commit button (top right corner)

sly sonnet
#

yeah but I like it on the left toolbar :/

lost forge
hazy widget
#

Because like they don't have any roles or anything

#

Its like its not in the server or something

ocean quartz
#

Looks like webhook

distant sun
#

it is a webhook, indeed

hazy widget
#

Oh

#

Okay

timber oak
#

For a prison server that displays the ranks and the players current rank in a gui. I'm wondering how I should set up the GUIs. Create a gui per player or make one base GUI and then configure it everytime someone opens it so it's the correct one for them?

remote goblet
#

create a base gui that modifies for each player using placeholders

ocean quartz
#

A gui per player is fine too

lavish notch
#

@hazy widget No need to copy my About Me, thanks.

lavish notch
wintry plinth
#

Time to use the same one thinKappa

lavish notch
#

Bet you won't 😆

hot hull
#

huh what's the fuss about?

wintry plinth
#

@hot hull because “Cat” used his discord “about me”, lol

obtuse gale
#

huh

sick belfry
#

sorry

#

java 17 bad for minecraft

obtuse gale
#

why lol

#

server runs, i'm happy

sick belfry
#

tried it, it was horrible

#

of fuck I remember

#

just forget me

ocean quartz
#

Secret admirer?

#

Well not so secret

lavish notch
prisma wave
#

i thought u were the same person lmao

hazy widget
#

Bruh

#

I just liked how it looked

#

The about me

wintry plinth
#

I might do a similar one I liked the style myself

hazy widget
#

Didn't know you we're mad if i copied it

#

And my name is litterly named cat, thats why i got this pfp bc i think its cute

hot hull
#

I mean I copied it as well but he didn't notice cause he a nerd

wintry plinth
#

Haha

#

Mobile doesn’t let you copy the text, bur I like the style

lavish notch
wintry plinth
#

Haha true, my full one didn’t save right lol

#

Charlie J

▸ I’m a 20yr old web developer from London.
▸ I primarily code with JavaScript & PHP.
▸ Currently building https://analyse.net.

I recently sold my first successful business for 5 figures. I grew it to 800,00 monthly visits with organic SEO.

#

Weirdly discord mobile won’t save :(

lavish notch
#

¯_(ツ)_/¯

wintry plinth
#

Mobile shows me no errors

#

But when I click off it doesn’t save

lavish notch
wintry plinth
#

This is so weird lol, I swear

lavish notch
#

It is what it is I guess.

wintry plinth
#

Scuffed mobile

ocean quartz
gusty glen
#

they finally have updated their docs

prisma wave
#

The monad inventors

gusty glen
#

it took like forever, at least now I can see how to do some stuff I didn't know how to before

ocean quartz
#

Pretty cool project

gusty glen
#

I'll reserve some time later today to read their new docs carefully, I really like the idea of this project

#

Also, the new sc-cfg is under construction, I plan to do some really cool stuff there, like automatically generating config file based on values of the config class, automagic reload, and all of that by using solely annotations (like Spring Boot does for the most part)

#

etc...

drifting yoke
#

I don't get how some plugins are 1MB big or so

#

How much code is there lmao? And it comes to me.. are they even coded by humans?? Full of classes

onyx loom
#

libraries

prisma wave
#

it's usually libraries

#

^

drifting yoke
#

Yeah I thought of that.. Can you name any?

#

So they just put the libraries in the plugins?

sick belfry
#

NMS
ProtocolLib
Sql
Java itself neonnice
and more

drifting yoke
#

but i mean protocollib is just a plugin u can depend ur plug on

ocean quartz
#

Remove protocollib

drifting yoke
#

or SQL is in java

lavish notch
#

Helper be like 4MB xD

drifting yoke
#

NMS you just make a reference with maven

sick belfry
#

but its not necesary to add them tho

#

so

onyx loom
#

none of those listed would be shaded lol (maybe sql if were talking an ORM/connection pool)

ocean quartz
sick belfry
drifting yoke
#

So those you just download them as classes and add them to ur plug?

obtuse gale
#

caffeine 😌

ocean quartz
#

You'd use a build tool like Gradle to shade the libs

obtuse gale
#

It's quite funny how LuckPerms does not shade any dependencies and it's well over the megabyte mark, lol

ocean quartz
#

Luck goes ham

obtuse gale
#

Then it downloads them :pepela:

onyx loom
#

luckperms thicc

#

altho why does LP download them actually? its a free plugin why not use an external link

ocean quartz
#

Isn't it 11MB once libs are downloaded?

obtuse gale
#

yeah if not more, lol

obtuse gale
ocean quartz
#

Yeah makes it easier

onyx loom
#

ah true

obtuse gale
#

e.g. it doesn't download hikaricp and mariadb drivers if you're using, say, json for storage

onyx loom
#

ye

#

oki

obtuse gale
#

it's quite nice tbf

#

very thoughtful

ocean quartz
#

It uses okhttp for the editor stuff right?

obtuse gale
#

yeah

ocean quartz
#

Biggest lib is H2

#

H2 is 2MB

#

Damn, that's on point

drifting yoke
#

Why the heck is AuthMe, a login plugin, 7 MB?

dense dew
#

some are database drivers ig

onyx loom
#

a fat load of libs once again

drifting yoke
#

So the password is not saved locally on the server?

ocean quartz
#

Why does it matter though? 7MB is nothing

dense dew
prisma wave
onyx loom
#

mmm cant wait to add 50mb to my plugin

dense dew
#

postgre vs mongo vs mysql?

obtuse gale
#

mongo good

ocean quartz
#

Different purposes

static zealot
drifting yoke
#

Worldedit must be insane work with minimal libs right

dense dew
#

math

drifting yoke
#

Yeah but

dense dew
#

math is insane Funny

static zealot
#

I mean. its OS

#

you can look into it

drifting yoke
#

I know WE is math

static zealot
drifting yoke
#

Is it just me or is this immense java and minecraft knowledge

#

Like it seems so weird that md_5 made craftkbukkit as a uni student

dense dew
#

is WE checking for chat event or its command with name "/wand" fe

drifting yoke
#

Im a uni student and I feel like i could've never done a project like that

ocean quartz
#

md_5 didn't really make craftbukkit

drifting yoke
#

well a group of uni students did

obtuse gale
prisma wave
#

dwayne "the rock" johnson designed craftbukkit after a night out with friends

#

in 2011

obtuse gale
#

He did write a bunch of awful code tbf

dense dew
#

how is it working like

ocean quartz
#

It's just a command

dense dew
#

block place event for wxample

obtuse gale
#

???

#

I don't really understand what is it you're asking

dense dew
#

bukkit

obtuse gale
#

WHAT

onyx loom
#

🌚

drifting yoke
#

HAhahahaha

#

What??

#

He's asking whether the commands on WE are written like cmd.getName().equalsIgnoreCase("/pickaxe") as a result them being double slashes

obtuse gale
#

At first maybe

dense dew
obtuse gale
#

Then block place event

#

Then "bukkit"

ocean quartz
#

Type faster!

obtuse gale
#

Dude, we cannot understand if you don't ask the whole thing 😂

onyx loom
#

but bukkit

dense dew
dense dew
drifting yoke
#

I'm sorry I'm so confused

dense dew
ocean quartz
#

We're still waiting on the full question

dense dew
#

too long dont jave energx for that

drifting yoke
#

LMAO he plain sent a pic of doge

dense dew
#

it was shit about bukkit how it works with packets then send it etc

drifting yoke
#

I'm legit dying from laughter rn

dense dew
#

but nvm too long to type it again

ocean quartz
forest pecan
#

yea repo doesn’t work RIP

frail glade
#

Dang, everyone's SSL is breaking lately.

old wyvern
drifting yoke
#

What's that API about? Being curious 👀

obtuse gale
#

Application Programming Interface, it's basically any intentionally exposed module/system of a program to allow for other programs to communicate with each other

drifting yoke
#

I mean the API pigglet made xD

obtuse gale
#

ah

#

I think stupid simple time formatting and parsing

#

as in date-time

drifting yoke
#

Oh cool

obtuse gale
drifting yoke
#

I'm not that bad in coding 😦

timber oak
obtuse gale
#

unfortunately

timber oak
#

Why "unfortunately"

#

Is it bad?

obtuse gale
#

the readme is terrible

#

lmao

#

the API is "fine"

timber oak
#

True, and no docs

#

as far as I can see

obtuse gale
#

the javadoc is really about as much docs as you're gonna get

#

lmao

timber oak
#

Lmao aight, should be pretty self-explanatory though, right?

obtuse gale
#

For the most part, yes

timber oak
#

So how would I set up a listener for something like whenever a player earns money?

#

Just like regular paper events?

drifting yoke
#

Make your own event?

obtuse gale
#

I don't think Vault provides events whatsoever

timber oak
#

Hmm, I just need to check whenever a player has enough money to rankup, then they will automatically rankup

drifting yoke
#

I have no idea how Vault API works but maybe you can set up your own event

obtuse gale
#

Vault is literally just a heap bunch of getters and setters for player data (economy, permissions)

timber oak
#

Never really worked on custom events, would you say I should make one to check for this or what?

#

Just to check whenever someone gets money

obtuse gale
#

well

drifting yoke
#

You can make your very own event

#

and call it whenever someone receives money or smt

obtuse gale
#

again, vault has no concept of events or event bus, so actually knowing when that happens isn't exactly easy peasy, it's just getters and setters

#

but

#

you could make your own events for this, though I would say it's incredibly iffy

#

okay maybe not incredibly iffy

forest pecan
#

Yeah i wouldnt create an event bus

obtuse gale
#

but iffy

timber oak
#

Is there a better way to check whenever someone gets money?

#

I just want automatic rankups, whenever the player has enough money

forest pecan
#

automatic is hard

timber oak
#

Why?

#

I mean I could loop through all online players and check if their balance changed but it would take up a lot of performance I think

forest pecan
#

Because i dont want you to make a while loop and loop it like every tick cause what if there are a ton of players

#

Yeah

#

Otherwise you can't do automatic, only delays

timber oak
#

Hmm, then I just need to make ONE method to send money, and everything goes through that. Then I can handle whenever someone has enough money I guess

forest pecan
#

Yeah, handle it when you give the money

#

handle it at the cause

#

not the effect

sick belfry
#

one method to send another method to send another method to send another method to send another method to send another method for sending money

timber oak
drifting yoke
#

Or you just use a timer and check whether their balance is appropriate

forest pecan
#

When you give money to the player

#

check then

timber oak
timber oak
forest pecan
#

thats the only way i can think of which can make it automatic while not using too much unnecessary performance

sick belfry
#

ya know? I think you deserve a boost

#

another

forest pecan
#

if its every tick

#

yeah hell yea

sick belfry
#

just giveme 5 days ThumbsUp

forest pecan
#

every 10 seconds or smthing?

#

not as much

#

or every 5 minutes?

#

even less

drifting yoke
#

Well if you could that simply just listen when money is being given to a player it's doone already

timber oak
#

Well yeah, but at that point I'd rather hardcode it all, so I know exactly whenever someone gets money

forest pecan
#

lmfao

drifting yoke
#

But that's not possible right? Emily said so

#

That's why i'm dropping alternative choices

forest pecan
#

No, not events

#

I am saying to listen when you are giving the money

timber oak
#

But the problem about making a method like that would be if the server has another pay method, then this plugin is basically broken

sick belfry
#

I'm starting to feel conformatable on coding thanks to this discord, lets party

#

🍾

obtuse gale
#

no

#

no alcohol

timber oak
forest pecan
#

yea no

sick belfry
#

then

forest pecan
#

you're screwed

#

cant do that

#

xD

sick belfry
timber oak
#

Hmm

drifting yoke
#

Well having other plugins was already a sure thing right? Else obviously you can listen to any economy changes of your own plugs

forest pecan
#

No

#

but anyways

#

I'd recommend using Caffeine and their expiring caches

#

and update the value for players cash when necessary

timber oak
#

expiring caches?

sick belfry
#

oh fuck I forgot

forest pecan
#

Yes

#

well not expiring

sick belfry
#

caffeine exists

forest pecan
#

i meant

#

like

timber oak
#

not sure what that is

forest pecan
#

updating caches

timber oak
#

or what that means rather

sick belfry
#

who wants some pizza?

forest pecan
#

Caffeine is a caching api

timber oak
forest pecan
sick belfry
#

gives him prizza

timber oak
#

Guess I'm getting no sleep tonight

sick belfry
#

me too

forest pecan
#

Do both

#

or else u weak

sick belfry
forest pecan
#

Sleeping is for the weak

timber oak
#

Lol

#

Got 8 hours of school tmr but yeah np

sick belfry
#

seriously?

#

then why you are alive ?

timber oak
#

oh and driving lessons, forgot that

sick belfry
obtuse gale
#

I can think of a reliable way of making your own events for Vault "actions"

sick belfry
#

quick

forest pecan
#

write the solution

#

before he sleeps

sick belfry
#

nope too late

#

he or she is ded

obtuse gale
#

x0.2 gameplay speed

sweet cipher
obtuse gale
#

"he"

sick belfry
drifting yoke
#

Truee fork vault

forest pecan
#

id say he or she

sweet cipher
#

I’d say they

drifting yoke
#

THEY!

sweet cipher
#

ARE!

drifting yoke
#

ded

forest pecan
#

You see, I'd say they if the stupid standarized tests actually recognized that as a correct answer

sick belfry
#

sad >I had to

forest pecan
#

the tests say he or she

obtuse gale
#

Anyway, wrapping the existing service with a delegating implementation of your own, and overriding the methods for dispatching events before (or after?) calling the delegated service

forest pecan
#

its so dumb

timber oak
remote goblet
#

ori making questionable code part ??

drifting yoke
#

Lmao

sick belfry
timber oak
sick belfry
#

please do not tell me that it is the typescript copy in java

#

I think is called kotlin

sweet cipher
#

No it’s Python don’t worry

remote goblet
#

yeah it's kotlin

obtuse gale
timber oak
sick belfry
#

oh sorry boi

obtuse gale
#

B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.7

sick belfry
#

nooooooooo

onyx loom
#

No need to shout.

#

whats wrong with that ori

remote goblet
#

its just a smol method to do stuff like this for example CB_fingerguns

#

I dont know i feel like im doing something I shouldn't whenever i do stuff like this

timber oak
#

What would you say I should do to accomplish this @obtuse gale ? Multiple plugins will access vault

remote goblet
sick belfry
#

seems good

forest pecan
onyx loom
#

i wouldnt say its necessarily bad

#

maybe the unchecked cast part but hey

sick belfry
#

shoud I also learn kotlin?

#

is it good?

onyx loom
#

if u want

sick belfry
#

is it easy?

onyx loom
#

i will say its good

#

some others may not agree, up to u

timber oak
#

Java is easier to learn imo

remote goblet
#

I always think knowing java is way more of a priority or else you'll struggle with kotlin CB_fingerguns

#

if you already know java, why not learn kotlin

sick belfry
#

well

#

other thing

sweet cipher
sick belfry
#

how the heck can I get 50 bucks before oct 25?

onyx loom
#

stocks 🌚

remote goblet
#

prostitution

sick belfry
#

need to pay that bad boi called intellij idea ultimate

ocean quartz
drifting yoke
#

yes! I'm 3$ up with tha shiba inu crap

onyx loom
#

are u in education?

obtuse gale
sick belfry
remote goblet
#

I wonder if I can double apply for education license this year again since im in an entirely different college altEZ

timber oak
# ocean quartz Debatable

ofc, I'd just say that for people starting out with programming, Java is easier to pick up, but yeah that's just my opinion

onyx loom
#

paying for ultimate is pretty dumb imo, but if u have it can be nice

ocean quartz
#

I disagree, Java bombards you with keywords that make you mess up easily cough static

onyx loom
#

the features u get from ultimate u probably wont use very often, and community edition is more than good

timber oak
timber oak
drifting yoke
#

Man, I still figure out new java keywords I didn't know existed

ocean quartz
#

Point proven

obtuse gale
#

Oh yeah forgot to mention, then put your proxy in the ServicesManager back, providing it as the economy service

onyx loom
drifting yoke
#

like volatile

obtuse gale
#

But yes, that would be a solution, you're literally overriding the methods and getting every function call

obtuse gale
sick belfry
#

or maybe, should we all fork vault into another repo and mantain it by ourself?

timber oak
drifting yoke
#

I meant new for me lmao

sweet cipher
#

the keyword new?

drifting yoke
#

No lmao

#

volatile

ocean quartz
onyx loom
#

🥲

obtuse gale
ocean quartz
#

Oops sorry

drifting yoke
#

What even is ContextualKeyword lmao

obtuse gale
#

a keyword that depends on context

#

lol

forest pecan
#

volatile is there since like java 1

sick belfry
drifting yoke
#

Thanks!

ocean quartz
#

Piggy save me DocDex is beating me up 😫

onyx loom
#

imagine not having all keywords contextual 😖

obtuse gale
#

you do?

#

lol

sick belfry
#

oh fuck

obtuse gale
ocean quartz
#

Var var binks

drifting yoke
#

what even is var

onyx loom
#

declare a local variable with type inference 🙂

wicked hamlet
#

help please

obtuse gale
#

okay

ocean quartz
#

Helping

obtuse gale
#

⌨️

onyx loom
#

🖱️

obtuse gale
#

Helped successfully

onyx loom
#

i love this gif

wicked hamlet
#

i cant attach images

ocean quartz
#

?imgur

compact perchBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

drifting yoke
obtuse gale
#

no

onyx loom
#

well js hardly has types kek

ocean quartz
#

You wrote "js doesn't have types" wrong

obtuse gale
#

js is dynamically typed, types do not really exist and are not resolved until runtime (that means no compile time errors for type issues, lol) but yeah in all fairness, js doesn't really have types at all

wicked hamlet
obtuse gale
#

in java, var is a "placeholder" for the type of a variable that is resolved at compile time, so you get the exact same type checking as if you had typed the, well, type explicitly

gusty glen
#

I have a gradle project which currently has 3 modules, and them all need to be published by maven-publish, is there a way to make maven publish all modules so I don't have to manually publish each of the 3 modules individually?

onyx loom
#

probably use the allprojects block, idk tho

obtuse gale
#

subprojects*

#

and yeah I believe once the subprojects config is set up you can just ./gradlew publish to publish to all repos listed in the publishing config

gusty glen
#

I see, it worked, thanks

ocean quartz
#

Nice

gusty glen
#

this throws ClassCastException (at least with non zero element number), what is the smart correct way of converting a Set<T> to T[]? JAVA @SuppressWarnings("unchecked") public static <T> T[] toArray(@Nullable final Set<T> set) { if(set == null) return (T[]) EMPTY_ARRAY; return (T[]) set.stream().filter(Objects::nonNull).toArray(Object[]::new); }

#

btw return (T[]) set.toArray(); also throws ClassCastException

obtuse gale
#

why are you calling distinct if.. it's a set

#

I mean that's not the issue

#

just curious

gusty glen
#

that code was slightly copied from another person modified seconds ago

#

yeah it doesn't make sense to call distinct there, fixed

obtuse gale
#

yeah lol

#

hm

ocean quartz
#

Yo Piggy after some suffering on the bot side I figured that the issue comes from the server side 😩
Trying to set it up on localhost now

quiet depot
#

@ocean quartz what issue was this?

ocean quartz
#

Parameters aren't ordered correctly in the description

quiet depot
#

ah

#

also i could’ve told you that

#

I can tell you exactlt what to do

ocean quartz
#

Oh it's okay it's fun to debug

quiet depot
#

you need to find the metadata class for methods

#

oh

#

do you want to continue that way?

ocean quartz
#

Yeah ;p

quiet depot
#

okie

half harness
#

👀

#

💀

onyx loom
#

wth

#

a programmer finding it fun to debug?

forest pecan
#

Matt es raro

quiet depot
#

also if you think any code is shit along the way

ocean quartz
#

Helps you learn a lot how the code works, was having a lot of issues with the bot because of guice but as I went I started understanding it a lot

quiet depot
#

cleaning it up would be appreciated

#

ik a lot of the code aint great

ocean quartz
#

Sure thing

quiet depot
#

could even make 2+ prs out of it

#

1 pr for parameter order

old wyvern
quiet depot
#

then more prs for cleaning up

old wyvern
#

oii

#

that reminds me

obtuse gale
#

pepela

old wyvern
#

hacktoberfest

ocean quartz
old wyvern
#

Thats type coersion matt

ocean quartz
#

nO

forest pecan
#

Lol

old wyvern
#

xD

#

Isnt there even a keyword to fetch the type

ocean quartz
#

I think so

old wyvern
#

yea

obtuse gale
old wyvern
obtuse gale
#

I think you misspelled "bullshit"

old wyvern
#

I think its groups it something like this
((!(+[])) + ([]) + (![]))

obtuse gale
#

I love my strong static typing

#

buli

ocean quartz
#

Ayy I did it, it's running on localhost now :pepehappy:

obtuse gale
#

Yugi is typing...

old wyvern
#

+[] = 0

!0 = true

boolean + [] seems to give a string, cant seem to where thats mentioned tho xD

so at this point we have "true"

![] = false (https://developer.mozilla.org/en-US/docs/Glossary/Truthy)

string + boolean coerces the boolean to a string so its string + string, you get "true" + "false"

old wyvern
obtuse gale
#

yeah what I said

#

bullshit

old wyvern
#

Elm for the future

obtuse gale
#

lmao

old wyvern
ocean quartz
#

Yugi, you are correct, we just don't like it!

old wyvern
#

coersions 🥲

#

oh

obtuse gale
#

exactly

old wyvern
#

xD

#

welp

obtuse gale
#

boolean + [] seems to give a string

#

JS

old wyvern
#

🥲

#

Another reason for ya'll to switch to haskell!

#

Thanks!

#

good night

obtuse gale
#

yw

#

gn

old wyvern
#

or wait no

#

I have an assignment to finish

ocean quartz
#

Good luck!

old wyvern
#

btw matt

#

started naruto, got to 140 something on the original series before I got bored and moved to the next one, but I think nothing much happened between those

#

Sasuke still seems to be with the orachi something guy

forest pecan
#

Yugi reads manga?

ocean quartz
#

Anything between 140 and 219 is just filler

obtuse gale
#

naruto

old wyvern
#

on the shippuden ep 27 something now

old wyvern
ocean quartz
#

Thank me later

forest pecan
#

Ah

old wyvern
old wyvern
#

Yugi reads manga?

obtuse gale
old wyvern
#

😅

forest pecan
#

Yugi is elara-hater?

old wyvern
#

Blasphemy

forest pecan
#

As I thought

gusty glen
#
com.github.secretx33.sccfg.exception.MissingConfigAnnotationException: Could not create instance of class com.github.secretx33.testproject.config.MyTestConfig because it is missing @Configuration annotation, please annotate your configuration class with @Configuration``` hehe, it's a start at least
old wyvern
#

@obtuse gale Does c++ provide something similar to the sorts of the java stream api?

steel heart
#

I think it does

old wyvern
#

What is it?

steel heart
#

I believe std has some higher order functions, doesn’t it? Tho if you want lazy sequence in particular might need to use some sort of lib.

old wyvern
#

What in the bloody fuck microsoft

#

I'm locked out of my account now

#

how nice

onyx loom
#

😂

hot hull
distant sun
#

is there a function class that takes two params and returns nothing, other than a BiFunction<T, U, Void>?

onyx loom
#

is a BiConsumer a thing?

prisma wave
#

BiConsumer yeah

distant sun
#

ah for a second I thought consumer returns something, bruh

onyx loom
#

noob

prisma wave
#

imagine having side effects

onyx loom
#

I love side effects

hot hull
#

Imagine thinking, what a bafoon

obtuse gale
#

Can anybody help me in jpremium plugin config for bungeecord

#

@onyx loom

#

@quick flume

#

@ocean quartz

quiet depot
#

pls don’t tag everyone

obtuse gale
#

Okk

#

But I need some support

quiet depot
obtuse gale
#

Thanks I am new here

dense dew
static zealot
#

did you try and read? seems like the post contains a lot of info that could help you understand

rotund sorrel
#

The windshield wiper control in my car says "int" and i looked at it today and thought "wtf does it mean by integer"

#

It means interval

jovial warren
#

anyone know if there's a way to push to a PR from a fork where the original branch from the downstream doesn't exist anymore?

strong bramble
#

any spanish dev?

#

🥲

drifting yoke
#

Si si! Hablo espanol! Nah I'm greek γεια σου, τι κάνεις;

obtuse gale
#

No entiendo

#

No understand you, okay?

#

Manifesto, manifesto say "deliver here", huh?

onyx loom
#

poor floyd

strong bramble
#

._. necesito un plugin, no veo ningun dev que hable español en offer-services

drifting yoke
#

I mean people that don't speak spanish can code too

#

or paid whatever u wish

strong bramble
#

yes but

#

I find it difficult to explain what I need in english

obtuse gale
drifting yoke
#

¡Wow, hablo español! Esto está muy bien. ¡Un traductor gratuito!

#

Is th-that correct?

strong bramble
#

they don't even understand me with a translator thonking

drifting yoke
#

Well I understand you without it

onyx loom
#

is it stupid of me to create a specific function just so that i can use a method reference? 😂

steel heart
#

Probably not

#

Will spare you some indentation

onyx loom
#

sure

#

but its like 1 line

steel heart
#

Yeah Idk

#

Maybe

#

I mean it makes it somewhat more polite to the reader

#

If the reader just wants to read what the function does in high terms

prisma wave
#

named functions are always better

onyx loom
#

i just like the look of them

obtuse gale
#

method references good

prisma wave
#

theres a reason that declaring functions in functional languages is so concise

obtuse gale
static zealot
onyx loom
#

hmm

steel heart
#

Conclure, MasterOfTheFish, Emily, Brister Mitten, KnightzMC, Blotz

#

Uh Kaliber

onyx loom
#

i guess that would make it better i suppose

obtuse gale
#

Kqliber

static zealot
#

Kqliber as well

#

lmao

obtuse gale
#

anyway

onyx loom
#

emilyydev

steel heart
#

Ofc my apologies

obtuse gale
#

method references good

onyx loom
#

😃 👍

obtuse gale
#

lambdas are also good but method references best

static zealot
#

happy kqliber. yay

onyx loom
#

blitzoffline

strong bramble
#

Manifesto

steel heart
#

Funnyhexagon

prisma wave
#

yep

#

well said

static zealot
#

hilarious quadrilateral

#

well. a cube has more laterals but anyways

steel heart
#

Anywayz

static zealot
#

any way but positive z only?

steel heart
#

zaynywqyz?

static zealot
#

wqy?

drifting yoke
#

whqt wqy

static zealot
#

matt. probably asked this before. but is there a way to make some commands not have tab completion with your library? even when players got access to them I mean

forest pecan
#

@Completion?

#

Oh

#

not have tab completion

static zealot
#

yeah

ocean quartz
#

Probably not, make an issue I'll make it a feature on the rewrite

static zealot
#

done

#

o. gitbooks changed the fonts and sizes of texts

#

I quite like it

#

also seems to have colors for code blocks. dk if this was a thing before or not

#

actually might've just changed the colors

#

ooo. the app.gitbook part is also dark themed noww

ocean quartz
#

They now color .. strings! and .. =! and .. numbers!!

static zealot
#

yes

#

wait. dark theme is now like everywhere? you can use it on the wiki as well?

#

or is that dark reader?

ocean quartz
#

Dark reader

static zealot
#

ah. man. they're at least working on improving lmao

#

you can change the font now if you have the premium one

distant sun
#

Has discord removed the ability to use spaces on voice channels name?

ocean quartz
#

Seems like it 😢

prisma wave
#

well that's dumb

#

maybe a bug

#

since existing ones still work fine

onyx loom
#

the smarter thing wouldve been for them to add spaces to text channels 😔

distant sun
#

Everyone uses spaces

sweet cipher
#

Would it be bad to have every instance of a Minion class be a listener?

#

Should I use a scheduler instead?

forest pecan
sweet cipher
#

So like for the one I put in #showcase,
right now there is a scheduler that loops the minions,
I feel like making the minion be a listener, and listens for when blocks are added in the
region, then perform an action is better than looping through them.

sweet cipher
#

But probably not that many at the same time

#

I could have one listener class, pass an instance of that to every Minion, and have a callback for the minions

#

Either way the either the listeners get looped by Bukkit, or the minions get looped by me

#

But it would still be less than looping all the minions, because I can have some Minions
implement like BlockMinion, EntityMinion, etc.

forest pecan
#

Yeah that may be better

sweet cipher
#

I'll go with that for now, if someone comes up with something better and wants to let me know, I would greatly appreciate it.

hollow walrus
#

do you guys

#

know how mods work?

obtuse gale
#

Yes

distant sun
#

Is there a method similar to Arrays#asList that returns a List that accepts new items?

hot hull
#

List.of? Or is that immutable as well

prisma wave
#

Yeah that's immutable

distant sun
#

Stream will do it

prisma wave
#

😵‍💫

jovial warren
#

Anyone know if it's possible to push to a PR branch from a fork that doesn't have that branch anymore? (It was deleted then recreated with a new master)

#

I tried using GitHub's CLI with no luck

gusty glen
#

Which one looks better?

prisma wave
#

First

static zealot
#

lmaooo. my bank

#

just snt me a new card bccz mine was expiring and it has thee same color and theme as thee loading screen for IJ Ultimat

#

e

onyx loom
#

send pic

#

front and back pls

static zealot
#

ok

jovial warren
#
val stuff1 by config<MyTestConfig>()
```🙂
#

also, you can make that lazy init if you use a delegate

gusty glen
#

but there's no real gain in making the config initialization lazy, I think

jovial warren
#

yeah, maybe

#

but anyway, I'd do ```kotlin
val stuff1 = config<MyTestConfig>()

gusty glen
#

but I'll add it anyway

jovial warren
#

get prefixes bad

gusty glen
#

What do you think?

#

actually I don't think it'll work well since apparently there's a naming clash while using it inside JavaPlugin class:

#

back to getConfig I guess sad_fingerguns

jovial warren
#

oof

drifting yoke
#

inline fun reified volatile var

#

Exports module

jovial warren
#

lol

#

wat

prisma wave
#

kotlin fans adding 500 keywords to a single line function so they can inline the crosssinline reified extension sealed suspending abstract property

onyx loom
#

"kotlin is not verbose" they said

steel heart
ocean quartz
prisma wave
#

so concise

steel heart
#

Must be one of the most concise languages ever invented

sick belfry
#

@remote goblet hey! your crates animations look sick, I'm wondering, which math did you use the make them? I do like the circle one

remote goblet
#

The GUI circle one?

sick belfry
#

the particle circle animation

#

dis one

boreal needle
#

what are some of the most commonly used events?

prisma wave
#

Interact, InventoryClick, Move, Join, Quit, Chat

steel heart
#

Event

sweet cipher
#

EntitySpawn/DeathEvent

#

Make sure to include the /

steel heart
#

MasterOfTheFishEvent

sweet cipher
#

Best event

sick belfry
#

FallenStarEvent

#
@Override
public void onFallenStarEvent(FallenStarEvent e) {
   Location loc = e.getHittenBlock().getLocation()
   World world = loc.getWorld()
   
   plugin.getLogger().log(LogLevel.INFO, "Star fell in " + loc)

}
remote goblet
#

${} doesnt exist in java

sick belfry
#

idk is this is ok, but who cares

#

yep knew it

remote goblet
#
@EventHandler
public void onFallenStarEvent(FallenStarEvent e) {
   Location loc = e.getHittenBlock().getLocation()
   World world = loc.getWorld()
   
   plugin.getLogger().log(LogLevel.INFO, "Star fell at " + loc)

}
steel heart
#

String.format (:

sick belfry
#

na i dont care

remote goblet
#

i should stop working on plugins now

#

ive reached my peak in plugin development

sick belfry
#

noooooooo

steel heart
#

Nah ori

remote goblet
#

i cannot transcend further

steel heart
#

Haven’t done a server implementation yet

remote goblet
#

nonono

#

this is better than server implementation

prisma wave
#

minehraft

sick belfry
#

well if you go transmit me your knowledge

frigid badge
#

just stop with mc stuff

boreal needle
#

plsno minehraft

frigid badge
#

easy

prisma wave
#

just you wait

steel heart
#

locyyyyyy

boreal needle
#

do you mean me

steel heart
#

Hey there (:

remote goblet
obtuse gale
prisma wave
#

yep

#

and elara

obtuse gale
#

mhm

prisma wave
#

unfortunately it's hard to work on things when people keep breaking stuff

#

like dockerfiles, for example

obtuse gale
#

lmao

obtuse gale
#

shush

remote goblet
prisma wave
#

it's profound, you'd think something as simple as a dockerfile would be hard to mess up

#

and yet, here we are

obtuse gale
#

i don't know what it means by file or directory not found

#

it definitely exists, that's literally what installDist does

prisma wave
#

ok that's cool

sick belfry
#

hey she wrote an entire mc server in kotlin

#

nice

prisma wave
#

GROSS

sick belfry
#

oh forget its a fork

#

but again, who cares

obtuse gale
#

@bardy lol

prisma wave
#

all kotlin users know how to do is steal code

#

they're like parasites

obtuse gale
#

yeah even the core language designers took a lot from SCALA

#

smh smh

prisma wave
#

exactly

#

stolen language = stolen code = shit

#

please

#

someone take the bait

#

i beg

#

im so bored

#

PLEASE

steel heart
#

Should have used dart, yup.

sick belfry
#

shit != good

prisma wave
#

ewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww