Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement

注:如果你尝试架设一个原版服务器,你会进入一个错误的页面。This is to set up the modded server SpigotMC or the dwindling Bukkit。如果你想架设一个原版的Minecraft服务器,请参考设教程/架设服务器

所以,你已经架设原版服务器两周了,事情越来越无聊。你希望服务器拥有更多的自定义功能,以及易于设置和使用的接口。这时,你需要Spigot。此教程将向你展示如何轻松架设服务器并让你的朋友加入,以及服务器上使用的插件与Mods列表。Spigot目前更新到1.12.X。

请注意,本教程仅适用于Windows。如果你在使用macOS或Linux,请阅读此教程

获取程序

首先,点击这里下载最新的BuildToolsGUI.exe。若正常要使用此程序,需要安装 .NET 4.5。如果你的电脑已经使用了一段时间的话,你很可能已经安装了。如果没有,请在这里获取安装程序并安装。

准备工作

现在我们已经有BuildToolsGUI了,开始吧。打开BuildToolsGUI.exe文件,如果需要,可以使用下拉菜单来更改版本。点击“RunBuildTools”后,它将开始运行,请稍等片刻直到它完成运行。不过这可能需要一段时间,这取决于你的网络状态和计算机性能。完成运行之后,打开与可执行文件在同一目录下的BuildTools文件夹。接着,在桌面上创建一个名为“Spigot”的文件夹。复制文件“spigot-1.x.x”并将其重命名为“spigot”。然后,打开一个文本编辑器,并复制以下代码并粘贴进去:

JAVA -Xmx1024M -Xms1024M -jar spigot.jar

In your text editor, select File > Save As, and navigate to the Spigot directory. Change the name of the file to run.bat.

第一次启动服务器

  • Double-click your run.bat in the Spigot directory. A command prompt window will open briefly, then close.
  • Open eula.txt in the Spigot directory, and change eula=false to eula=true.
  • Double-click run.bat again to start the server. Some new files will be created in the Spigot directory.

Congratulations! Your server is now up and running. To connect to it, open the version of Minecraft your server is on, click Multiplayer, then Direct Connect, and type in localhost as the server IP. You should connect to the world that was generated a moment ago. Now you can start to customize your server with the various options included and plugins that you can download.

定制你的服务器

With the Command Window still open, type op <yourusername> and hit Enter. You are now an operator and have privileges to execute commands on the server. Another file to play around in is the server.properties file. Open it up with a text editor and play around. There are many guides around the internet that show what these various options do, and one can be found here. When you are done on your server, type stop into the console to stop the server. If you want to add plugins to your server, you can find some here, here, and here. To install a downloaded plugin, place it in the Plugins folder in your Spigot directory. To start your server again, simply double-click run.bat.

Advertisement