I don't know why this is happening. Heres the code:
import com.lewislovesgames.chopthattree.minecraftservermanager.Main;
public class main {
public static void main(String[] args) {
if (args.length == 0) {
if (args[0] == "--nogui") { // Debugger says this is the line it errors on
System.err.println("NOGUI not made yet");
} else {
System.err.println("[Minecraft Server Manager]: Argument does not exist.");
}
}
System.out.println("[Main]: Running Main Window");
Main main = new Main();
main.setVisible(true);
}
}
The code did work until I put in the args snippet. It looks like the array is never 0 so it passes on to the next line. I'm using Eclipse for the debugger and running of the program.