#help-development

1 messages · Page 1099 of 1

river oracle
#

it builds a much better resume imho

ivory sleet
#

either way Kat, the way people sort of get away w enums being hard to deal with over time is to interface over it, for example Java's CopyOption interface and the enum StandardCopyOption

river oracle
#

also I reccomend getting your GED atleast

sly topaz
#

I dropped out too, but I still went to audit some classes so I could get to know people and get into the circles so I know when there's an event or talks

worthy yarrow
#

I assume boot camps just teach you as if it were a trade, specifically into one topic and that’s all your training

worthy yarrow
river oracle
#

getting your GED should be free

sly topaz
#

yeah but time

river oracle
#

well as far as cost

#

the real cost is time

#

but considering you're still 17

worthy yarrow
#

I’m 18

#

Since march

river oracle
#

oh well still considering your young

worthy yarrow
#

I’ve been slacking

sly topaz
#

I'd recommend getting to it as fast as possible

river oracle
#

if you live at home your time isn't worth as much

sly topaz
#

you'll regret it when an opportunity comes and something dumb as not having a GED stops you

worthy yarrow
#

Well idk that id call it slacking, I’ve just put all my time since my brain injury into coding so I guess that’s productive

river oracle
#

GED GED GED seriously a highschool degree goes so far. Not going to college definitely is excusable but getting a GED is paramount

worthy yarrow
#

It’s weird, I’ve never been one to read but crack my skull open and I absorbed 6 books in 6 months lol

river oracle
#

welp brain injuries can change a person

#

a lot

worthy yarrow
river oracle
#

peaceful people can become violent

river oracle
#

there is so many basic skills you're required to master in highschool

#

dropping out should probably limit your availability

worthy yarrow
#

I mean

river oracle
#

ofc their are edge cases, but really a highschool education is big

worthy yarrow
#

80% of kids be cheating their way through, I never had to try in school when I was going, I could sleep through entire classes and still pass tests

#

I like to call it passive absorption of knowledge kek

river oracle
#

I'd reccomend not cheating in school when you go to get your GED :P things like writing and math are genuinely important

#

I also think history is important as well, but that is more deabatable

worthy yarrow
#

Fun fact, I had a college level reading level in like 7th grade

#

Granted, I don’t grammar as hard as I used to but eh

#

Writing isn’t all that hard

sly topaz
worthy yarrow
#

Yes for sure

#

My father is a consequence of that for sure

#

Well in the sense of no college degree

#

He did get his hs diploma

river oracle
#

college degree isn't at all necessary

#

especially if you're a trades person I'd say its idiotic

worthy yarrow
#

Still, the ceiling as mentioned, is limited

river oracle
#

GED shows basic competency

river oracle
worthy yarrow
#

I feel it only shows an employer that you’re a person that’s capable of doing the job for an extensive amount of time

sly topaz
river oracle
#

vs going to a 4 year

#

the opprotunity cost is absolutely insane

#

even cheap colleges cost 16k a year plus you won't be working

sly topaz
#

well, ig it is different in a country where education is so expensive

#

here university is free so it isn't an issue in that regard

river oracle
#

trade schools are much cheaper

#

and they hook you up with connections for your field

#

its literally everything you could want as a trades person

#

sometimes companies will sponsor highschool students to go get an education at a trade school and hire them after

worthy yarrow
#

To be fair, I don’t even really want to school in the US, I’d rather go to Germany or Norway

#

Maybe Poland, I love their food

river oracle
#

getting your GED isn't HS tho

#

you can just avoid the annoyances of highschool

worthy yarrow
#

Which is what I am doing

#

But lazily as it were

river oracle
#

school in the US while kinda meh compared to other developed countries you stand to gain a lot. Its also important to remember if you were to go to school in another country and not be a citizen its likely you'd be paying full price and wouldn't be subsidized by the government

#

also getting citizenship isn't really easy either.

worthy yarrow
#

Tbf if I had the willpower, I’d live in a library and spend little time outside of a book

#

I just love books now idk why

#

These are all the ones I’ve read since January, the java bible however I just use as reference material haven’t read through it 100%

river oracle
#

I've never gotten a programming book before

#

all my knowledge is just from fucking up so many times lol

worthy yarrow
#

Well I feel there are three ways to learn, experience, reading, or being taught

#

And I suppose being taught sort of falls under experience

#

Learn from another’s mistakes as it were

#

Like I said though, since January I just love to read so I’ve been stacking up books

river oracle
#

I love to read too

#

but I mostly read for entertainment

#

I don't really do so to learn

#

my favorite way to learn is through lectures or just experiencing and messing up myself

worthy yarrow
#

My thinking is just that of beings of such intelligence, we should always be striving for knowledge

#

And to be fair that came from the head injury, I really didn’t think this way prior

#

All in all, I feel my injury was a blessing in disguise

river oracle
#

did you change a lot after your injury?

#

I know that tends to happen, my mom worked in a brain trauma hospital

worthy yarrow
#

My father, grandparents, etc definitely say so

river oracle
#

yeah there are weird cases where getting a brain injury can actually make you "more intelligent" per se

worthy yarrow
#

They said it seems to have lit a fire brighter than I’ve had before so

river oracle
#

but more often than not the reverse happens :P

worthy yarrow
#

Well if you looked at my code prior vs now you’d probably vote for the former

#

taken from my fathers words

#

I feel it’s improved for sure, but also I got some OOP lessons from trooper and those really helped

river oracle
#

OOP lessons sounds interesting

worthy yarrow
#

He’s a good teacher, he put some good concepts into words I could understand

river oracle
#

I've never actually looked into OOP at all I pretty much just YOLO everything

worthy yarrow
#

Well that’s where your experience is the best ally

#

You know what works and what doesn’t

river oracle
#

almost at 4 years of being a coderer

worthy yarrow
#

Sure everything can be improved but for the most part you know what you’re doing

river oracle
#

I can't believe I started 4 years ago 😭 I feel so old

worthy yarrow
#

Technically I started programming at 8 with block coding mc plugins, then moved into java at like 10 or 12 but at the same time it was quite on / off until about 16

