快速入門指南

這裡將會一步步地告訴您如何用Sponge建立Minecraft伺服器。

備註

你是從Bukkit或Canary伺服器遷移來的嗎?請參閱 轉移至 Sponge,其解釋了這些平台和Sponge的不同、以及遷移步驟。

警告

如果你在BungeeCord、Waterfall、Velocity這樣的伺服代理下運行,這裡有些額外步驟必須在Sponge安裝時遵行,請參閱 透過 BungeeCord 來使用 Sponge

系統需求

運行Sponge需要Java8 update 20或更新版本。Sponge**不能**在Java9或以上版本運作。我們同時推薦使用核心速度快的CPU以及至少2GB的RAM(或更高,如果你想裝模組)。我們非常推薦使用64bit Java執行時。

參閱 :doc:`getting-started/jre`以獲得更多安裝Java8的協助。

SpongeForge 還是 SpongeVanilla?

有兩種直接與官方Minecraft程式結合的正式版Sponge實作:

  • SpongeForge - a mod for Forge that allows you to use Sponge plugins with Forge mods;
  • SpongeVanilla - a server jar that adds Sponge support directly into vanilla Minecraft.

When choosing, there are a few things to keep in mind:

  • If you want to run Forge mods alongside Sponge, you must use SpongeForge.
  • If you want to run Sponge in single player, you must use SpongeForge.
  • If you want a vanilla server with Sponge support, you can use either SpongeForge or SpongeVanilla.

While this suggests that you should use SpongeForge in all cases, SpongeVanilla can actually be easier to update and setup than Minecraft Forge and SpongeForge.

備註

Other implementations of the SpongeAPI exist that do not use Mojang’s Minecraft code, such as Lantern. This guide will only focus on the implementations that the Sponge Project provides.

SpongeForge

SpongeForge is a mod for Minecraft Forge and therefore requires a Minecraft Forge server. Set up your Minecraft Forge server first. Once you have your server set up, you can get SpongeForge from our downloads page and place it in the 「mods」 directory alongside any other mods you may wish to install. You can then start your Forge server and Sponge should be loaded.

Note that SpongeForge requires a compatible build of Minecraft Forge to be installed on your server. The version we build against is indicated on the downloads page, as well as the filename. Updating SpongeForge may also require an update to Minecraft Forge.

警告

Some mods may clash with SpongeForge’s changes causing errors to appear on the console. Before reporting this to Sponge, please refer to When Things Go Wrong. You can also ask us for help on our support channels.

For more information on how to create a Minecraft Forge server and install SpongeForge, see 安裝 SpongeForge.

SpongeVanilla

SpongeVanilla is a server wrapper for vanilla Minecraft that adds the Sponge code to Minecraft when run. Unlike SpongeForge, you do not need to have created a Minecraft server before running SpongeVanilla. It is therefore simpler to setup and update, making it a good option for those that simply want the Vanilla experience.

You can get SpongeVanilla from our downloads page. Once downloaded, ensure that you run SpongeVanilla using the command line, as Sponge disables the server console GUI to increase performance. SpongeVanilla will download the appropriate version of Minecraft and setup the server structure for you.

For more information on creating a SpongeVanilla server, see 安裝 SpongeVanilla.

設定 Sponge

Sponge is a highly configurable product. While the core is designed to provide the SpongeAPI for servers, Sponge also adds optional performance optimizations and exploit patches to the vanilla game, as well as fine tuning some of Sponge’s advanced systems. The configuration file can be found in the config/sponge directory.

For more information about how to configure Sponge, see 設定 Sponge.

安裝插件

By default, Sponge plugins are installed in the mods directory, the same directory as Forge mods. Simply add the plugins to this directory and start (or restart) your server. Your plugins should then be available, which you can verify by running the /sponge plugins command.

備註

Sponge does not have an equivalent to Bukkit’s /reload command and so plugins cannot be unloaded and reloaded during the server lifetime. The server must be restarted to change plugins.

Once plugins are installed, they may generate configuration files. The Sponge convention is that these files are placed in the config directory, but this may vary. Read the plugin documentation for any specific guidance.

For more information about plugins, please see our page on installing plugins.

備註

You can find community supplied Sponge plugins on our hosted plugin repository Ore.

下一步

Now you have created your server, we recommend you familiarize yourself with the following so that you can manage your server effectively:

When Things Go Wrong

From time to time, incompatible mods or other strange behavior might cause problems on your server. Before reaching out for help, following the advice on these pages may help you fix your problems quickly: