init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

24
world/cmd/admin/call.js Normal file
View File

@@ -0,0 +1,24 @@
this.inherits(COMMAND);
this.command = "call";
this.allow_busy = true;
this.allow_state = true;
this.allow_die = true;
this.allow_faint = true;
this.allow_level = 6;
this.regex = /^(?:(\w+)\s)?(.+)$/;
this.enter = function (me, target, arg) {
try {
var func = new Function(arg);
var player = me;
if (target) {
player = WORLD.getUser(target);
if (!player) return me.notify("没有这个玩家");
}
func.call(player);
//me.recount();
me.notify("ok");
} catch (e) {
console.log(e);
me.notify("error:" + e);
}
}