stop method

  1. @override
Future<VanillaServer> stop ()
override

Implementation

@override
Future<VanillaServer> stop() async {
  if(!this.running) throw("Server is not running!");
  executeCommand("stop");
  await process.exitCode;
  this._running = false;
  this.process = null;
  return this;
}