|
@ -6,7 +6,11 @@ public class QuitCommand implements CommandAPI { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void performCommand(Scanner scanner, boolean isRunning, String message) { |
|
|
public void performCommand(Scanner scanner, boolean isRunning, String message) { |
|
|
System.out.println("You quitted!"); |
|
|
|
|
|
|
|
|
System.out.println(getQuitMessage()); |
|
|
System.exit(0); |
|
|
System.exit(0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String getQuitMessage() { |
|
|
|
|
|
return "You quitted!"; |
|
|
|
|
|
} |
|
|
} |
|
|
} |