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

32
world/cmd/admin/notice.js Normal file
View File

@@ -0,0 +1,32 @@
this.inherits(COMMAND);
this.command = "notice";
this.allow_busy = true;
this.allow_state = true;
this.allow_die = true;
this.allow_level = 1;
const MESSAGE = WORLD.MESSAGE;
this.enter = function (me, arg) {
var nt = {
content: arg,
time: Date.now()
};
MESSAGE.NOTICES.push(nt);
var item = {
type: "dialog", dialog: "message", message: {
time: nt.time,
content: nt.content,
id: "notice",
name: "系统公告"
}
};
var str = JSON.stringify(item);
WORLD.sendAll(str);
}
this.updatelast = function (me) {
MESSAGE.NOTICES[MESSAGE.NOTICES.length - 1].content = `
古大陆妖族营地在每周快速完成后,仍可以继续手动击杀,直到每周上限。
降低营地1刷新速度10秒其他营地暂时关闭
`;
me.send(MESSAGE.NOTICES[MESSAGE.NOTICES.length - 1].content);
}