#

So I really only consider 2 years

river oracle
#

I didn't even have a PC till 2017 I was tech illiterate until like 2019 lol

worthy yarrow
#

But I’d say that 2 years follows a more logical thinking process than actual coding experience

river oracle
#

I started writing AHK over the summer in 2020

worthy yarrow
#

I think since Jan, I’ve put a solid 1800 hours into coding

#

To be fair, I should sleep more considering I had a tbi but eh

#

Fuck it coding is fun

river oracle
#

I've probably coded for over 6000 hours at this point 😭

#

probably close to 7000ish or something

worthy yarrow
#

Yeah I strive to be as knowledgeable as you guys

river oracle
#

I'm not knowledgeable at all :P I'd strive to be knowledgeable like someone else in here

#

I ain't it chief

worthy yarrow
#

I mean

#

You know more than I, that’s what matters

#

There’s more for me to learn from you than there is to learn from me just fucking around for the next 6 years

#

Well 6 years is probably a stretch but you get my point

#

Learning through experience is great and all but why spend the extra time / effort when someone has already done it

river oracle
#

talk to your advisors

#

make sure you advocate for yourself

worthy yarrow
#

^

river oracle
#

I kinda got a silver spoon in my mouth so I am not really one to talk

worthy yarrow
#

I’ve changed a couple school policies in my time by just gathering information and presenting it in a way that makes sense

river oracle
#

I happen to have family at an international company who is Senior Software engineer. I also have a friend who is a engineer at another big company

#

whatever you enjoy making

#

Don't overthink it literally make software you enjoy making

#

if you like plugins

#

extend yourself writing plugins

#

if you prefer writing desktop apps extend yourself writing complex desktop apps

worthy yarrow
#

I think about it like this: everything you do is experience, most times you just cater what experience goes on the resume depending on the job this resume is being sent to

river oracle
#

I think it'd be refreshing as an interviewer to not see the same project by 10,000 different people

#

rather a person who is passionate about something and does it

#

this isn't a catch all but hey It'll help you improve to

#

you'll get better doing something you love rather than trudging through a project you don't give a fuck about

#

I ran into the same problem so I just started college my junior year of HS

#

school payed for it all so 🤷‍♂️

worthy yarrow
#

Yeah my first large project is the current one tbf, I hate the fact that all skyblock cores are afk eco driven and I want to change that… so I am, hybrid skyblock / rpg core sounds super fun to me and whether or not people agree I’ll still have fun playing it

river oracle
#

I got 51 credits going into my first year of college I should be out in 2 and a half years at m ost

#

I didn't take an internship I just did college

worthy yarrow
#

And that’s all that really matters, what do you enjoy doing? Go and do it, the passion is what really catches attention like y2 said

river oracle
#

most colleges won't let you get inernships till around your junior year

#

atleast the company my family is senior software engineer at

#

so I gotta go this one more year till I can get an internship there

#

or you could utilize connections at your university of choice to get in contact with people

#

not sure what state you're in or what university, but many colleges have internship programs on their website you can view a list of jobs on

#

I had a friend who worked at an insurance company in a non technical role and was later promoted once he was educated enough as a junior in college to get the software engineering job

worthy yarrow
#

Anyways I’m gonna go keep working, love you guys, and thank you for all the insights and information / advice!

@river oracle @ivory sleet @sly topaz

river oracle
#

Conclure 👀

#

the best

ivory sleet
#

na u

river oracle
#

that's write Conclube I know your true identity as Conclure

worthy yarrow
#

Oh btw @river oracle how long have you been going to school now?

#

And for what field

river oracle
#

But I'm 51 credits into my Computer Science bachelor's of science.

worthy yarrow
#

What all entails the comp sci?

river oracle
#

Lots of math

#

Learning about computers

#

And some programming

#

School taught me a lot about assembly low level thinking and data structures

#

Wouldn't really have learned that doing things as I was

worthy yarrow
#

So apart from these couple of things, would you say I’d be better off learning myself (either experience as I put it / reading)?

river oracle
worthy yarrow
#

Better off in terms of mastering the craft

river oracle
#

I'd say college could be a waste for compsci but you'd have to grind much harder since the market is getting to be competitive

river oracle
worthy yarrow
#

Yeah that’s fair

#

Kinda wanted to see if you differed lol

river oracle
#

Even a bad programmer probably learns things over time

worthy yarrow
#

Me

#

Kek

#

Well that’s fair, again thank you

#

Chat later cya!

grave lion
#

do you have to register aliases now? I have them in my plugin.yml and they show up in game but when its ran it says it doesn't exist

runic kraken
#

how can i fix this error

dull schooner
#

hey guys

#

is there a way to damage a tool taking into account the tool's enchantments?

#

or anything at all that would interfere, simulating the usage of the tool

loud ginkgo
#

Hello, can anyone help me? I have a server on 1.20.4 and I can't find a chat plugin for local and global that works, can you recommend one? I've tried essentials chat but there's always an error...

wraith delta
dull mountain
#

Does Spigot support the new 1.21 server links feature? If so, how can I send server links through Spigot? Thanks!

dawn flower
#

<capture of ? super capture of ? extends SyntaxObject> how do u do this exactly

#

how do u make an arraylist of that thing

dull mountain
dawn flower
#

so this is abit complicated:
i want to get the SyntaxObject a class is extending or implementing
a SyntaxObject is an interface with alot of inheritor interfaces
some classes are abstract and implement SyntaxObject
so now, how do i check what SyntaxObject a class belongs to?
examples:
public class MyClass implements SyntaxObject1 -> SyntaxObject1.class
public class MyClass implements SyntaxObject2 -> SyntaxObject2.class
public class MyClass extends SyntaxObject3 -> SyntaxObject3.class
public class MyClass extends SyntaxObject3 implements SyntaxObject1 -> throw an exception for having more than 1 syntax object

karmic falcon
#

hi, quick question, what is the event responsible for when a player interacts with chests/echests/furnaces/crafting tables and all tiled entities

karmic falcon
#

ohhhh alr

