* Remove a bunch of .ideas and class files to see if it makes the setup easier * remove some .idea's and imkls * Remove a ton of .class files * [TASK] Switched to maven instead of gradle * [TASK] Added target to gitignore * Remove ignored files * [TASK] Fixed file_server source * [TASK] Fixed client source * [BUGFIX] Main Class * [BUGFIX] Fixed SLF4J * [TASK] Server Libs cleanup * Update setup guide/debug * Maven cli compile instructions * [TASK] Jar building * Update runServer and runFileServer.sh Co-authored-by: Sandro Coutinho <sandro@farrelltech.org>
29 lines
534 B
Java
29 lines
534 B
Java
package com.rebotted.console.commands;
|
|
|
|
import com.rebotted.GameEngine;
|
|
import com.rebotted.console.CommandProcessor;
|
|
|
|
/**
|
|
*
|
|
* @author RS-Emulators
|
|
*
|
|
*/
|
|
public class Stop implements CommandProcessor {
|
|
|
|
@Override
|
|
public boolean command(String[] cmd) {
|
|
if (!cmd[0].equalsIgnoreCase("stop")) {
|
|
return false;
|
|
}
|
|
System.out.println("Setting shutdown flag to true...");
|
|
GameEngine.shutdownServer = true;
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String help() {
|
|
return "stop - sets GameEngine.shutdownServer to true.";
|
|
}
|
|
|
|
}
|