Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by ShishKaBobz, Oct 9, 2017.
One cannot set the welcome/join message with motd.txt xD
oh s**t, sorry I was mistaken.
but you could use CustomJoin.
... This isn't what plugin to buy, This is how to make it.
@1010bobIzCOOL you got exist stuffs why would someone re-make it(like somebody said to me)?
Great ! Thank you very much !
To get someone in the starts of coding.
Hey your welcome!
thanks dude! i tried making this before but i failed bad ;c
Btw, can u also add a config in ur next tut if there will be a next tut?
*starts of using spigot.
If you are using this to start coding, you better be worrying.
Please do not make tutorials like these unless you know what you are doing. Chances are a few people who are new are going to follow this tutorial and take the practices you displayed, then follow them thinking they are correct.
A JavaPlugin has its own Logger, and any messages logged includes the plugin name so you don't need to worry about that. Just about what you are logging. There is no need to use Logger#getLogger
PluginBase, which JavaPlugin extends, has a nice getName() method. You should only be touching the "pdf" for the version, no need to get the name from it when there is an easier way.
Your variable names are not nearly as descriptive as they should be. What is a "pm" ? I know its PluginManager based on the context in this situation, but you should aim for variable names that actually mean something. Because you won't always have that context.
Why are you using the § symbol when there are ChatColors there with a purpose that you don't need to mess with that character?
Who are you?
Nice job! I already know this stuff, but if I were new to Bukkit development I would definitely mess around with this as my first plugin.
Your plugin.yml is incorrect
He’s clearly @neth.
Sure it is...
You act like we can't see the text that says "last edited: 5:02 PM".
Who I am has no relevancy to the amount of poor practices displayed in your tutorial that people attempting to learn programming have a chance at following.
That was to change the code block to java in the one part.
Then they can use this an develop their new practices in the future.
I'm sorry but thats not how it works lol. You need to view good practices in order to actually know what they are.
Now I'm not hating on your or anything and there is nothing wrong with a lack of knowledge of course, but you just need to understand that trying to push your flawed code in front of beginners just isn't the right thing to do.
Just figured I'd respond with what's "ugly" about this code:
- Naming conventions
- Uses logger instance multiple times. It can be created as a class variable. If opposed, at least create a private String constant containing the logger name.
- no use of override annotation of certain methods
- public methods created when they should be private