dawn flower
#

or PlayerInteractAtBlockEvent, not sure if that exists

#

nope, just use PlayerInteractEvent and get the block

indigo jasper
#

Hey, anyone know how to update this code from 1.20.4 (1_20_R3) to 1.20.6 (1_20_R4)
‘’’java

try {
int packetTypeId = ConnectionProtocol.PLAY
.codec ( PacketFlow.CLIENTBOUND )
.packetId ( packetNms );

            FriendlyByteBuf serializer = new FriendlyByteBuf ( Unpooled.buffer ( ) );

            serializer.writeByte ( packetTypeId );
            packetNms.handle(serializer);

            pipeline.write ( serializer );
            pipeline.flush ( );
        } catch ( Exception e ) {
            e.printStackTrace ( );
        }’’’
dawn flower
#

wrong quotes

#

?codeblock

undone axleBOT
#

You can use the discord code block format to display code or just text in a more pleasing way:
```java
public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {

}

}```
Becomes:

public class MyPlugin extends JavaPlugin {
    @Override
    public void onEnable() {

    }
}```
dawn flower
#

copy it from that

#

also use packetevents or a packet library, pls

worthy yarrow
#

^

indigo jasper
dawn flower
#

so you use nms..

#

nms is already a library, technically

shadow night
worthy yarrow
#

It’s not like you have to shade packetevents / protocol lib

dawn flower
#

^

shadow night
#

NMS is a dependency, but nowhere a library

dawn flower
#

nms would be provided, same as protocollib or packetevents

dawn flower
hazy parrot
hybrid turret
#

Anyone got sum on that?

drowsy helm
#

and what is "The Data guide"

hybrid turret
#

Ummmm hold on

#

7‘s data guide

hybrid turret
#

?paste

undone axleBOT
hazy parrot
#

Event is not null, your getBan method is returning null

drowsy helm
#

just show the AsyncPlayerPreLoginEVent

hybrid turret
#

Wait what

#

Was i that blind??

hybrid turret
#

I‘d also have the code for all of the parts that go into this

#

I think at least i copied all of it

#

But well if it‘s the getBan

drowsy helm
#

you never set playerDataManager

#

it's null

#

oh wait nvm

hybrid turret
#

Lombok

drowsy helm
#

ye

#

because "this.playerDataManager" is null

#

its being passed null

hybrid turret
#

Oh damn why tf is playerDataManager null what the heck

pseudo hazel
#

well, when do you ever assign the playerdatamanager to your variable in the event loop

hybrid turret
#

Main class

#

Should be at the far bottom of the 2nd link

#

Idek why this happened it just happened at some point

pseudo hazel
#

oh my bad I missed the annotation

#

also wtf is a dataclass

#

does it initialize the variables itself?

dawn flower
#

what is a sealed interface

hybrid turret
#

@Data adds a setter, a getter, equals

#

The variables are not initialized, no.

#

Oh wait

#

Ohhhhhh

hazy parrot
pseudo hazel
#

then getBan will return null

hybrid turret
#

Shiiiiiiiit

#

I cant store if a player is banned in player data ig

#

Fvck

pseudo hazel
#

why not

#

whats in the ban object

hybrid turret
#

Bc it loads the playerdata and checks if a player is banned in the same event

#

Even tho the playerdata stuff has EventPriority.MONITOR

hybrid turret
#

isBanned, reason, epoch until ban expires (if perm it‘s 1)

pseudo hazel
#

tye boolean is saying if they are actually banned?

#

whats wrong with saying Ban ban = new Ban()

hybrid turret
#

Wait

pseudo hazel
#

in your playerdata class

hybrid turret
#

Damn lol i actually never do new Ban()

#

What

pseudo hazel
#

yes thats what I am saying

hybrid turret
#

Lol

pseudo hazel
#

among probably other things

#

like initializing the lists that are in there

hybrid turret
#

If nothing is ever initialized, what is a long and a boolean set as? 0 and false?

pseudo hazel
#

yes*

umbral ridge
#

its set to "cat"

hybrid turret
#

Tbh they should all be initialized in the PlayerDBPersistenceHandler

pseudo hazel
#

then make them constructor args

umbral ridge
#

CatHandler

hybrid turret
#

playerData.setBan(new Ban(isBanned, banReaspn, banTimestamp); should work then

#

(Obv without typos)

#

Well thank you.

I sadly cant test it rn but hey at least theoretically it‘s fixed lmao

dawn flower
#

how does advanced enchants show enchants?

#

and is it possible to make something similar and make it configurable?

loud ginkgo
#

Does anyone recommend a plugin for VIP?

#

wrong chat

dawn flower
#

wdym for vip?

#

luckperms ig

loud ginkgo
dawn flower
#

do you mean VIP rank?

loud ginkgo
#

no, I want a plugin that gives VIP time and position

#

in the lp I already made the roles and permissions

dawn flower
#

please explain what VIP is

loud ginkgo
dawn flower
#

that's just luckperms

#

now what do you mean time and position

loud ginkgo
#

yes

dawn flower
#

..

rough ibex
#

yes?

dawn flower
#

are you using google translate

rough ibex
#

he said he is

dawn flower
#

he just said translator

rough ibex
#

literally "i'm using translator"

#

does it matter

dawn flower
#

yeah

#

google translate cant predict out of context

#

use something like chatgpt to translate

rough ibex
#

fuck that

loud ginkgo
#

the translator sometimes gets the translation wrong, sorry

rough ibex
#

i understand him

dawn flower
#

what does he mean by time and psoition

rough ibex
#

time and position of what

#

of another player? of their own?

dawn flower
#

you just said u understand him

rough ibex
#

yeah, I do

#

we are communicating

wet breach
dawn flower
#

temporary ranks?

rough ibex
#

but position

dawn flower
#

how high it is to other ranks

rough ibex
#

then they'll have to clarify

wet breach
loud ginkgo
#

I'll try to explain, I want a plugin that when the person pays me for the VIP he receives the VIP position, but when the VIP time is up he loses the position automatically, for example, 30 days

rough ibex
#

there we go

dawn flower
#

amazing

#

use temporary ranks

#

use tebex

#

and lp

loud ginkgo
#

ok, temporary ranks are a plugin?

dawn flower
#

it's in luckperms

#

it's /lp user %player% addtemp vip 30d

#

i think

loud ginkgo
#

hmm

#

ex: /lp user ilmira addtemp VipMoon 30d ?

dawn flower
#

try that

pseudo hazel
#

what translator are you using

#

I think one of chatgpt's only strengths are translation, so maybe give that a shot

wet breach
loud ginkgo
#

I'm using Google translator

dawn flower
#

also add accumulate after 30d, so if someone buys it twice they get 60d not 30d

#

so /lp user ilmira addtemp VipMoon 30d accumulate

loud ginkgo
#

don´t work

dawn flower
#

/lp user ilmira parent addtemp VipMoon 30d accumulate

loud ginkgo
#

work!!!

#

you saved me man

dawn flower
#

:D

loud ginkgo
#

S2

#

thank you very much

dawn flower
#

np

sullen canyon
wet breach
#

deepl is good for Cyrillic languages

pliant topaz
#

deepl sadly doesnt support some languages

#

or better saying, many

loud ginkgo
# dawn flower np

I have one more question, can you tell me about a kit plugin that opens a menu and allows you to configure everything in it? I didn't like the playerkits very much

dawn flower
#

maybe try playerkits 2

loud ginkgo
dawn flower
#

Cannot resolve method 'this(String, String, null, Event, TurboSection, String[])'

public ParsedElement(@Nonnull String name, @Nullable String unparsedTarget, @Nullable Object target, @Nonnull Event event, @Nullable TurboSection section, String... args) {
am i stupid or is intellij smoking something

#

can an object parameter not be null?

#

what in the world

#

wtf

#

can i cast null into an object or will it go kaboom

junior bough
#

1.8.9

eternal oxide
#

Then multiple ArmorStands

wet breach
dawn flower
#

yeah

#

i just had to cast null to object

wet breach
#

oh I see now, you are using lowercase null

#

probably could have just changed it to Null

dawn flower
#

the apache one?

loud ginkgo
#

Hello again, what is the best programming language to start studying?

dawn flower
#

eh, im just gonna stick to casting, it looks better than new keyword

dawn flower
wet breach
#

lol, well if it works now I guess not an issue

hazy parrot
dawn flower
loud ginkgo
#

ugh, I was studying Java haha that's why I'm suffering so much

hazy parrot
dawn flower
#

java would be hell for starters

hazy parrot
#

You can pretty easily learn fundamentals with C

chrome beacon
hazy parrot
#

Also with java

loud ginkgo
dawn flower
#

it honestly depends on what you want to do

hazy parrot
#

But if you don't want to mess with objects in begining, c is perfect imo

loud ginkgo
#

I want to be able to make plugins for my server

dawn flower
#

then go straight for java

wet breach
eternal oxide
#

Java. Its a clean syntax. Just get teh basics down and its not a steep learning curve

loud ginkgo
#

I want to make a chat plugin that works with the other plugins I put aaaa how difficult is it haha

eternal oxide
#

C is a good language but not beginner friendly

dawn flower
#

^

#

and has unique stuff that you will never want as a plugin developer such as pointers

loud ginkgo
#

so should I keep learning java?

dawn flower
#

yeah

#

and make simple plugins, don't just learn without testing yourself

eternal oxide
#

pointers will confuse th fuck out of many people

dawn flower
#

i got the hang of pointers in like 10 minutes

wet breach
#

pointers are easy as long as its explained appropriately

loud ginkgo
#

What is the best PC application to make plugins? I tried to do 1 using notepad :Skull:

dawn flower
#

notepad...

hazy parrot
#

Of course you wouldn't do pointers if you want to learn fundamentals with c

dawn flower
#

intellij idea or eclipse (intellij idea pls)

eternal oxide
#

yep until you try to understand pointer references

hazy parrot
#

But simple branching, functions and variables

eternal oxide
#

is this a pointer or a pointer to a pointer

loud ginkgo
#

What is a pointer? here the translator is saying that it is a doubt

dawn flower
#

don't think about pointers

dawn flower
#

he wants to do java, don't confuse him

eternal oxide
#

yeah, ignore pointers. Don;t go near them to learn java

loud ginkgo
#

ok. kkk

#

So which app should I use to learn Java? and use java

dawn flower
#

honestly, youtube and experiments

#

you get better everytime you code anyways

onyx fjord
loud ginkgo
dawn flower
#

you can watch like 4 hours of java basics then afew spigot tutorials and you would be able to create decent plugins

loud ginkgo
hazy parrot
#

If u are willing to pay, jetbrains hyperskill is awesome project based learning platform

dawn flower
onyx fjord
dawn flower
onyx fjord
#

Or buy additional lives with gems

hazy parrot
#

It's pain in the ass

#

U have like 3 lives

dawn flower
#

you don't get to use most of the stuff

eternal oxide
#

I use Eclipse. Most use InteliJ

loud ginkgo
#

It's difficult to find someone who explains this in Portuguese, few people who deal with this make videos explaining it

dawn flower
#

youtube has auto captions

eternal oxide
#

Eclipse is free Ij is free for students, else pay for license

loud ginkgo
#

true

onyx fjord
#

You should know English somewhat ok when you're learning a programming language

dawn flower
hazy parrot
onyx fjord
loud ginkgo
#

what do you mean for students?

dawn flower
onyx fjord
#

Only ultimate version with additional plugins is paid, community is free and open source

eternal oxide
#

IJ has a cut down version for free. If you are a student you can get a full version

hazy parrot
dawn flower
#

i didnt even check hyperskill

#

so maybe you're right

onyx fjord
#

Not everyone needs those

#

And you have free alternatives on plugin market

dawn flower
#

my point is you don't have to pay to get into programming

hazy parrot
#

I never said u have

dawn flower
#

i know

#

just forget it

onyx fjord
#

You only pay for more efficient workflow with some frameworks (you won't even touch them as beginner)

loud ginkgo
#

Is this free trial for a while or is it just the limited version?

dawn flower
#

intellij idea community edition?

pseudo hazel
#

intellij community is all you need

dawn flower
#

^

pseudo hazel
#

especially when you start out

#

most if not all ultimate features wont even be applicable to you

loud ginkgo
#

is this page?

dawn flower
#

yeah

#

also i just realized intellij idea ultimate is 600$

#

wha-

sly topaz
#

I mean, most individuals don't pay ultimate

#

they either get the open source or the student license

dawn flower
#

if i'm paying 600$ for an ide, it better code by itself

#

ah

loud ginkgo
#

this page opens when I click, the paid version with a 30-day free trial. I hope that in 30 days I can make a chat plugin for my server

dawn flower
#

scroll down

sly topaz
#

open source license is very nice, allows you to create a project and as long as it stays open source and is actively maintained, you can get ultimate

loud ginkgo
#

oh my god, I feel so stupid...

dawn flower
#

nah u aint, it's just that intellij made the ultimate always be on top

#

even if u searched for community

sly topaz
dawn flower
#

it's kinda scummy ngl, someone might seriously think they intellij is only paid

#

but still can't blame them

loud ginkgo
#

ok, I'll look for a course that teaches Java.

quiet ice
sly topaz
#

they are the only player in town, the only people you may see using eclipse or netbeans are enterprise which have sold their soul to them

loud ginkgo
#

I'm new to programming, I'm just better with robotics rsrs

sly topaz
#

you may find eclipse users in the wild at times, but IJ has pretty much the whole marketshare covered nowadays, at least in the Java ecosystem

dawn flower
#

i mean, kotlin is used alot to make mobile apps and i don't think eclipse supports kotlin

pseudo hazel
tardy delta
#

vim

sly topaz
#

vim for java is a joke

#

vscode is getting there, but IJ shits all over it

dawn flower
#

i personally prefer notepad

#

high quality code above ^

tardy delta
#

notepad and terminal

#

would work pretty good

#

i used to work with nvim with no plugins which was basically like that

dawn flower
#

too many syntax errors tho

#

i always forget the ;

tardy delta
#

use kotlin and you dont have that problem

#

that whole file becomes

package me.missingreports

println("Yes.")
dawn flower
#

that just makes it a mix of python and js

sly topaz
#

with the upcoming version of Java next month, you will be able to do:

void main() {
  println("Yes.");
}
sly topaz
#

that is with instance main method and unamed classes + module imports

dawn flower
#

what java ver

sly topaz
#

you can already do that in 21/22, with the preview flag

sly topaz
#

but the upcoming versions allows you to just write println instead of System.out.println

tardy delta
#

also implicit imports for java.util.*

sly topaz
sly topaz
tardy delta
#

never done any other language?

sly topaz
#

that is why, as a superior being, use mspaint to write all my java code

dawn flower
#

does this mean i dont have to import java.util.List

tardy delta
#

yes

dawn flower
#

that's fucking amazing

tardy delta
#

if only those fuckers add f strings

#

instead of their filthy string templates

dawn flower
sly topaz
eternal night
sly topaz
pliant topaz
dawn flower
#

someone bouta update

smoky anchor
# tardy delta yes

Reading the JEP makes me think this works only for those single class programs

tardy delta
eternal night
#

I mean, even for formatting they are pretty much the same?

tardy delta
#

i would imagine you could do some kind of sql statement processing with them

eternal night
#

I don't see how they fail at normal string formatting

tardy delta
#

they dont fail, they just look cringe 😂

eternal night
#

how so?

dawn flower
#

am i supposed to download the msi installer

eternal night
chrome beacon
#

the zip is for manual install

eternal night
#

if you are talking about STR."hello \{world}" then yea

#

I get that they may be called cringe

chrome beacon
#

It's gone

tardy delta
#

yes

eternal night
#

yea

dawn flower
#

the "compressed" zip is bigger than the msi

eternal night
#

that is long gone

sly topaz
#

just link the summary video on the official Java channel smh

eternal night
#

watching videos when you can have the mailing list skully

chrome beacon
#

yeah the Java channel does have some useful videos uwu

sly topaz
#

and I'm the huge nerd here

dawn flower
#

aint no way i got scmamed

#

i just downloaded java 22

tardy delta
#

why the backslash, why the backslash 🗿

chrome beacon
#

it explains it

dawn flower
#

oh wait i can just download it straight from intellij

tardy delta
#

thank you frost

#

tldr: they thought their string processors werent elegant and they were wondering why they even needed them over a function with accepts a string template?

dawn flower
#

scammed again 😭

#

what in the world is a "string processor"

chrome beacon
#

nothing anymore

chrome beacon
dawn flower
#

where is that

chrome beacon
#

(I think it's still in preview)

#

Project settings

sly topaz
#

I said that part is not released yet

dawn flower
#

goddamn it

sly topaz
#

you can do:

void main() {
  System.out.println("Hello, World!");
}
dawn flower
#

i just want to println man 😭

sly topaz
#

you still have to enable previews though, it should be in the module settings, language level

#

Ctrl + Shift + Alt + S to enter module settings

dawn flower
#

oh

sly topaz
#

or right click a module

dawn flower
chrome beacon
#

language level

dawn flower
#

there's barely anything

sly topaz
#

Language level

dawn flower
#

then?

sly topaz
#

choose the latest version it allows you

#

experimental features is fine too

#

is your IDE outdated? latest is 22

chrome beacon
#

yeah probably outdated Intellij

twin venture
#

Hello there , its been a while ...

so iam making a custom kit system and i was wondering if its good to store custom data on the items.. i need a way to work on 1.21 , and older back to 1.8 ..
or should i do it when i give the kit to the player?

#

i need custom data to be stored so i can check if this item can be droped or disposed or other checks ..

sly topaz
#

I mean, you can't store custom data on items without PDC, and PDC wasn't a thing before 1.14. At least not through API

smoky anchor
# dawn flower scammed again 😭

Apart from enabling preview features, the base import is only in the unnamed class (or whatever they are calling it now)
Or at least that is how I understood that JEP

sly topaz
#

of course, if you are handling multiple files, you should actually init a project and use an IDE lol

chrome beacon
twin venture
#

thanks

smoky anchor
onyx fjord
#

what should be the size of a master access key to my rest api?

onyx fjord
#

i currently have it as a hashed with Sha256 as Base64 using 384 random bytes

#

but i feel like im doing something wrong

chrome beacon
#

Just to be safe uwu

onyx fjord
#

my use case is too minimal

#

chat gpt told me i should decrease the size of my randomly generated bytes

#

i guess i will do 256 instead to match what SHA-256 gives

foggy cave
#

does anyone know what version custom model data was added in

#

is there a way to check?

slender elbow
#

Minecraft wiki

foggy cave
#

oh ok

#

found this but it doesnt show version

smoky anchor
foggy cave
#

thanks

mellow edge
#

Hello, if my spigot plugin works with 1.8 and 1.21, can I use the same bungee cord api version for connecting players to another server at the end of a minigame?
I am specifically refering to this code:

            ProxiedPlayer proxyPlayer = getProxy().getPlayer(uuid);
            if (proxyPlayer != null) {
                proxyPlayer.connect(PROXY.getServerInfo(LOBBY_SERVER_NAME));
            }

Unrelated: using bungeecord api isn't compatible with waterfall, right?

pseudo hazel
#

i thought waterfall was a bungeecord fork

#

but im not sure

mellow edge
#

it indeed is

#

but idk for my case if it works...

sullen canyon
quaint mantle
#

its giving me an error that there is no pom.xml in the parent directory but there is, i am new to plugin development so please put it into simple very understandable terms for me

quaint mantle
#

yes

humble tulip
#

You should probably switch to intelliJ to make your life easier

quaint mantle
#

my pc cant handle that

tardy delta
#

include the flag to specify the file explicitly

humble tulip
#

limitedmace

pseudo hazel
#

looks like you have 2 limitedmace folders in each other maybe?

humble tulip
#

Vs LimitedMace

pseudo hazel
#

i dont think windows cares about case sensitive paths

#

but maven might i guess

humble tulip
#

Go to Music/LimitedMace

quaint mantle
#

okay

humble tulip
#

And send a screenshot of what's there

quaint mantle
humble tulip
#

Yep

pseudo hazel
#

yes

#

its a folder within a folder

quaint mantle
#

what do i do?

pseudo hazel
#

idk

#

tell it to look in a different place

humble tulip
#

So you don't have a pom inside Music/LimitedMace but inside music/LimitedMace/LimitedMace

#

How are you building?

#

What do you do to run maven?

quaint mantle
#

ctrl shift p

humble tulip
#

You may also wanna copy everything from limitedmace into LimitedMace and delete limitedmace

#

That should fix it

quaint mantle
#

create new maven project

#

version

#

and the other things it needs

humble tulip
#

No?

quaint mantle
#

and done

humble tulip
#

Just copy the files using windows

mellow edge
#

so I must use register outgoing channel in spigot api, called 'BungeeCord' and then send plugin message as player Connect and server-name in order to teleport him to another server on bungeecord/waterfall network?

quaint mantle
#

what now

mellow edge
quaint mantle
#

do i have anything wrong in the version

hazy parrot
#

Why are u depending on bukkit

quaint mantle
#

can i switch to spigot or is it too latr

sullen marlin
#

yes should be org.spigotmc and spigot-api

quaint mantle
#

yeah but ill have to switch everything in the code

sullen marlin
#

no

quaint mantle
#

no?

#

so do i switch to that and compile

#

same error different api

eternal oxide
#

looks like you have no repository in your pom

#

add teh spigot repository or run buildtools for the version you want

#

?maven

undone axleBOT
river oracle
#

1.21.0 👀

#

That's not a version champ

#

@quaint mantle ^

quaint mantle
#

huh

river oracle
#

I think you're looking for 1.21.1

eternal oxide
#

remove .0

river oracle
#

1.21.0 isn't a version

quaint mantle
#

no 1.21

river oracle
#

Use 1.21.1

#

Unless you like crash exploits then don't ig

quaint mantle
#

alright so what do i put

#

<version>??</version>

sly topaz
#

1.21.1-R0.1-SNAPSHOT

humble tulip
#

Bro use intellij😭

quaint mantle
humble tulip
#

What kinda pc do u have

pseudo hazel
#

based

#

but still

quaint mantle
#

im using a laptop bru

humble tulip
#

I also use a laptop

slender elbow
#

i also use a laptop

sly topaz
#

how, I got the shittiest laptop ever and I can run IJ just fine

quaint mantle
#

u prob got a high tier laptop

humble tulip
sly topaz
#

this got a celeron N4020 bro

pseudo hazel
#

my 10 year old laptop can run intellij just fine

humble tulip
#

And a single minecraft instance and a server

slender elbow
#

8 gb ram, hdd, 2 cores 4 threads

humble tulip
#

Your laptop can run it trust

echo basalt
#

I ran a jetbrains ide on 4gb ram 4th gen laptop i3

#

dw about it

#

just close everything

quaint mantle
#

8 gb ram, 4 core hdd

humble tulip
#

That's good enf

sly topaz
#

it's painful because anything lighter than intelliJ lacks severely in terms of features so you got to choose your poison

torn shuttle
#

am I crazy in wondering why server costs seem to keep going up instead of down

eternal oxide
#

running windows? 8 gig is not going to run well with InteliJ

slender elbow
#

i am

sly topaz
blazing ocean
slender elbow
#

i mean it's by no means the fastest computer, but it does the job

quaint mantle
#

honestly im instaling inteliij

sly topaz
quaint mantle
#

but is there any alt to just limit the mace to one per server

#

when its lost you can get another one

#

i know it can be made into a datapack but i failed in doing that

sly topaz
#

I mean, anything is possible

quaint mantle
#

without me having to learn a new skill

pseudo hazel
#

how do you know if its lost

sly topaz
#

how are maces even obtained, I haven't played new versions yet

#

you just have to limit that

humble tulip
#

When you install IJ install the minecraft development plugin

#

Makes creating projects easier

#

Also don't keep projects in ur music folder😂

woeful void
#

someone can help me

tardy delta
sterile breach
#

how can I get Material list (id)?

humble tulip
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

woeful void
pseudo hazel
#

you have to go to a trial chamber and juice it up into the upgraded chamber, get the upgraded key, get mace head piece from the vault, kill breeze for a rod and then combine it in a crafting table

woeful void
humble tulip
#

Since they are both not handled by completable futures

#

Yes

woeful void
humble tulip
#

What do you mean?

#

I just load what's needed and unload it when it's not

woeful void
# humble tulip What do you mean?

Imagine, the person with /money pay nickname 1, you update the new money from the person who sent it in the cache and then the scheduler updates the money in the database or you update it in the database and as soon as you update it, you update it in the cache?

humble tulip
#

Are you doing multiserver currency?

woeful void
#

no

#

singleserver

humble tulip
#

Probably just cache all players balance

#

Into a map and dump it into the db regularly

woeful void
humble tulip
#

Or u can update the db on each transaction async

woeful void
humble tulip
#

But cache everything

#

It depends on the usecase

sly topaz
#

do you need it to be real time, is the better question

humble tulip
#

Updating on each transaction is more costly but guarantees less data loss on a server crash

woeful void
pseudo hazel
#

yeah the reason for using a databass is backup for when it crashes and for loading the data again after restarting normally too

#

but writing to external systems is always more expensive than keeping it local

sly topaz
#

I mean, that depends on the scale really, I doubt your server is doing enough queries for it to be a problem

pseudo hazel
#

atleast in like almost any case

woeful void
sly topaz
#

but if you think that it'll reach that scale, then you're better off caching things

woeful void
#

and another thing, imagine that I update a Map<Currency, Double> in a User and then I schedule a task in onCommand (main thread) to make an update in the database (the update is in another thread). If I then use thenaccept of future and update this map, adding for example money to a Currency to the player, do I need this Map to be ConcurrentHashMap or is it enough to be HashMap? I modify the map only in the main thread (in thenaccept) and read the map only in the main thread

tardy delta
#

ideally yes

#

could make it synchronized too

woeful void
#

use concurrenthashmap?

coarse inlet
#

io.netty.handler.codec.EncoderException: java.lang.NoSuchMethodError: 'org.bukkit.advancement.Advancement net.minecraft.advancements.AdvancementHolder.toBukkit()'
[12Aug2024 12:01:39.988] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Alpha_Kuttan left the game
[12Aug2024 12:10:00.514] [User Authenticator #9/INFO] [net.minecraft.server.network.ServerLoginPacketListenerImpl/]: UUID of player Alpha_Kuttan is

#

How to fix this problem

quaint mantle
#

which do i install?

tardy delta
#

mismatched api version and server version?

#

wdym which do i install

pseudo hazel
coarse inlet
coarse inlet
tardy delta
#

youre making a plugin right?

quaint mantle
tardy delta
#

other dude 🗿

indigo jasper
quaint mantle
#

so only .java and .pom

indigo jasper
#

seems fun to respond, sorry

tardy delta
#

other one 🗿

coarse inlet
tardy delta
#

what plugin is this and what version

smoky anchor
tardy delta
#

little fuckers

quaint mantle
#

i feel like i am getting trolled here

tardy delta
#

i cant believe how elgarl survives in this channel

quaint mantle
#

is .java and .pom the only associations i need

tardy delta
#

if you want that

pseudo hazel
#

associations dont matter

smoky anchor
tardy delta
#

if you create a file association for .java, it will open all .java files with ij by defualt

pseudo hazel
#

its just which files will open intellij when you click on them in the file exporer

quaint mantle
#

oh ok

pseudo hazel
#

yeah

#

I use vsc for anything that arent project files xD

eternal oxide
tardy delta
#

uhh

sly topaz
tardy delta
#

🗿

eternal oxide
#

oh

sly topaz
#

use one of the lock implementations from the concurrent package

#

synchronized doesn't play well with virtual threads right now

coarse inlet
eternal oxide
#

yeah, costs a few brain cells 🙂

tardy delta
#

feels a bit overkill if there isnt a lot of concurrency

indigo jasper
tardy delta
#

buddy i asked you what plugin and what version

#

if you dont know what plugin causes it, go remove them and check them all

indigo jasper
tardy delta
#

i have no clue what forge servers even are lol

chrome beacon
#

So a hybrid server then

indigo jasper
#

me neither

chrome beacon
#

Not supported

orchid trout
#

can someone tell me why this check exists in an anticheat?:
Math.abs(location.getX()) > 1.0E7 || Math.abs(location.getY()) > 1.0E7 || Math.abs(location.getZ()) > 1.0E7 || Math.abs(location.getPitch()) > 1.0E7 || Math.abs(location.getYaw()) > 1.0E7
just seems unnecessary

sly topaz
#

client can send abnormal locations in order to do shit I assume

orchid trout
#

ok

wintry dagger
wet breach
#

if the amount of numbers past the decimal exceeds what is allowed, it will literally chop off the extras and round up

#

this check is to prevent that

#

floating point anomalies for you if you weren't aware of them before 😉

#

however also note each system handles floating points differently in this regard too so its not exactly consistent

#

some systems can accept a higher precision others less. That check should be dynamic if anything in checking that

#

so that is one of its flaws I suppose

quaint mantle
#

okay how do i compile it using gradle im on itellij

eternal night
#

Open the gradle tab, find tasks, find build

sly topaz
#

double shift

#

clean build

quaint mantle
#

alright i built it

#

where do i find the ajr

#

the jar file

rough drift
#

output/lib/

#

or build/lib/

#

whatever

remote swallow
#

build/libs

quaint mantle
#

ty

orchid trout
wet breach
#

oh right absolutes

#

oh no that makes sense how they have

#

nope not sure then

#

because limit is 30mil if I recall for the game

pseudo hazel
#

either that or 15 mil from center

#

but I think it is -30 to 30mil

#

but you wouldnt really have any purpose going beyond 10 mil

#

so I guess they just didnt bother with this check

wet breach
#

well its flawed either way because of floating points anyways

coarse inlet
#

Bro are you using arclite version server

pseudo hazel
#

right but still

wet breach
#

since location can be a float, and using abs would also cause rounding errors

orchid trout
#

why does it check if the pitch and yaw is above that tho

pseudo hazel
#

idk ask the dev xD

wet breach
#

I think some experiments need to be done in regards to this check

orchid trout
#

his plugin is supposed to be obfuscated

sly topaz
#

again, the client may send random shit to crash the server or something like that most likely

wet breach
sly topaz
#

it used to be a common pattern way back in 1.7, 1.8

warm mica
orchid trout
pliant topaz
#

Is there a way i can detect when a crash is happening or save the server upon crashing?

rough drift
swift dew
#

is there any way to check if a player is looking at the block they broke?
what i tried but didnt work when i rotated fast while breaking blocks:

  • looping all blocks within 5 meters distance with a block iterator (starting from the player's eye location) in a break block event
  • having a loop that runs every tick that stores all players' locations, and looping all blocks within 5 meters distance with a block iterator (starting from each of all the recorded player's eye locations) after 2 minecraft ticks in a break block event
    extra: i tried to use both protocollib packets and bukkitrunnables for recording positions
pliant topaz
pliant topaz
#

so a critical exception in the main thread

quaint mantle
rough drift
pliant topaz
#

okay, ty :)

rough drift
#

np

pliant topaz
#

is there also a way to do this when the server overloads and forces itself to crash as a tick took too long?

rough drift
#

you can change the spigot settings yml

#

to change how many seconds it should take

#

i.e. you can set it to "infinite" using Integer.MAX_VALUE

#

like 2147smt

#

what you doing this for btw?

pliant topaz
#

ig ill just wait until the server is just before shutting itself down, so it saves

pliant topaz
rough drift
pliant topaz
#

there are frequent backups, but just in case

rough drift
pliant topaz
#

uiii

rough drift
#

it will not run if the JVM itself crashes

#

but you can't do anything about that

pliant topaz
#

yea

#

thx tho

rough drift
#

WARNING

#

there is a time limit

#

and a catch

pliant topaz
#

time limit to what?

rough drift
#

Runtime.getRuntime().halt() will skip the shutdown hooks

rough drift
pliant topaz
#

oh i see

#

shouldnt be a problem

rough drift
#

wait nvm

#

that was in an old version

#

but

#

if the process is forcefully killed, if halt is called on the runtime, or the jvm crashes, that won't run

#

do not call anything that tells the process to exit inside a shutdown hook, or it will cause a deadlock

#

and do NOT throw runtime exceptions in there

#

@pliant topaz

pliant topaz
#

nothing i wanted to do anyway

quaint mantle
#

Make db queries sync at this point

rough drift
#

actually

pliant topaz
#

its only for trying to save

rough drift
#

sync to the thread you add into the shutdown hook

pliant topaz
rough drift
#

the world itself??

pliant topaz
#

yea

rough drift
#

why???

pliant topaz
#

wait

#

oh yea

#

would be easier to just store the players inv/effects etc

swift dew
pliant topaz
#

inv is alr in the database and the world is really never saved.. huh

rough drift
#

it would

pliant topaz
#

now i feel stupid

rough drift
pliant topaz
#

because i forgot how my plugin itself works lmao

grim hound
#

Is there any way to modify the command block gui?

pliant topaz
#

wdym with modify excactly?

#

like modifiying ui elements?

grim hound
#

Like change the buttons

#

Leave just one button

#

The text

pliant topaz
#

its hardcoded iirc

grim hound
#

Hmm

ivory sleet
#

yep its very hard coded

pliant topaz
#

for the text u could use a texturepack as it uses translations

grim hound
#

I just need the player to paste a long text into something

#

Like 500+ characters long

pliant topaz
#

why do you need this excactly?

grim hound
#

To get the token they got from a website

pliant topaz
#

i mean, the player already can paste 500+ chars into the cmd block

swift dew
# swift dew thanks now its working

update: i acted too fast (sry about that), the reason i thought it was working is because i forgot to check if the arraylist contained the right block and i only checked if it contained any blocks
i think the problem is in the recording of players' locations and not on the raytrace method im using, it seems like sometimes, the client-side location that the block break event happened is not sent to the server

grim hound
swift dew
#

send a cmd?

pliant topaz
grim hound
#

I'll go with it if there aren't any alternatives

grim hound
pliant topaz
#

i mean, to even access a cmdblock normally you need operator

grim hound
pliant topaz
#

you dont even need packets for that i think

grim hound
#

I do 98% of stuff with packets

pliant topaz
#

is there maybe a way you could shorten the amount of chars?

grim hound
#

PacketEvents amen

pliant topaz
#

like, that the initial text provided by the website is shorter?

grim hound
pliant topaz
#

hm

swift dew
#

what are you trying to do? give a url to a player?

pliant topaz
#

i think youd just have to use the normal cmdblock interface then

rough drift
grim hound
swift dew
#

why

pliant topaz
grim hound
pliant topaz
#

its a translation

swift dew
#

cant u use books or smth?

grim hound
#

Oh the text could be there

grim hound
swift dew
grim hound
#

Normal chars

#

It's way less

swift dew
#

you have multiple pages too

#

so you can paste part of the text to each page

grim hound
swift dew
#

notepad

#

and split it

grim hound
shadow night
#

What you guys doin'?

grim hound
#

Tryna paste

shadow night
#

paste what

grim hound
#

Have the player paste

swift dew
#

what are you even trying to paste a url?

grim hound
#

A long text

#

In-game

swift dew
#

why would you need that tho

shadow night
#

what for

grim hound
grim hound
stuck oar
#

how would i loop a list

#

like

#

for each item in a list

#

do sum

shadow night
swift dew
grim hound
#

List::forEach

stuck oar
#

thanks

grim hound
swift dew
#

cant u use discord?