mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-05 15:29:35 +08:00
更新 翻译文件&隐藏一些功能
This commit is contained in:
parent
71735494a9
commit
bfb7a5849c
@ -1,6 +1,9 @@
|
||||
(function() {
|
||||
MCSERVER.findPropertiesShow = function(key) {
|
||||
var SuwingsLoveYou = {
|
||||
var translate = {
|
||||
"require-resource-pack": "是否需要资源包",
|
||||
"enable-jmx-monitoring": "是否启用 JMX 监视",
|
||||
"sync-chunk-writes": "是否启用同步区块写入",
|
||||
"generator-settings": "用于自定义超平坦世界的生成,不生成超平坦世界请留空",
|
||||
"allow-nether": "是否允许下界(包括地狱)",
|
||||
"level-name": "世界(地图)名称 不要使用中文",
|
||||
@ -17,18 +20,18 @@
|
||||
"white-list": "是否开启白名单",
|
||||
"spawn-animals": "是否生成动物",
|
||||
"snooper-enabled": "启用数据采集",
|
||||
hardcore: "极限模式(死后自动封禁)",
|
||||
"hardcore": "极限模式(死后自动封禁)",
|
||||
"texture-pack": "材质包",
|
||||
"online-mode": "在线(正版)验证",
|
||||
pvp: "是否允许玩家互相攻击",
|
||||
difficulty: "难度0=和平 1=简单 2=普通 3=困难",
|
||||
"pvp": "是否允许玩家互相攻击",
|
||||
"difficulty": "难度: peaceful, easy, normal, or hard",
|
||||
"player-idle-timeout": "允许的挂机时间,单位为分钟 超过限制后自动T出服务器",
|
||||
gamemode: "游戏模式 0=生存 1=创造 2=冒险 3=旁观",
|
||||
"gamemode": "游戏模式 0=生存 1=创造 2=冒险 3=旁观",
|
||||
"max-players": "服务器最大玩家数限制",
|
||||
"spawn-monsters": "生成攻击型生物(怪物)",
|
||||
"view-distance": "服务器发送给客户端的数据量,决定玩家能设置的视野",
|
||||
"generate-structures": "生成世界时生成结构(如村庄)禁止后地牢和地下要塞仍然生成",
|
||||
motd: "服务器信息展示 若使用ColorMotd等插件可留空该选项",
|
||||
"motd": "服务器信息展示 若使用ColorMotd等插件可留空该选项",
|
||||
"op-permission-level": "OP权限等级 ",
|
||||
"announce-player-achievements": "玩家获得成就时,是否在服务器聊天栏显示(是否允许其装X)",
|
||||
"network-compression-threshold": "网络压缩阈值",
|
||||
@ -43,17 +46,15 @@
|
||||
"rcon.password": "设置RCON远程访问的密码(参见enable-rcon)",
|
||||
"query.port": "设置监听服务器的端口号(参见 enable-rcon)",
|
||||
"use-native-transport": "是否使用针对Linux平台的数据包收发优化 [ 仅Linux ]",
|
||||
debug: "调试模式",
|
||||
"debug": "调试模式",
|
||||
"broadcast-rcon-to-ops": "向OP广播RCON信息",
|
||||
"broadcast-console-to-ops": "向OP广播服务器控制台信息",
|
||||
"enforce-whitelist": "在服务器上强制使用白名单",
|
||||
"spawn-protection": "通过将该值进行 2x+1 的运算来决定出生点的保护半径,设置为0将只保护出生点下方那一个方块。"
|
||||
};
|
||||
|
||||
if (SuwingsLoveYou.hasOwnProperty(key)) {
|
||||
return SuwingsLoveYou[key];
|
||||
}
|
||||
if (translate.hasOwnProperty(key)) {
|
||||
return translate[key];
|
||||
} else {
|
||||
//Not find, Return space
|
||||
return " ";
|
||||
}
|
||||
};
|
||||
|
@ -47,10 +47,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="Panel" :class="serverData.autoRestart?'PanelGreen':'PanelGray'">
|
||||
<div class="PanelTitle">崩溃监视与配置</div>
|
||||
<div class="PanelTitle">配置文件</div>
|
||||
<div class="PanelBody">
|
||||
<div class="PanelItem" v-on:click="toProperties()">
|
||||
<span class="glyphicon glyphicon-cog" aria-hidden="true"> </span> Server.properties 配置文件
|
||||
<span class="glyphicon glyphicon-cog" aria-hidden="true"> </span> Server.Properties
|
||||
</div>
|
||||
<transition name="slide-fade">
|
||||
<div class="PanelItem" v-on:click="toAutoRestart(false)" v-show="serverData.autoRestart">
|
||||
@ -58,12 +58,16 @@
|
||||
<span style="color: #29b90c">打开</span>
|
||||
</div>
|
||||
</transition>
|
||||
<!-- 此功能有问题缺陷,因 9.X 版本发布,8.7 最终版本修复此问题收益已经不大,此功能现已隐藏 -->
|
||||
<!-- 若您想恢复此功能,只需要将注释掉的 HTML 代码恢复即可使用 -->
|
||||
<!--
|
||||
<transition name="slide-fade">
|
||||
<div class="PanelItem" v-on:click="toAutoRestart(true)" v-show="!serverData.autoRestart">
|
||||
<span class="glyphicon glyphicon-retweet" aria-hidden="true"> </span> 崩溃重启:
|
||||
<span style="color: #818181">关闭</span>
|
||||
</div>
|
||||
</transition>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="Panel" :class="serverData.autoStart?'PanelGreen':'PanelGray'">
|
||||
|
@ -6,29 +6,27 @@
|
||||
<div class="PanelBody">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 PanelItemF">
|
||||
<p>您可以进行如下操作:</p>
|
||||
<div class="PanelItem" v-on:click="toBackConsole()">
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span>
|
||||
返回到控制台
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span> 返回到控制台
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdateProperties()">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
||||
更新配置
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 更新配置
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="re()">
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
|
||||
从内存刷新
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> 从内存刷新
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdatePropertiesFormFile()">
|
||||
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span>
|
||||
从文件刷新
|
||||
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span> 从文件刷新
|
||||
</div>
|
||||
<p>
|
||||
文件配置参考:
|
||||
<a href="https://minecraft.fandom.com/zh/wiki/Server.properties">https://minecraft.fandom.com/zh/wiki/Server.properties</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>{{ serverName }} 服务器 Properties 配置文件更改</p>
|
||||
<p>解释: true 代表开, false 代表关,空白代表无值,请注意格式修改,确认无误保存即可,重启服务端生效</p>
|
||||
<p>解释: true 代表启用,false 代表关闭,空白代表无值,请注意格式修改,确认无误保存即可,重启服务端生效。</p>
|
||||
<table class="PropertiesList" width="100%">
|
||||
<tr>
|
||||
<th>原字段键值</th>
|
||||
@ -49,16 +47,13 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12 PanelItemF">
|
||||
<div class="PanelItem" v-on:click="toBackConsole()">
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span>
|
||||
返回到控制台
|
||||
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span> 返回到控制台
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="toUpdateProperties()">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
||||
更新配置
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 更新配置
|
||||
</div>
|
||||
<div class="PanelItem" v-on:click="re()">
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
|
||||
重新刷新读取
|
||||
<span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> 重新刷新读取
|
||||
</div>
|
||||
<hr />
|
||||
<p>最后,请检查是否符合格式,条件,仔细检查后即可确认修改,或者直接返回到其他页面直接舍弃修改。</p>
|
||||
|
Loading…
Reference in New Issue
Block a user