11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
this.inherits(COMMAND);
|
|
this.command = "stopstate";
|
|
this.allow_busy = true;
|
|
this.allow_state = true;
|
|
this.enter = function (player) {
|
|
if (player.state) {
|
|
if (player.state.no_stop) return player.notify(player.state.no_stop);
|
|
}
|
|
player.set_state(null);
|
|
}
|