Command constructor

Command(
  1. String _command
)

A Command is a raw action, that is executed by Minecraft directly.

Command('/say hey')
==> say hey

Implementation

Command(this._command) {
  if (_command.isNotEmpty && _command.substring(0, 1) == '/') {
    _command = _command.substring(1);
  }
}