Ah, another argument with McFeedle, the name of your main class in a Bukkit/Spigot plugin.
I used to have my main class named after the project, so if my plugin was called "Staff+" then my main class would be "StaffPlus". However, I decided to switch to "Main" because I found it more preferable.
On the other hand, McFeedle, claims that the main class should NOT be named "Main" because of the fact that Bukkit is an API and, "it may or may not use the Main class already" (McFeedle, page 24). He also linked me a picture of the Bukkit docs that says that it is preferable to name your main class like the latter.
The conventions of a class name is to state its function, so saying "Main" makes sense to me because it will be the "Main" class. While naming your main class the way McFeedle likes it doesn't necessarily follow this rule, your class can't be "StaffPlus" class really.
I think it matters on personal preference in the end, but McFeedle claims that my way is wrong. Like usual, it's his way or NO way.
I'd like to see the input of a few knowledgeable developers around here and others. Is there any set rule that can be seen at all (McFeedle claims this) or is it personal preference (my claim)?
Skionz Badger ItsMonkey saint
I used to have my main class named after the project, so if my plugin was called "Staff+" then my main class would be "StaffPlus". However, I decided to switch to "Main" because I found it more preferable.
On the other hand, McFeedle, claims that the main class should NOT be named "Main" because of the fact that Bukkit is an API and, "it may or may not use the Main class already" (McFeedle, page 24). He also linked me a picture of the Bukkit docs that says that it is preferable to name your main class like the latter.
The conventions of a class name is to state its function, so saying "Main" makes sense to me because it will be the "Main" class. While naming your main class the way McFeedle likes it doesn't necessarily follow this rule, your class can't be "StaffPlus" class really.
I think it matters on personal preference in the end, but McFeedle claims that my way is wrong. Like usual, it's his way or NO way.
I'd like to see the input of a few knowledgeable developers around here and others. Is there any set rule that can be seen at all (McFeedle claims this) or is it personal preference (my claim)?
Skionz Badger ItsMonkey saint
Last edited:
