Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
This resource is not about faster coding lol, and I think it makes a significant difference in readability when you have a lot of listeners...
I really have no idea, I tested both in 1.8 and 1.16, I got the same result..
You are correct, for some reason I didn't think about that.
Thank you very much for the comment, and for the good idea to contribute to Spigot.
I indeed think the inheritance was the best solution(in...
He didn't ask what he means, I'm asking what he's trying to say
What are you talking about??
Well, registering listeners exists in most plugins, and that was the main motivation to create the class ^.^
Also it's only 1 class so I didn't...
How the amount of classes is relevant?
I use the word modern because my class extends JavaPlugin in order to "improve" commonly faced issues with...
What's the most recent version this worked on?
I tested the first method:
In general maybe, 100% not within spigot, I tested :/
You're welcome to prove me wrong ;)
Even if their design is flawed, I'm sure that everyone agrees Bukkit::getPluginManager()::registerEvents should have taken a varargs array of...
You clearly didn't understand the point of the class, and also I have been a java developer for longer than 5 years.
1. Thanks for supporting the purpose of the method, how exactly you'd send red/yellow messages?
2. If you want to highlight something important,...
Logger has the same problem as System.out.println(): The console doesn't colorize the message and displays §a instead(for example).
This resource offers a very elegant solution for a bunch of nuisances in the JavaPlugin class that are widey disliked, and should've been solved a...
If this is your defense for using static, You clearly have no idea when to use it, which proves that I was correct.
Refactor your code to use...
I meant think about my comment for longer than 3 seconds.
Hint: Object Oriented Programming
Try to think again about my comment.
Ever heard of encapsulation? It is the heart of proper programming.
For example, what happens if you change the field name in the future? You...
I skimmed through your commits, great job!
One more thing: https://prnt.sc/1368ugq
calling get() on an Empty Optional throws an Exception, you...