Staffchat plugin bugging

Discussion in 'Plugin Development' started by crazzycarot, Feb 23, 2017.

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

    crazzycarot

  2. Offline

    Zombie_Striker

    @crazzycarot
    First, don't have capital letters in the package name, and don't call the main class "Main"

    Don't check if args length is 0. Right afterwards, you check if the length is greater than 0, which it will always be if you have the args check before. Choose one or the other.

    You don't need to register the class, nor let it implement listener. You do not have any events in the class.

    Main problem: This is why formatting is important. You do not have the correct number of open and close brackets. Format your code correctly, and make sure there is the same number of open brackets as there are closed brackets.
     
  3. Offline

    N00BHUN73R

    A nice thing you could do to make it look a lot better, is by using Eclipses built in formatting. You can access this by pressing CTRL+SHIFT+F, or by going to Source->Format on the top bar.
     
Thread Status:
Not open for further replies.

Share This Page