init: add workspace files
This commit is contained in:
10
world/cmd/skill/stopstate.js
Normal file
10
world/cmd/skill/stopstate.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user