我的世界电脑版服务器怎么创建?

我的世界电脑版服务器怎么创建?,第1张

看在50财富的份上,我自己开一次服!

以下为官方开服方法,需要购买正版(理论上演示版也可以,网上下载Minecraft正版启动器(版本号只能是20以及以上,这样才有中文界面和服务端下载),官网以前可以下载启动器,现在必须购买正版):

首先,先官网下载Minecraft启动器:Minecraftnet

然后注册账号、购买游戏、登录。

进入启动器以后,点击“启动选项”选项卡,然后点“新建”,然后选择版本(比如)18?

再点版本选择右边原谅色的“下载服务端”。

会自动跳转到亚马逊进行下载,下载完成以后,直接用java打开这个后缀为JAR的文件。

右侧信息栏最后一行显示“You need to agree to the EULA in order to run the server Go to eulatxt for more info”是正常的,然后关掉服务端。

接下来,你会发现服务端核心文件所在的文件夹下多了一些奇形怪状的东西,总的来说,就是“EULA”和“serverproperties”,先用记事本打开EULA。

最后一行,你会看到eula=false,把等号后面改成true,重新打开服务端

然后会生成存档之类的玩意儿,这些高级的后面会提到的。当你看到“Done (xx s)! For help, type "help" or ""”的时候,你就开服成功了!

接下来聊一聊怎么设置这个东西。

确保服务端处于关闭状态时,用写字板或记事本打开serverproperties文件,修改设置,下面是每一个设置的注释:(只能修改等号后面的内容,布尔值true为真,false为假)

generator-settings= 不管它,默认为

op-permission-level= OP权限等级,也没有修改的必要,默认为4

allow-nether= 是否生成下界,默认为true,如果只是小游戏服,建议改成false,但是改了就没有下界了

resource-pack-hash= 服务器资源包地址(下载地址),这个资源包强制玩家安装,默认为空,无特殊需要不需要管

level-name= 世界名称,自己想,默认为world

enable-query= 不知道什么意思,默认为false

allow-flight= 允许飞行,不允许的话生存模式移动速度过快直接T出,默认为false

announce-player-achievements= 玩家获得成就时是否全服都看得见,默认为true

server-port= 服务器端口,默认为25565,可以设置为60-65535之间的任何数

max-world-size= 最大世界尺寸,降低它可以有效控制存档大小,最高且默认为29999984

level-type= 世界类型,默认为DEFAULT,其他世界类型Minecraft语言调成英文就能知道

enable-rcon= 客户端是否接收服务器远程数据,默认为false,最好别动

level-seed= 世界种子,默认为空

force-gamemode= 强制游戏模式,除了OP全是默认游戏模式,默认为false

server-ip=服务器IP,接路由器的填内网IP,直连服务商的填外网IP

network-compression-threshold= 网络封包压缩的阀值,默认为256,最小设置为16

max-build-height= 最高建筑高度,最大值和默认值都是256

spawn-npcs= 生成村民,默认为true

white-list= 使用白名单,建议为false,默认为false

spawn-animals= 生成动物(除怪物、村民外的生物),默认为true

hardcore= 极限模式,生存玩家死亡后永久进入旁观模式,默认为false

snooper-enabled= 使用音乐,默认为true

online-mode= 在线模式,俗称正版验证,非正版服千万改成false,默认值是true

resource-pack= 强制资源包名字,建议且默认留空

pvp= 开启pvp(玩家攻击玩家),默认为true

difficulty= 难度,0和平,1简单,2普通,3困难,默认为1

enable-command-block= 启用命令方块,建议改成true,默认为false

gamemode= 游戏模式,0生存,1创造,2冒险,3旁观者,默认值为0

player-idle-timeout= 这不用管,默认值为0

max-players= 最大玩家数,越多服务器峰值负载越大,建议改得越小越好,默认为20

max-tick-time= 最大响应时间,不懂就不要改,默认为60000

spawn-monsters= 生成怪物,默认为true

generate-structures= 生成建筑(如神庙,要塞,村庄等),默认为true

view-distance= 视距,越大服务器和客户端载荷越大,最高为12,默认为10

motd= MOTD,服务器介绍,随便写,默认值就不用管了,是A Minecraft Server

具体白名单和黑名单建议网上搜索,再进行设置

注意:内网开服外网无法访问,需要进行内网映射或转发,具体请自行搜索,网上有很多教程

因为我用18的设置举例子,所以部分设置缺失或者高版本服务端有其他更多的设置,如有疑问,欢迎追问

另外,因为我拼了老命也要拿到50财富,所以你需要什么版本的服务端,我可以直接发给你地址,就不用下载正版启动器了!(正版下载速度实在太)

Commands
You can issue commands to the server by typing in the console The following commands are available < > means a parameter is required, [ ] means it's optional and | denotes different allowed values Strings can be enclosed in double quotes, ", if they contain spaces

Command syntax Description
kick <player name or xuid> <reason> Immediately kicks a player The reason will be shown on the kicked players screen
stop Shuts down the server gracefully
save <hold | resume | query> Used to make atomic backups while the server is running See the backup section for more information
whitelist <on | off | list | reload>
on and off turns the whitelist on and off Note that this does not change the value in the serverproperties file!

list prints the current whitelist used by the server

reload makes the server reload the whitelist from the file

See the Whitelist section for more information

whitelist <add | remove> <name> Adds or removes a player from the whitelist file The name parameter should be the Xbox Gamertag of the player you want to add or remove You don't need to specify a XUID here, it will be resolved the first time the player connects

See the Whitelist section for more information
permissions <list | reload>
list prints the current used operator list

reload makes the server reload the operator list from the ops file

See the Permissions section for more information

op <player>
Promote a player to operator This will also persist in permissionsjson if the player is authenticated to XBL If permissionsjson is missing it will be created If the player is not connected to XBL, the player is promoted for the current server session and it will not be persisted on disk Defualt server permission level will be assigned to the player after a server restart

deop <player>
Demote a player to member This will also persist in permissionsjson if the player is authenticated to XBL If permissionsjson is missing it will be created

changesetting <setting> <value> Changes a server setting without having to restart the server Currently only two settings are supported to be changed, allow-cheats (true or false) and difficulty (0, peaceful, 1, easy, 2, normal, 3 or hard) They do not modify the value that's specified in serverproperties
Backups
The server supports taking backups of the world files while the server is running It's not particularly friendly for taking manual backups, but works better when automated The backup (from the servers perspective) consists of three commands

Command Description
save hold This will ask the server to prepare for a backup It’s asynchronous and will return immediately
save query After calling save hold you should call this command repeatedly to see if the preparation has finished When it returns a success it will return a file list (with lengths for each file) of the files you need to copy The server will not pause while this is happening, so some files can be modified while the backup is taking place As long as you only copy the files in the given file list and truncate the copied files to the specified lengths, then the backup should be valid
save resume When you’re finished with copying the files you should call this to tell the server that it’s okay to remove old files again


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/10664180.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-10
下一篇 2023-05-10

发表评论

登录后才能评论

评论列表(0条)

保存