Skip to content

Commit eeba505

Browse files
committed
Update
1 parent 63a8f17 commit eeba505

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ app.use("/fs", require("./onlinefs/controller/function"));
261261
MCSERVER.infoLog("HTTP", "HTTP 模块监听: [ http://" + (host || "127.0.0.1".yellow) + ":" + port + " ]");
262262

263263
MCSERVER.infoLog("INFO", "配置文件: property.js 文件");
264-
MCSERVER.infoLog("INFO", "文档参阅: https://github.com/suwings/mcsmanager");
264+
MCSERVER.infoLog("INFO", "文档参阅: https://github.com/LiteServerProject/mcsmanager");
265265

266266
if (MCSERVER.allError <= 0) {
267267
MCSERVER.infoLog("INFO", "控制面板已经启动");

public/common/js/properties.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function () {
22
MCSERVER.findPropertiesShow = function (key) {
3-
var SuwingsLoveYou = {
3+
return {
44
"generator-settings": "用于自定义超平坦世界的生成,不生成超平坦世界请留空",
55
"allow-nether": "是否允许下界(包括地狱)",
66
"level-name": "世界(地图)名称 不要使用中文",
@@ -48,13 +48,6 @@
4848
"broadcast-console-to-ops": "向OP广播服务器控制台信息",
4949
"enforce-whitelist": "在服务器上强制使用白名单",
5050
"spawn-protection": "通过将该值进行 2x+1 的运算来决定出生点的保护半径,设置为0将只保护出生点下方那一个方块。"
51-
};
52-
53-
if (SuwingsLoveYou.hasOwnProperty(key)) {
54-
return SuwingsLoveYou[key];
55-
} else {
56-
//Not find, Return space
57-
return " ";
58-
}
51+
}[key] || " ";
5952
};
6053
})();

0 commit comments

Comments
 (0)