Making a test plugin with multiple commands

Discussion in 'Plugin Development' started by ZexyMichael, Oct 5, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ZexyMichael

    Okay, I watched a tutorial on creating commands but I was recently talking to a developer and he said for each command I would need to create a new class. Is that true? Because I tried that on a test plugin and haven't tried it yet.
     
  2. Offline

    Skionz

    Need to? No but it is a good idea too.
     
  3. Offline

    teej107

    It depends, making a class for each command helps keep your code organized but IMO, if your plugin only has a couple commands, they don't deserve their own class.
     
  4. Offline

    ZexyMichael

    teej107 doesn't seem neat...

    Hello?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  5. Offline

    rbrick

    You do not need to create a new class for every command. if it is something small like /heal and /feed for example it is perfectly fine. How ever if you are doing a project like essentials, while it is not required that you make a new class for every command it helps organizes your code and makes things cleaner. On a side note here are some useful libraries that can help make your life easier when making commands:
     
  6. Offline

    ZexyMichael

    rbrick I was going to use it for separate permissions.
     
Thread Status:
Not open for further replies.

Share This Page