#help-development
1 messages · Page 1099 of 1
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
also I reccomend getting your GED atleast
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
I assume boot camps just teach you as if it were a trade, specifically into one topic and that’s all your training
Well that’s certainly first on the list, I just need to get financially stable before shipping off to school somewhere, but I’m also a huge procrastinator so that certainly does not help
getting your GED should be free
yeah but time
oh well still considering your young
I’ve been slacking
I'd recommend getting to it as fast as possible
if you live at home your time isn't worth as much
you'll regret it when an opportunity comes and something dumb as not having a GED stops you
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
GED GED GED seriously a highschool degree goes so far. Not going to college definitely is excusable but getting a GED is paramount
It’s weird, I’ve never been one to read but crack my skull open and I absorbed 6 books in 6 months lol
So everyone says, I just hate the fact you need a paper to get most jobs
peaceful people can become violent
ngl a highschool education requirement makes sense
there is so many basic skills you're required to master in highschool
dropping out should probably limit your availability
I mean
ofc their are edge cases, but really a highschool education is big
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
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
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
everyone hates it, and if you know your trade then you can make a living without one just fine. The issue is the ceiling
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
college degree isn't at all necessary
especially if you're a trades person I'd say its idiotic
Still, the ceiling as mentioned, is limited
GED shows basic competency
sucks but how it works
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
ehh, not really, more in the sense that you can get into circles that you normally can't more easily, whether that's worth your time considering you'd have to put aside your trade depends on the person though
if you are in a trade I think its 10x more important to find a good trade school and mentor
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
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
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
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
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.
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%
I've never gotten a programming book before
all my knowledge is just from fucking up so many times lol
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
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
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
did you change a lot after your injury?
I know that tends to happen, my mom worked in a brain trauma hospital
My father, grandparents, etc definitely say so
yeah there are weird cases where getting a brain injury can actually make you "more intelligent" per se
They said it seems to have lit a fire brighter than I’ve had before so
but more often than not the reverse happens :P
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
OOP lessons sounds interesting
He’s a good teacher, he put some good concepts into words I could understand
I've never actually looked into OOP at all I pretty much just YOLO everything
Well that’s where your experience is the best ally
You know what works and what doesn’t
almost at 4 years of being a coderer
Sure everything can be improved but for the most part you know what you’re doing
I can't believe I started 4 years ago 😭 I feel so old
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
I didn't even have a PC till 2017 I was tech illiterate until like 2019 lol
But I’d say that 2 years follows a more logical thinking process than actual coding experience
I started writing AHK over the summer in 2020
my code from three years ago is so fucking wild
https://github.com/Y2Kwastaken/SimpleHoes/
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
I've probably coded for over 6000 hours at this point 😭
probably close to 7000ish or something
Yeah I strive to be as knowledgeable as you guys
I'm not knowledgeable at all :P I'd strive to be knowledgeable like someone else in here
I ain't it chief
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
^
I kinda got a silver spoon in my mouth so I am not really one to talk
I’ve changed a couple school policies in my time by just gathering information and presenting it in a way that makes sense
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
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
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 🤷♂️
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
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
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
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
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
na u
that's write Conclube I know your true identity as Conclure
Oh btw @river oracle how long have you been going to school now?
And for what field
I'm in my first year of college technically
But I'm 51 credits into my Computer Science bachelor's of science.
What all entails the comp sci?
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
So apart from these couple of things, would you say I’d be better off learning myself (either experience as I put it / reading)?
Depends on your situation and ability to network.
Better off in terms of mastering the craft
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
In terms of mastering the craft experience trumps all
Even a bad programmer probably learns things over time
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
[07:09:48 ERROR]: [GOATMC_Tools] Błąd EOFException podczas deserializacji efektów mikstur: null https://pastebin.com/FMKum9nx
how can i fix this error
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
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...
No you do not need to register it, you need one main command that is registered and underneath that inside plugin.yml is aliases: [one, two]
Does Spigot support the new 1.21 server links feature? If so, how can I send server links through Spigot? Thanks!
<capture of ? super capture of ? extends SyntaxObject> how do u do this exactly
how do u make an arraylist of that thing
Nevermind, I found it:
ServerLinks links = server.getServerLinks();
I'm now sending links from onEnable(), and it seems to be working. Awesome new feature!
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
hi, quick question, what is the event responsible for when a player interacts with chests/echests/furnaces/crafting tables and all tiled entities
PlayerInteractEvent
ohhhh alr
or PlayerInteractAtBlockEvent, not sure if that exists
nope, just use PlayerInteractEvent and get the block
nvm i figured it out
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 ( );
}’’’
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() {
}
}```
^
I don’t want to use one more library since I’m using already too many libraries into my plugin
not really
It’s not like you have to shade packetevents / protocol lib
^
NMS is a dependency, but nowhere a library
nms would be provided, same as protocollib or packetevents
i mean a dependency
Why not make the SyntaxObject be a sealed interface ?
Anyone got sum on that?
can you show your code
and what is "The Data guide"
That is a LOT of code :|
I‘ll try ig lol
?paste
Event is not null, your getBan method is returning null
just show the AsyncPlayerPreLoginEVent
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
Lombok
well, when do you ever assign the playerdatamanager to your variable in the event loop
Main class
Should be at the far bottom of the 2nd link
Idek why this happened it just happened at some point
oh my bad I missed the annotation
also wtf is a dataclass
does it initialize the variables itself?
a what?
what is a sealed interface
@Data adds a setter, a getter, equals
The variables are not initialized, no.
Oh wait
Ohhhhhh
Interface which allows only certain classes to implement it, you can google about it
then getBan will return null
alr
Bc it loads the playerdata and checks if a player is banned in the same event
Even tho the playerdata stuff has EventPriority.MONITOR
A boolean, a string and a long
isBanned, reason, epoch until ban expires (if perm it‘s 1)
tye boolean is saying if they are actually banned?
whats wrong with saying Ban ban = new Ban()
Wait
in your playerdata class
yes thats what I am saying
Lol
If nothing is ever initialized, what is a long and a boolean set as? 0 and false?
yes*
Tbh they should all be initialized in the PlayerDBPersistenceHandler
then make them constructor args
CatHandler
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
how does advanced enchants show enchants?
and is it possible to make something similar and make it configurable?
what? I'm using translator rsrs
i am from brazil
no, I want a plugin that gives VIP time and position
in the lp I already made the roles and permissions
please explain what VIP is
yes
yes
..
yes?
are you using google translate
he said he is
he just said translator
yeah
google translate cant predict out of context
use something like chatgpt to translate
fuck that
the translator sometimes gets the translation wrong, sorry
i understand him
what does he mean by time and psoition
you just said u understand him
maybe the rank is for a time period as opposed to being permanent?
temporary ranks?
but position
how high it is to other ranks
then they'll have to clarify
yeah they will need to clarify a little bit
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
there we go
ok, temporary ranks are a plugin?
try that
what translator are you using
I think one of chatgpt's only strengths are translation, so maybe give that a shot
google translate, its good enough for where they are from
I'm using Google translator
did this work
also add accumulate after 30d, so if someone buys it twice they get 60d not 30d
so /lp user ilmira addtemp VipMoon 30d accumulate
don´t work
/lp user ilmira parent addtemp VipMoon 30d accumulate
:D
np
deepl is pretty much the best rn
not for everything
deepl is good for Cyrillic languages
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
I would ask the question now about where I ask these questions, I wasn't sure, thanks kk
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
1.8.9
Then multiple ArmorStands
this refers to the class object. So is the class named ParsedElement?
oh I see now, you are using lowercase null
probably could have just changed it to Null
the apache one?
Hello again, what is the best programming language to start studying?
eh, im just gonna stick to casting, it looks better than new keyword
definatly don't start with java or any C language
lol, well if it works now I guess not an issue
What
start with something simple, so you get a general idea about programming
ugh, I was studying Java haha that's why I'm suffering so much
I wouldn't agree with this
java would be hell for starters
You can pretty easily learn fundamentals with C
eh not that bad
Also with java
I noticed
it honestly depends on what you want to do
But if you don't want to mess with objects in begining, c is perfect imo
I want to be able to make plugins for my server
then go straight for java
I think many people should learn C
Java. Its a clean syntax. Just get teh basics down and its not a steep learning curve
I want to make a chat plugin that works with the other plugins I put aaaa how difficult is it haha
C is a good language but not beginner friendly
^
and has unique stuff that you will never want as a plugin developer such as pointers
so should I keep learning java?
pointers will confuse th fuck out of many people
i got the hang of pointers in like 10 minutes
pointers are easy as long as its explained appropriately
What is the best PC application to make plugins? I tried to do 1 using notepad :Skull:
notepad...
Of course you wouldn't do pointers if you want to learn fundamentals with c
intellij idea or eclipse (intellij idea pls)
yep until you try to understand pointer references
But simple branching, functions and variables
is this a pointer or a pointer to a pointer
What is a pointer? here the translator is saying that it is a doubt
don't think about pointers
memory addresses
he wants to do java, don't confuse him
yeah, ignore pointers. Don;t go near them to learn java
Intellij idea
what do you mean by youtube? watching tutorials?
you can watch like 4 hours of java basics then afew spigot tutorials and you would be able to create decent plugins
ok!
If u are willing to pay, jetbrains hyperskill is awesome project based learning platform
yeah and the spigot thingis
Free trial, you can use it for free later with limited lives
these are way too overkill for spigot imo
Or buy additional lives with gems
you don't get to use most of the stuff
I use Eclipse. Most use InteliJ
It's difficult to find someone who explains this in Portuguese, few people who deal with this make videos explaining it
youtube has auto captions
Eclipse is free Ij is free for students, else pay for license
true
You should know English somewhat ok when you're learning a programming language
https://www.spigotmc.org/wiki/spigot-plugin-development/
also read these
Like what lol
Not true, intellij is free software
what do you mean for students?
guis for example
Only ultimate version with additional plugins is paid, community is free and open source
IJ has a cut down version for free. If you are a student you can get a full version
I haven't seen a single GUI project in hyperskill (for java dev path)
It doesn't cut down any language features but only special features specific to some frameworks like spring
Not everyone needs those
And you have free alternatives on plugin market
my point is you don't have to pay to get into programming
I never said u have
You only pay for more efficient workflow with some frameworks (you won't even touch them as beginner)
Is this free trial for a while or is it just the limited version?
intellij idea community edition?
intellij community is all you need
^
especially when you start out
most if not all ultimate features wont even be applicable to you
is this page?
I mean, most individuals don't pay ultimate
they either get the open source or the student license
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
scroll down
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
oh my god, I feel so stupid...
nah u aint, it's just that intellij made the ultimate always be on top
even if u searched for community
don't worry, everyone has gotten played by that download site more than once lol
it's kinda scummy ngl, someone might seriously think they intellij is only paid
but still can't blame them
ok, I'll look for a course that teaches Java.
It's not like IJ is the only player in town.
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
I'm new to programming, I'm just better with robotics rsrs
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
i mean, kotlin is used alot to make mobile apps and i don't think eclipse supports kotlin
natural selection, if you cant find the free version on that same page, should you really be programming xD
vim
notepad and terminal
would work pretty good
i used to work with nvim with no plugins which was basically like that
use kotlin and you dont have that problem
that whole file becomes
package me.missingreports
println("Yes.")
that just makes it a mix of python and js
with the upcoming version of Java next month, you will be able to do:
void main() {
println("Yes.");
}
dead srs?
that is with instance main method and unamed classes + module imports
what java ver
you can already do that in 21/22, with the preview flag
@dawn flower what now nerd
but the upcoming versions allows you to just write println instead of System.out.println
also implicit imports for java.util.*
see https://openjdk.org/jeps/477 for more info
I'm a big nerd for Java, ngl
never done any other language?
that is why, as a superior being, use mspaint to write all my java code
does this mean i dont have to import java.util.List
yes
that's fucking amazing
did this release yet
plenty, but I've chosen Java as my religion, though I mainly work with lower-level languages nowadays
string templates are so superior to fstrings it is crazy
automatic import part is new, the rest is all in java 22
i use paint3D, makes it easier as i can switch to another layer which basically functions as a package 
say no more
someone bouta update
Reading the JEP makes me think this works only for those single class programs
for anything else than formatting yes
I mean, even for formatting they are pretty much the same?
i would imagine you could do some kind of sql statement processing with them
I don't see how they fail at normal string formatting
they dont fail, they just look cringe 😂
how so?
am i supposed to download the msi installer
Wait are you up to date on the discussion surrounding template processsors?
if you want to
the zip is for manual install
if you are talking about STR."hello \{world}" then yea
I get that they may be called cringe
It's gone
yes
yea
the "compressed" zip is bigger than the msi
that is long gone
just link the summary video on the official Java channel smh
String templates proposed a way to readably and safely mix strings with run-time values and were a preview feature in JDKs 21 and 22. Then, to everybody's surprise, they were dropped in JDK 23! What where the reasons, what could a new proposal look like, when may we see it, and what does all this mean for the OpenJDK development process? Let's d...
watching videos when you can have the mailing list 
yeah the Java channel does have some useful videos 
and I'm the huge nerd here
smh imagine reading
why the backslash, why the backslash 🗿
oh wait i can just download it straight from intellij
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?
nothing anymore
Don't forget to enable preview features
where is that
I said that part is not released yet
goddamn it
you can do:
void main() {
System.out.println("Hello, World!");
}
i just want to println man 😭
you still have to enable previews though, it should be in the module settings, language level
Ctrl + Shift + Alt + S to enter module settings
oh
or right click a module
hm
language level
there's barely anything
Language level
choose the latest version it allows you
experimental features is fine too
is your IDE outdated? latest is 22
yeah probably outdated Intellij
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 ..
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
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
of course, if you are handling multiple files, you should actually init a project and use an IDE lol
if you want to store data on the items you will need nms for versions older than 1.14
thanks
||or go the bugrock way and use lore and § to hide your custom data||
what should be the size of a master access key to my rest api?
naaah
i currently have it as a hashed with Sha256 as Base64 using 384 random bytes
but i feel like im doing something wrong
i dont need HMAC yet
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
does anyone know what version custom model data was added in
is there a way to check?
Minecraft wiki
thanks
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?
you can and waterfall is a fork of bubgeecord so you can use bungee's api
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
Is that vs code?
yes
You should probably switch to intelliJ to make your life easier
my pc cant handle that
include the flag to specify the file explicitly
limitedmace
looks like you have 2 limitedmace folders in each other maybe?
Vs LimitedMace
huh
Go to Music/LimitedMace
okay
And send a screenshot of what's there
Yep
what do i do?
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?
ctrl shift p
You may also wanna copy everything from limitedmace into LimitedMace and delete limitedmace
That should fix it
No?
and done
Just copy the files using windows
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?
what now
ok so I assume this is the way spigot plugins communicate with bungeecord
do i have anything wrong in the version
Why are u depending on bukkit
can i switch to spigot or is it too latr
yes should be org.spigotmc and spigot-api
yeah but ill have to switch everything in the code
no
looks like you have no repository in your pom
add teh spigot repository or run buildtools for the version you want
?maven
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
huh
I think you're looking for 1.21.1
remove .0
1.21.0 isn't a version
no 1.21
1.21 has been replaced
Use 1.21.1
Unless you like crash exploits then don't ig
1.21.1-R0.1-SNAPSHOT
Bro use intellij😭
pc cant handle anything jetbrains
What kinda pc do u have
im using a laptop bru
I also use a laptop
i also use a laptop
how, I got the shittiest laptop ever and I can run IJ just fine
u prob got a high tier laptop
Same my old laptop cpuld run ij
this got a celeron N4020 bro
my 10 year old laptop can run intellij just fine
And a single minecraft instance and a server
8 gb ram, hdd, 2 cores 4 threads
Your laptop can run it trust
I ran a jetbrains ide on 4gb ram 4th gen laptop i3
dw about it
just close everything
8 gb ram, 4 core hdd
That's good enf
it's painful because anything lighter than intelliJ lacks severely in terms of features so you got to choose your poison
am I crazy in wondering why server costs seem to keep going up instead of down
running windows? 8 gig is not going to run well with InteliJ
i am
eh, hdd could have a lackluster RPM or be really old and at its last legs
i can run it on a core duo
i mean it's by no means the fastest computer, but it does the job
honestly im instaling inteliij
I used windows, IJ and a browser just fine with 4gb of RAM, it is manageable just not a pretty experience
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
I mean, anything is possible
without me having to learn a new skill
how do you know if its lost
how are maces even obtained, I haven't played new versions yet
you just have to limit that
When you install IJ install the minecraft development plugin
Makes creating projects easier
Also don't keep projects in ur music folder😂
someone can help me
me when i tried to play mc on intel celeron 🗿
how can I get Material list (id)?
?ask
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!
Am I guaranteed that the thread of the 1st system.out.println will be the same as the thread of the last system.out.println? https://paste.md-5.net/uziqofegil.cs
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
First and last yes
do you use async db?
Do you keep the cache updated in real time with the db?
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?
Are you doing multiserver currency?
Probably just cache all players balance
Into a map and dump it into the db regularly
but why not update in real time?
Or u can update the db on each transaction async
this isnt better?
do you need it to be real time, is the better question
Updating on each transaction is more costly but guarantees less data loss on a server crash
but it's not much more expensive, or is it?
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
I mean, that depends on the scale really, I doubt your server is doing enough queries for it to be a problem
atleast in like almost any case
because like, my server is using very little processing, it must be because minecraft only uses one thread, you know, so let's take advantage of the processor's power and use the other threads
but if you think that it'll reach that scale, then you're better off caching things
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
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
which do i install?
that seems fine
a stacktrace?
Bro I don't understand what you mean
1.20.4
youre making a plugin right?
yes
other dude 🗿
yes
seems fun to respond, sorry
other one 🗿
No
what plugin is this and what version
affirmitive
little fuckers
i feel like i am getting trolled here
i cant believe how elgarl survives in this channel
is .java and .pom the only associations i need
if you want that
associations dont matter
You don't need any
if you create a file association for .java, it will open all .java files with ij by defualt
its just which files will open intellij when you click on them in the file exporer
oh ok
(which is horrible imo)
survives?
uhh
don't
🗿
oh
use one of the lock implementations from the concurrent package
synchronized doesn't play well with virtual threads right now
This is what shows up when I create a forge server and try to join it
yeah, costs a few brain cells 🙂
feels a bit overkill if there isnt a lot of concurrency
it's free if you don't have any as me
Bro
buddy i asked you what plugin and what version
if you dont know what plugin causes it, go remove them and check them all
as them said, them are using forge
i have no clue what forge servers even are lol
So a hybrid server then
me neither
Not supported
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
client can send abnormal locations in order to do shit I assume
ok
yes
Just verifies the location for unreasonable coordinates & orientation because some (shit) clients are just that poorly made
has to do with rounding errors
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
okay how do i compile it using gradle im on itellij
Open the gradle tab, find tasks, find build
build/libs
ty
but that checks if the numbers are above 10mil
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
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
well its flawed either way because of floating points anyways
Bro are you using arclite version server
right but still
since location can be a float, and using abs would also cause rounding errors
.
why does it check if the pitch and yaw is above that tho
idk ask the dev xD
I think some experiments need to be done in regards to this check
his plugin is supposed to be obfuscated
again, the client may send random shit to crash the server or something like that most likely
I suppose this check makes sense if you were checking against their last location. But this check on its own, none of these values if sent to the server would crash it
it used to be a common pattern way back in 1.7, 1.8
Doesn't make sense in the regard the protocol compresses yaw and pitch into a single byte and that condition is thereby impossible to be reached
yeah thats proabbly it
Is there a way i can detect when a crash is happening or save the server upon crashing?
there are thousands of ways, what kind of crash?
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
lets say theres an unexpected failure which causes an immediat shutdown
like?
so a critical exception in the main thread
World#rayTrace
No. But these are rare
Thread#setUncaughtExceptionHandler
okay, ty :)
np
is there also a way to do this when the server overloads and forces itself to crash as a tick took too long?
that is a forced shutdown on the part of the server, not much you can do about it
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?
ig ill just wait until the server is just before shutting itself down, so it saves
to prevent data losses
oh there is something for that in Java
there are frequent backups, but just in case
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
// Save your stuff
}));
uiii
time limit to what?
Runtime.getRuntime().halt() will skip the shutdown hooks
the time the lambda can take
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
nothing i wanted to do anyway
Make db queries sync at this point
its only for trying to save
sync to the thread you add into the shutdown hook
db is updated frequently, but the world is only saves every 5-10min or somethin
what are you saving???
the world itself??
yea
why???
thanks now its working
yeah
inv is alr in the database and the world is really never saved.. huh
it would
now i feel stupid
np
because i forgot how my plugin itself works lmao
Is there any way to modify the command block gui?
its hardcoded iirc
Hmm
yep its very hard coded
for the text u could use a texturepack as it uses translations
why do you need this excactly?
To get the token they got from a website
i mean, the player already can paste 500+ chars into the cmd block
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
Yes but it'd be confusing for the player
and why do you want to use cmd block for this? wouldnt be the chat a better place to do this?
I'll go with it if there aren't any alternatives
Chat is limited to 256 characters
i mean, to even access a cmdblock normally you need operator
I am a master packet manipulator
you dont even need packets for that i think
I do 98% of stuff with packets
is there maybe a way you could shorten the amount of chars?
PacketEvents amen
like, that the initial text provided by the website is shorter?
If there was I wouldn't be asking here
hm
It cannot
what are you trying to do? give a url to a player?
i think youd just have to use the normal cmdblock interface then
master packeter
Have the players paste a very long text in game
why
and maybe a resourcepack to change the text
It doesn't have that texture
its a translation
cant u use books or smth?
Oh the text could be there
Books are even more limited than chat
?
And how would you paste something into multiple pages?
It's way better to use the command block ui at this point
What you guys doin'?
Tryna paste
paste what
Have the player paste
what are you even trying to paste a url?
why would you need that tho
what for
A token
Get the token the player got from a website
Does it have to be 30k characters tho
google?
List::forEach
thanks
It's around 500-600 chars
cant u use discord?