註:如果你嘗試架設一個原版伺服器,你會進入一個錯誤的頁面。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.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||