// Path: src/main/java/com/github/pemapmodder/pocketminegui/gui/server/ServerMainActivity.java
// public enum ServerState{
// 	STATE_STOPPED("Start"),
// 	STATE_STARTING("Starting..."),
// 	STATE_RUNNING("Stop"),
// 	STATE_STOPPING("Stopping...");
// 
// 	@Getter private String buttonName;
// 
// 	ServerState(String buttonName){
// 		this.buttonName = buttonName;
// 	}
// }


import com.github.pemapmodder.pocketminegui.gui.server.ServerMainActivity.ServerState;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.io.IOException;
package com.github.pemapmodder.pocketminegui.gui.server;

/*
 * This file is part of PocketMine-GUI.
 *
 * PocketMine-GUI is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * PocketMine-GUI is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with PocketMine-GUI.  If not, see <http://www.gnu.org/licenses/>.
 */



@RequiredArgsConstructor
public class ServerLifetime{
	@Getter private final ServerMainActivity activity;
	@Getter private ServerState state = ServerState.STATE_STOPPED;

	public void nextState(){
		JButton button = activity.getStartStopButton();
// Path: src/main/java/com/github/pemapmodder/pocketminegui/gui/server/ServerMainActivity.java
// public enum ServerState{
// 	STATE_STOPPED("Start"),
// 	STATE_STARTING("Starting..."),
// 	STATE_RUNNING("Stop"),
// 	STATE_STOPPING("Stopping...");
// 
// 	@Getter private String buttonName;
// 
// 	ServerState(String buttonName){
// 		this.buttonName = buttonName;
// 	}
// }


// Path: src/main/java/com/github/pemapmodder/pocketminegui/gui/server/ServerLifetime.java
import com.github.pemapmodder.pocketminegui.gui.server.ServerMainActivity.ServerState;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.io.IOException;

package com.github.pemapmodder.pocketminegui.gui.server;

/*
 * This file is part of PocketMine-GUI.
 *
 * PocketMine-GUI is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * PocketMine-GUI is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with PocketMine-GUI.  If not, see <http://www.gnu.org/licenses/>.
 */



@RequiredArgsConstructor
public class ServerLifetime{
	@Getter private final ServerMainActivity activity;
	@Getter private ServerState state = ServerState.STATE_STOPPED;

	public void nextState(){
		JButton button = activity.getStartStopButton();
		if(state == ServerState.STATE_STOPPED){