1
Message to all plugin devs! :P
Hey, guys i have recently started to code for my server and i found out that the way people code can vary drasicly based on who you are.
So, i am asking you; How do you organize your code? What about packages? Classes?
So, i am asking you; How do you organize your code? What about packages? Classes?
8
[deleted]
Thank you so much, you guys helped a ton.
Just keep it organised as you do with all Java programs.
I do mods, not plugins, but I'll have packages for XYZ (eg a package for network stuff, a package for blocks and items, a package for API stuff etc). I'll keep classes streamlined and use as few as possible - if I have 10 different items which are all identical except one thing I'll use a single class with a constructor to decide the variable.
I do mods, not plugins, but I'll have packages for XYZ (eg a package for network stuff, a package for blocks and items, a package for API stuff etc). I'll keep classes streamlined and use as few as possible - if I have 10 different items which are all identical except one thing I'll use a single class with a constructor to decide the variable.
ok thanks for your help!
So, i am asking you; How do you organize your code? What about packages? Classes?
I obey Java's naming conventions just like everybody else should...
[deleted]
Ok thanks! Im trying to code a large plugin that can run everything for a survival server. My goal is to run a whole survival server with one plugin, so organizing it correctly is essential. Thanks for the help. Quick question, is it possible to use two of the same events in the same plugin? Do they have to be in different packages?
[deleted]
