Files
2006Scape/2006Redone Server/src/main/java/com/rebotted/console/commands/Stop.java
T
Daniel GinovkerandSandro Coutinho eebc60084f Make project setup easier with Maven (#411)
* 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>
2020-08-04 17:57:19 -04:00

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.";
}
}