#help-development
1 messages · Page 780 of 1
My statement still stands
or for multi module maven, see blog post above
They contain different versions of thr same classes. Mc when you map it doesnt name most of the classes differently. Instead of having multiple classes all slightly named something different or one class with a million imports you can instead create a single manager class and reference the class needed for the version dynamically if the project is setup with modules. You could take this a step further and compile for a specificc version instead and get the appropriate class that is needed.
I didnt say anywhere that im going to learn it
My statement still stands
NMS multi module maven: https://blog.jeff-media.com/maven-multi-module-setup-for-supporting-different-nms-versions/
Single version NMS mojang mapped: https://blog.jeff-media.com/nms-use-mojang-mappings-for-your-spigot-plugins/
Old version (1.16 and before) NMS: https://blog.jeff-media.com/using-nms-classes-with-maven/
What is it actually used for
things that the API doesn't offer, e.g. spawning NPCs without third party libraries
direct NBT access
like serializing entities and stuff
sending certain packets to players without protocollib
reading the server's TPS
stuff like that
Not that I know what any of those mean xd
then you don't need it
Just ignore it for now
But Id assume I dont need it as for now
Touching mojang code
thats it
I’d love to touch mojang
Nms is where you access the server jar code instead of the api. You can call some things directly or manipulate code with reflection. You only do this because you need something that the api doesnt provide but the server code does. Spigot tries to keep things as vanilla as possible and doesnt touch everything either
mojang is underaged
😬
Good
Using this argument makes you sound as if without AoC law youd do it regardless
💀
nah I already got a boyfriend
one is enough for now
Thats out of relevance
AoC is 14 in germany anyway, which is a bit... questionable
Though i’ll probably need to touch a lot of children as a nurse. Professionally of course
ah so you touch children for money
Easy money
hehe
Their parents offer them to me
Could we move away from topic of aoc and touching children/whatever altogether 💀
Hmm
my bf is a nurse too but he only touches mentally ill people at work. is that a better topic?
ok back to NMS
you don't need it
Maybe if it was a different channel
many people went to psychiatry after looking at mojang's code
so this is quite on-topic
You got ur dms if you want to talk about that kind of stuff
Bruh looking at people asking questions on spigot forums and here is the same
Mental IQ getting lowered 🥲
Ask a question instead of bashing kiddo. We’ll answer questions
yeah where's your question
What parts of spigot is lambda used in
e.g. World#spawn
Anywhere it makes sense
Useful
That’s like asking where is integer addition used
Whats consumer
a consumer is a functional interface that takes in one parameter and returns nothing
it's like a Function<T,Void>
Cant you just make void
Mfnalex with his java academy
When you want to spawn a custom entity, e.g. with a custom name or certain items equipped, you must use the method World#spawn(Location, Class, Consumer) unless you give a shit about compatibility with other plugins. I’ll explain why. The shitty way Usually, you can easily spawn entities like this: That is fine, as...
here's an example of a consumer<entity>
@EventHandler(ignoreCancelled = true)
public void onBlockDropItem(BlockDropItemEvent e){
if(HypixelSkillCore.getInstance().getPlayer(e.getPlayer().getUniqueId()).getLastBlockBroken() == Material.LIGHT_BLUE_WOOL){
doStuff(e);
}
}```
this must surely work
Self advertisement damn
https://blog.jeff-media.com/understanding-lambdas-and-method-references/ and here's an explanation on what lambdas actually are
Lambdas and Method references can be used to make your code way shorter, and (sometimes) more readable by getting rid of anonymous classes. What are Anonymous Classes? Anonymous classes are like local classes without a name. Imagine you have the following code: We hereby declare and instantiate a class implementing java.lang.Runnable that just p...
Alex
Jan
Set up some adsense so you got an actual reason to selfadvertise
IT WORKSSS LETS GOOOOOOOOOOOOOOOOOOOOO
Cant I just normally spawn entity at location
nah that'd be sadge
Like why would I need something that returns void
have you read the blog post?
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
well for example CompletableFutures need a return type, but you can use Void if you don't actually need a return object
How many times have this been posted to you?
so you can return null and declare it as Future<Void>
But why does it need something to return
because it's a generic interface
it is universally usable to be able to return anything
I wanna see how patient alex is, can u tag me when u give up?
Ahh
So consumer just returns void?
this is the point where I'd have left the conversation anyway @rotund ravine ^
just like every void method
Good intuition
how can i get an item's nbt data
why would you need that
What happens if I do World().spawn(location, class, something that returns not void)?
No compilo
is he trolling or actually trying to figure out
{"COST_MITHRIL":30}
Well i branded him as a troll ages aho
ItemMeta#getAsString()
is there setAsString?
Huh
no but there's sth in BukkitUnsafe or however it's called
Wouldnt you use PDC asString ?
yes, PDC would be the way to go
For it
ok bb gotta pick up my stupid bf now
alr but i HATE creating new NameSpacedKeys
Im such a troll that im learning java and writing plugins just to piss you off, makes a lot of sense
Yep
Make an utility method that makes it for you
then you lack of common sense
You can just call it and input what value of said key you want
It was sarcasm
someone told me creating new NameSpacedKeys is inefficient and you should just create it once
💀
Well it is
very bad sarcasm then
It would work fine as a constant or enum. Since it’s a thing that doesn’t need a new object
Which
The mentally ill guy
Yeah which
nah the other one
the one who only works at the clinic
i have a feeling that alex's life is like a rtl episode
not the one I met as patient in the clinic
Leon or the other one
Spending 20hrs+ just to troll someone on a help channel? 😭
leon is working at the clinic
Sus
felix was a patient at the clinic and got thrown out with me
I should write a book about my life, I'm sure my parents wouldn't want to read it
I mean if its easier to project reality for u that way i guess its fine
Sex, found out ur gay, sex, sex
Should i get drunk and write some shit plugin tonigjt
@storm crystal Simply works like this
interface Consumer<T> {
void consume(T input);
}
// Other
interface NeedValue<T> {
T get();
}
Class that want the consumer
public class MyClass {
public void lol(Consumer<String> e) { e.consume("e") }
public void print(NeedValue<String> e) { System.out.println(e.get()) }
}
public class Main {
public static void main(String[] args) {
// You do:
new MyClass().lol( (input) -> { /* Do something */ } );
new MyClass().print( (e) -> { return "Yes!!" } );
}
}
as if gay is his entire li- nvm
NeedAValue lol
Yeah i see interface first time ever
Provider desu
rather take a shot for each exception you face
I am so good i get no exceptions
Not a single idea how to understand interface and ->
or too scared to try something out of your comfort zone
I mean I can just not use it for now
Hmm. I’d need to go buy some shots then. What should i make?
Yeah I think I can just spawn mobs and then give them custom stuff I dont really care about plugin compatibility
Since I have just one plugin
some cool shit
That I can ditch forementioned stuff for now
Kinda stinks to learn something I wouldnt find use of
or a blackhole ballon which, if too long taken out, explodes into a supernova
It’ll need to be a 1 day thing hmm
hm
Guess i can just go through the requests over here https://bukkit.org/threads/collect-gui-kill-item.502484/
Is it possible to make stuff like dungeon generator with preset rooms?
Yes
Like in TBoI
Idk what capable are plugins of
with a lot of creativity everything is possible
Discord
Im pretty limited in this sense xd
make a tower defense or smth around gambling
or both combined
a tower defense where you can gamble your gained coins
that would be cool
Seems like more than a days work if it needs to look good lol
then get a few shots more
how to create a custom enchant book? like efficiency 6
by going the hacky way
really annoying
99.99% uptime lmao
like mending I
if I have class that manages PDCs (two methods for setting them or retrieving their value) should I keep them non static?
sounds like a util class so no, make them static
Should I declare namespacedkey outside of them and assign value in methods?
Or do I just keep declaring inside methods
ItemStack book = new ItemStack(Material.ENCHANTED_BOOK, 1);
EnchantmentStorageMeta meta = (EnchantmentStorageMeta)book.getItemMeta();
/* Stuff */
Casts what
object?
Okay but what does casting mean
Player extends HumanEntity, so you can cast a HumanEntity to Player
If it's a player that is
yep
Here we go:
class MyParentClass { public void hello() {
System.out.println("Hi!");
} }
class MyChildClass extends MyParentClass {
@Override
public void hello() {
System.out.println("Yooo!");
}
}
public class Main {
public static void main(String[] args) {
MyChildClass child = new MyChildClass();
child.hello(); // output Yooo!
MyParentClass parent = (MyParentClass) child;
parent.hello(); // output Hi!
}
}
I was lazy, so here is ChatGPTs try on answering your questions @storm crystal
In Java, casting and inheritance are two fundamental concepts related to object-oriented programming that allow you to work with classes and objects in a flexible and polymorphic manner. Let's discuss each concept separately:
-
Casting:
Casting in Java is the process of explicitly converting an object or a value from one data type to another. It is often used when working with inheritance and polymorphism to access the methods and fields of a subclass or a more specific type from a reference of a superclass or a more general type. There are two types of casting in Java:a. Upcasting (Implicit Casting):
Upcasting is when you cast an object from a subclass to a superclass. It is done implicitly by the Java compiler and does not require any explicit casting. For example:// Superclass class Animal { void eat() { System.out.println("Animal is eating."); } } // Subclass class Dog extends Animal { void bark() { System.out.println("Dog is barking."); } } public class Main { public static void main(String[] args) { Animal animal = new Dog(); // Upcasting animal.eat(); // Accessing the superclass method } }In this example, we cast a
Dogobject to anAnimalreference, and we can call theeatmethod on it.b. Downcasting (Explicit Casting):
Downcasting is when you cast an object from a superclass to a subclass. It is not done implicitly by the Java compiler and requires explicit casting. It is used when you want to access the methods or fields specific to the subclass. If the object is not an instance of the subclass, it may result in aClassCastException. For example:public class Main { public static void main(String[] args) { Animal animal = new Dog(); Dog dog = (Dog) animal; // Downcasting dog.bark(); // Accessing the subclass method } }In this example, we first upcast a
Dogobject to anAnimalreference, and then we downcast it back to aDogreference to access thebarkmethod. -
Inheritance:
Inheritance is a fundamental concept in object-oriented programming that allows you to create a new class (subclass or derived class) based on an existing class (superclass or base class). The subclass inherits the attributes (fields) and behaviors (methods) of the superclass, allowing for code reuse and creating an "is-a" relationship. In Java, you use theextendskeyword to indicate that a class is inheriting from another class.For example:
// Superclass class Vehicle { void start() { System.out.println("Vehicle is starting."); } } // Subclass class Car extends Vehicle { void accelerate() { System.out.println("Car is accelerating."); } }In this example, the
Carclass inherits thestartmethod from theVehicleclass. This is an example of single inheritance in Java, as a subclass can only inherit from one superclass.
In summary, casting in Java allows you to work with objects of different types, especially in cases of inheritance, and inheritance is a mechanism that promotes code reuse by creating a hierarchical relationship between classes.
I get that more than ur example tbh
😭
Im not fond of chatgpt
Provides either vague or not completely true answers
Well we're not your chatgpt or googling substitute
Since when HumanEntity is parent of Player?
Player extends HumanEntity
He once disrespected 2nd law of thermodynamics when I asked him question
So I dont trust him no more
oh
Sounds weird to say it on help related channel
Bruh
Kinds breaks the point of it
Google your question before asking it:
https://www.google.com/
?learnjava
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
What do you think these are for
Well you overuse it all the time so anger management measure?
I went for entire w3schools course and there was no casting
So I assumed its rather spigot thing
It's not
w3schools is terrible and you should never use it for serious work
https://www.w3schools.com/java/java_inheritance.asp
https://www.w3schools.com/java/java_polymorphism.asp
what a surprising turn of events
It uses primitives as examples
Yes it changes values like int or float
How am I supposed to know it can work on a custom data type
You should look at different tutorials
Not all of them cover everything
If you want something that does cover all the basics in detail you can read Introduction to Java Programming and Data Structures by Y. Daniel Liang
Any course equivalent of that
🤷♂️ I never took a specific course to learn Java
apparently jetbrains academy is pretty good
Your best option is probably to go take a few different ones
Well Im defo not gonna read a book thats for sure
Well it's 1700 pages of pure knowledge
It will cover everything you need to know and a bit more
Id burn out on 1/5th of way
and you especially don't learn programming in a day
It comes with a bunch of exercises to keep you occupied and interested
I mean at worst Id be missing out on a few fundamental things at this point so might as well take a random course and skip what I know
I just wanted to do some small fun project, not swear my life to master java programming
for which you need to know some basics; plugin making isn't exactly day-1-beginner friendly
Well I did it and so far im doing okay
lol
Blame school and being forced to read ~30 books about literature I totally dont give a shit about to pass one exam
gonna ask it again just in case, but does anyone have a method to check if a player is standing on a block? Player#isOnGround() is deprecated and doesn't link to a replacement, checking the block under the player doesnt account for sneaking on the edge of a block and might also not work if the block isn't a full block.
i was thinking of doing 4 tiny raytraces off of the corners of the player's bounding box, downwards, to see if they collide with anything but that seems like a pretty absurd way to do it
Look at the reason why it is deprecated
wouldn't even work if you stand in the middle of end rod
Get the bounding box and use that to raycast
then another one through the middle idk lol
declaration: package: org.bukkit.util, class: BoundingBox
lmao a friend just messaged me
Then like this: We now have a fairly comprehensive commercial software called CIMPLIFY. Written in C#, UI with Windows Forms and database in SQL (if that makes sense). I can rate the work of my three programmers under me as zero because I have no idea about programming myself. If I were to sit down now, book courses and learn programming for 10 hours a week, when would I be able to estimate whether a new module would cost 30 or 300 hours of programming?
Only one ray cast required 
yes?
It's deprecated because the client controls the value
If that's fine then you can use it
in my case it would allow people spoofing that value to mine at normal speeds while in mid air which can be jank
ill try that raycast solution thanks man
I mean
Just get highestblock, is solid, is play within a reasonable height above it
U sure ure in proper channel?
Tell him he won’t
ofc that's what I did
Great
i especially find it funny that he thinks he could know it better with learning coding 10hours a week than someone who does coding for a living
Tell him to outsource to you
Bros gonna work for free ☠️
20$ an hour and you’ll grade one project every 2 hours.
just hire some fellas from india
Yepyep
I wouldn't touch windows forms for 300€ an hour
it sucks
accurate
WPF is solid tho
I thought people use c# because of how easy to create fancy UI(s) on windows.
C# is ugly
Is there any programming language other than java used for plugins?
Anything on top of jvm
set of rules to make your code 'cleaner'.
Clojure
Is a favourite
Though there is a ton of funny implems for things like python or other language to run plugins
I wonder if i should write some plugins in clojure for fun
Dont use other languages exept java if you making plugin api
I can have java code for the endpoint no worries
CLOJURE!!!
It’s ugly as hell
wtf no
Whats the difference in dependency and api terms cuz i get them confused
Well
How do you get them confused? Most dependencies have an API you interact with
Not all though
Not really
You make dependency out of api?
I thought he meant spigot dependencies
Which type of dependency are we talking about
Dependency in general
object
im probably being dyslexic here but i dont understand how to use this method, BoundingBox#rayTrace() that is. like what does start represent
Math 🥲
math is interesting as shit but why does it have to be so confusing
Start pos?
I quit math 1,5 years ago
otherwise it wouldnt be interesting
yeah but like of what
Its not
player location to vector
Think of it not like the bounding box is ray tracing, but rather the bounding box is a collidable object
Consider it something like a World#rayTraceBoundingBox()
Math is confusing cuz people dont know how to teach it properly
so the entire bounding box becomes the raytrace am i getting that correct
No no
You're casting a ray from the given start position in the given direction and seeing if it ever collides with that bounding box
same applies to everything. If you cannot explain something in 3 easy sentences, you haven't understood it yourself
3 sentences, you mean 1 sentence and a citing
hm
Can I make methods that manage config static?
iirc there's a book that's like 300 pages long but it's only one sentence
you can but why would you want to do that
Dumb
To not make instances
why avoid making instances
what's the advantage
Less code
good luck
Why would class1 and class2 need separate instance of method that reads value from config
they don't
I can do it in main
both can use the same instance
?di
Guide to dependency injection: https://www.spigotmc.org/wiki/using-dependency-injection/
why would you create an instance in the first place if you want to make the methods static o0
if you're wanting to make a single instance of a class like a manager or whatever you can make it singleton ig
.
He told me to do it
?learnjava
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
someone needs to fix those links
Yeah
What's wrong with them
@ivory sleet fix
Cant I just import static methods and use them
If you always be one config for all plugin then yes. If you have sperate configs you should not use static method/fields at all.
did you really buy profile animations
I do but I specify in method what config I extract information from
they are indented
As in use parameter for it
gotta remove the space before the hyphens
- asd
- asd
- asd
- asd
instead of
- asd
- asd
- asd
- asd
Add some more too
They look normal on my phone, except for the first one ty for telling me I'll do nothing about it for the next hour
Someone in here decided they were all useless for some reason
So when do I want to make method static and when make instance in main class and pass it further
Never use static 💪🏻
Why?
only use static 🦾
OOP
I used it for a cooldown manager
So why is static a thing
We want no static
cause i didn't think injecting it everywhere
you make a method static if it does not require access to an instance of its class
Static is the bane of us all
would be worth it
Many people are going crazy whenever they see the static keywoard inside some source code. That’s ridiculous, because it alleges the people who developed Java were totally stupid. It is true that the static keyword gets abused by many people, but there’s a difference between static abuse and proper use of the keywoard. What does...
Banned death threats
static = member of class
non-static = member of instance
i love deadly static electricity
Static = death jkjk
you need to minecraft game over
Jokes on you i use kotlin
How do I tell if i need instance
Go befriend a creeper
by checking if you access any non-static fields or methods
Java should add keyword "singleton" before "class"
ew die
dw, he will eventually
@hybrid spoke Eat glass
just give it some time
Step on a lego
maybe you should try to stop being singleton
How do I check it
@young knoll ban him!
by learning java
Companion objects is where it is at 💪🏻
?learnjava!
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming. https://media.discordapp.net/attachments/694661573125472256/998143126373941248/6n0v4g.gif
Something like this:
public singleton class MyClass {}
even worse
Nah
sulfur glass
Wait wasnt a field a variable
habibi you need help
Why is it even named like that
love how fast the conversation turned into hatespeech
companion object {}
depends on the scope
ngl maybe its just me but kotlin coroutines are more confusing than completablefutures
Field term is confusing as fuck
merge it with #general
Coroutines are not completable futures
kotlin is more confuse than java in general wdym
class MyClass {
String thisIsAField;
public void doSth() {
String thisIsALocalVariable = null;
}
}
that shit's a whole ant nest
Its too similar to fields in physics
i mean its the same idea for running seperate tasks and async and shit right
Shouldnt both be variables
Couroutines are so much more
A field is owned
okay even better even more confusing
VirtualThreads are almost here
both fields and local variables are variables, see JLS 4.12 https://docs.oracle.com/javase/specs/jls/se11/html/jls-4.html#jls-4.12
What makes one a field and one not
Ownershio
promise thisWillBeTrue = mybool == true;
the scope
promise glass
the place where it's declared
no it will be true, i promise
And what is a field that variable isnt
Owned
?learnjava
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
Ownership
imo kotlin is rust but worse
whut
By class or what
kotlin tries to be it but sucks
Kotlin literally doesn't have any features rust is famous for xd
syntax wise its similarish
It's not wtf
Still dont get the idea thats literally why im asking
imo it is at least
kotlin isn't shit
well read the JLS
the full one
Relevance?
sorry to bother again but im really not understanding this method, it checks if the given start vector intersects the bounding box right? how can that be used to determine if the player is standing on something?
it answers your question
I fixed it
all of his questions*
Not really
yeah good idea
You rayTrace down from the players position
Fist fight us two
then get the result if you hit anything
Why reading entire thing would do anything about one section
so the direction is a downwards vector yes?
yes
ive done that and it always returns a null raytraceresult
remember guys, dont troll convo while someone needs help
Mfnalex will be referee
the part where he lives in, obviously
Could you show your code
alrighty, I'm in
Its literally turned into general 2 but I doubt they care xd
im probably being rather silly and dumb but i cant tell whats going wrong
it is general 2, but just as long as nobody needs any help
Sry Athlaeos
isnt that the typical youtube tutorial theme
Shit zacken
i likes it
?learnjava @tender shard
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
It’s fixed
now we can stop panicking
finally I can learn java
thanks catgirl
Remove the discord
remove zacken
remove stains with vanish oxy action
go to papermc if you want civilized behaviour
lol
lol
well mostly
@chrome beacon if this is what you suggested, it will fail on edges of blocks
You'd have to "raytrace" the whole player bounding box instead of a ray
nvm, this traces the bounding box, doesn't it
Also, use normalized vector instead of -0.1 on y
you mean dictatorship
Pin
paper is toxic
yeah exactly
I am banned from there
+1
you too?
?paste
They felt i was transphobic
see thats the spigotmc spirit
I got banned for a soundcloud link
you go champ
Nice
Yeah was about to say before the edit
i got banned for helping people with log4shell
ye, my bad sry
Purpur and here is the only place i engage in mc community
https://paste.md-5.net/oqitiboqum.java how i can create a duplicate(Player player, int volt) to recreate //stack of word edit?
you dont
what does stack do
tell us how it went
it copies your current selection X times into the direction you are looking at
How many times must it be repeated
well then you take the current selection, loop that amount of times, and paste it into the looking direction with an offset of selectionWidth*iteration where the width is the width into the direction you are copy/pasting to
apparently ive somehow managed to send 372 messages in paper without being banned???
feels like a glitch in the matrix
I managed to send over 220k here and only got banend once here
how tf do you ever get banned here
by mistake
endLocation.sutract(origin).toVector(); gives me the direction vector, though if I set a player's direction to this it seems to make them always face up?
Search for my messages
nobody gives a shit here
ah
I didn't understand anything but... I'll get back to it
okay well ur just a very bannable individual
Wrong emoji
if player is looking north, check how wide the selection is on the north-south-axis. then paste it at current location + width on the north-south-axis. then repeat this X amount of times
cat
Lol Lol Lol Lol
So transphobic
I mean I don't really think there's any reason to be trolling in the Paper Discord. Seems rather unprofessional and ultimately makes us look worse
Doesn't really matter
Spigot is living
Smh
Spigot is breathing and will be stayin' alive
i aint hear no bell
Anybody know why?
wrong locations
The direction is always relative to those two points so if the origin is below endLocation, the difference will be upwards
If you want to ignore the y value, set the resulting vector's y axis to 0
the difference is 1 block on the y
The direction will be normalized for you so no need to worry about that
so can I just make it static and import separate methods that Id need?
🙃
0.30c
Don’t take stake
LOL
Generally would advise not to make things static unless there is a great reason to
I dont see the point of each class that needs to read something from configs make separate instance
pass the FileManager instance to the constructors of classes that need it instead
We’ve tried to say it lynx. Good luck
as in?
you just got cockblocked
why static, quick access? 🤓
?
cries inside
Static state just means you "guess" your state is initialised
You hope that when you call FileManager.something, your onEnable properly called whateveer init function you have
hence, instead, you pass around an instance. The fact that the instance exist should usually promise that it is ready for usage
but wouldnt doing it constructor method also make me hope that it makes it correctly?
Well no because that constructor has to run
otherwise you cannot have an instance of FileManager
cant I just initialize it on enable and it would be practically the same thing?
Yea
hence why I said, it might be fine for a config accessor but like
its more about a general design choice
learning to keep things not-static and how to properly use OOP is a fundamental you need to be comfortable in
so while you might get away with static here, you certainly won't in other cases
so why use something that has really, not advantage here outside of not passing it to the like, 5 classes sthat need the instance in a constructor
idk someone else earlier told me that I can use static
so I tried to do it properly
Yea like you can use static certainly but in general it is not something you strive for in object oriented development in java
fine
Here's a cookie for your efforts 
Thank you I love cookies 🥰
if i have spigot 1.16.5 and update the java version to java 18 what happends?
spigot will probably not let you run it
I can't recall if spigot 1.16.5 recognizes it
i mean if it dosent works what have i to do?
Update spigot
probably yea 
Downstream has a flag to bypass that don't they
Yea
Wonder if MD would accept that as a PR
Well I think we just yanked the entire check these days
how can i make it 100% works? Because i need plugins like exellent creates on my 1.16.5 spigot
idk what the reason was for it
generally people running versions that might not be supported
like ASM needs updating for new versions
Yeah that's basically it
Huh I thought the flag was a spigot thing tbh
--IReallyKnowWhatImDoingISwear2
should I keep EventHandlers and other un-annotated methods that I use in other classes together?
new flag
?nocode
It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.
like I register events via main class and pass it's instance to other classes and use it's methods
The Listener should not have that many methods.
how can i make it 100% works? Because i need plugins like exellent creates on my 1.16.5 spigot
and other payed plugins
@vital vortex Don't repeat yourself.
i will try
i'm scared
Move that method up to somewhere else
Found server.jar
===============================
Default Java
===============================
openjdk version "18.0.2" 2022-07-19
OpenJDK Runtime Environment (build 18.0.2+9-61)
OpenJDK 64-Bit Server VM (build 18.0.2+9-61, mixed mode, sharing)
Unsupported Java detected (62.0). Only up to Java 16 is supported.
#help-server thank you.æ
it dosent works
what can possibly happen
ok
if I keep it
i was thinking like the server were spamming errors and all willl be crashed
#help-server is the channel @vital vortex
if i update the spigot version from 1.16.5 to 1.18 will i lose all the files?
ok sory
no
and it wont have spigot Listeners
I didn't tell you to move th event handler
I told you to move the helper method in there if you want to use it elsewher
e
and I asked what could possibly happen if I kept all of that in one class
I see
Placing anything large is extensive
40 blocks isn't that much
Probably more on the chunk loading
Take a spark report and check
did something like viaspigot exsist?
?
viaversion 🤔
like if i have java 17 and want a plugin for java 18 i can with viaspiogot
Nope
dragonproxy hm
If you are a little bit technical you can easily edit out the java check from spigot
?
tel me more
@young knoll
Build spigot with buildtools, remove the check in Craftbukkit, and then rebuild it
i dont understand
i need exellentcrates plugin
but it cant be loaded
[15:15:00 ERROR]: Could not load 'plugins/ExcellentCrates-5.0.0 (3).jar' in folder 'plugins'
[15:15:00 ERROR]: Could not load 'plugins/NexEngine.jar' in folder 'plugins'
Also #help-server
yes
where can i upload files?
We don't want ur files
ie mean the error log its too long
and i have to upload it as a .txt
?paste
i cant upload there
Do hypixel's variations of basic enchants like sharpness work the same way as in vanilla or did they make custom variants as well?
Look at the link i posted lol'
I doubt hypixel relys on any vanilla logic for their enchantments
would be rather bleh to implement a shit load of custom enchantments and then have a couple of outliers for enchants that exist in vanilla
They dont really rely on any vanilla logic right?
Like even custom crafting table
I think everything is custom or almost so over there
Didnt you block me
unblock
Unblock what
tell your mom to move to unblock the view
She died more than 16 years ago, so she did move.
?learnjava!
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming. https://media.discordapp.net/attachments/694661573125472256/998143126373941248/6n0v4g.gif
this also needs fixing @ivory sleet
@ancient plank
@young knoll
On it
ping choco
@remote swallow
@worldly ingot
?learnjava!
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
https://media.discordapp.net/attachments/694661573125472256/998143126373941248/6n0v4g.gif
Wow you actually fixed it
:O new helpors
How does that take 2min but plugin stuff takes 2 days
I mean it's literally one command
Do we still have some of the old versions commands
?1.17
Install 1.17 with BuildTools: https://www.spigotmc.org/wiki/buildtools/
yep
Update bootstrap
?bootstrap
Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
What about it
The main spigot-1.18
that's when it became bootstrap
I can change it to be more generic
People are dumb miles
Bootstrap Jar
Since 1.18 the main spigot.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-<version>-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
somethin like that
Perfect
%s
hm?
Adele ur pfp is still catgirl
the pfp change was not related to the uwu speak
But its true
thats just how it is sometimes
the people you love and care about turn into furries
you have joe biden to thank for that
@ancient plank @hushed spindle Seems to love and care about you
The New Society™️
fuck no
the us 💀
I considered moving to the Us after my education
But it pays less than norway
and norway is easier
you should move to norway its much better than america
im sorry for your loss
Ikr
and im sorry you're not sweden
Sweden is worse than norway in payment to nu rses
best payment is printing
also finland is basically the superior scandinavian country just saying
funny little language for funny little people
How much do you pay your nurses? @hushed spindle
Jokes on them I've been a furry since way before I joined in spigot
but it ranges quite heavily from 1800 to 6200
also not from scandinavia im from the netherlands lmao
Ah alright not that bad
Sweden is defo more dangerous to live in
No
catgirl moment or something 🔥
beautiful landscape, beautiful women. what else do you need
?paste
depends on what you compare it to
and what are the downsides of sweden?
sweden by global standards is still rather nice
i live in germany so shouldnt be any different
Probably not much difference idk tho
okay so plan b, cayman islands
I think their healthcare is more like ours than yours tho @hybrid spoke
move to the netherlands we got lots of bikes and racism
what is "ours"? is that worse?
germany dropped everything so noone is scared of us lol
and we are scared to build back up
no not really
i mean the school system in general is fucked
but you can get into good schools by doing good
actually your elementary teachers recommend you if you are above average
I want duplicate the //stack of WordEdit. Beacuse the "void duplicate" dont go?
https://paste.md-5.net/sicogotoye.java
do you have full fur suit
I see you don't like furries
Nah I need ltt amd extreme tech upgrade money for anything decent
kek
i didnt say that
i think i do a whole lot of not having a particular opinion about them
but you said we have biden to thank for furries
yes
I think that was a joke
joe biden put chemical in the water supply that turn children into furries
well known fact
doesn't sound much like liking there, so it means you don't like them
hey maybe you want people turning into furries
could be a good thing depending on who you ask
is there a downside or a negative? o.O
im just stating a well known fact that joe biden is the creator of many furries
very true
he chipped us all with the vaccine so he could track how many furries he created
yeah exactly
i love vaccine
i didnt feel like becoming a furry so i drank a magnetic lead potion that removed the furry chips
because cellphones were more effective XD
the lead makesm y brain tiklcle
Cellphones aren't quite effective enough, what if someone were to leave it at home
that's where the vaccine chip comes in
probably true in regards to lead lmao
thats why they banned leaded gasoline
it made people immune to being furries
thats why furries literally dont exist during that time period
I mean the uptick happened after the exposure
I am not entirely sure this true lol
its fact look it up
what do you think that whole mkultra thing was about
not just mind control but furry femboy research
Me on my way to submit all your DNA to the CODIS database.
:3
how'd you get my DNA 😨
its public look it up

actually the government has all the dnas that exist because somehow a whole lot of dna from men is flushed down the drain
I don't know how many people actually leave house without their phone
strange how that happens
in 2023
@sterile token come with some weird ideas
i forgot to bring my phone one time and it very quickly made all the furry related thoughts go away
but then i got home again and they came back
i think uve been furrified
I think you just want to be furry at home.
this
ok fair
but i propose you this
free thought is an illusion its all controlled by the shadow government
i want nothing its all them
SHADOW WIZARD MONEY GANG
we love casting spells
Hey guys, i got a questiooonnn sooo
If i have a cauldron and i want to set its level i use the new Levelled thingy but how can i set the material to lava or water? Im too dumb sorryyyyy
set the block type to LAVA_CAULDRON or WATER_CAULDRON
yeah also regular cauldrons arent levelled any more so be sure to keep that into account
i need to drink more lead the thoughts are coming back bye
wait lava is levelled? i mean how can u remove a level
I thought it was
i dont know a survival way to remove a level ig...
i dont think lava cauldrond are levelled no
ooh yes
Another question right away, how can i get the item slot of a dispenser inventory in the blockdispenseevent when i just got the item and the dispenser but no slot or something
i suppose you could compare dispenser contents before and after
or try indexof of the fired item on the dispenser inventory
Yeah I could, but changing numbers is a lot easier than that 😂
what would be a good delay for spawning mobs 1 per tick?
?scheduling
I know how to create a scheduler... just don't know what math to go with
you want to spawn 1 mob per tick, right?
That's the number im going with yep.
repeating task with a one tick interval
Bukkit.getScheduler().runTaskTimer(pluginInstance, () -> {
Location locationInstance = calculateEntitySpawnLocation();
worldInstance.spawnEntity(locationInstance, EntityType.ZOMBIE);
}, 0L, 1L);```
also there should be clause which stops scheduler
Wouldnt that lag the shit out of server
who knows
i mean after certain time yeah
but spawning 1 entity each tick is not that much trouble
ok
i cant type there
You just did 4 minutes ago
i can't send messages on #help-server
how can i record screen so i can let u see that?


🔛 🔝