Ofte stillede spørgsmål

Advarsel

This documentation refers to an outdated SpongeAPI version and is no longer actively maintained. While the code examples still work for that API version, the policies, guidelines, and some links may have changed. Please refer to the latest version of the documentation for those.

For alle

Hvad er Sponge?

Sponge er et nyt alsidigt Minecraft API. Det blev forsøgt at berige din Minecraft erfaring ved at tillade plugins til at tilføje funktionalitet til Minecraft. Læs mere om Sponge her: :doc: ›Introduktion‹, og historien om Sponge her: :doc: ›historie‹

Hvad er nødvendig for at køre Sponge?

Sponge (og Minecraft) har brug for Java Runtime Environment til at køre ordentligt. Du skal naturligvis også bruge en computer til at køre serveren på, ud over, at intet er påkrævet. Læs mere om at vælge den korrekte Java version her: :doc:‹../server/getting-started/jre/‹

Hvor kan jeg få Sponge?

Beta udvikling bygget på SpongeForge og SpongeVanilla er allerede tilgængelige: Sponge Downloads

Hvilke Sponge implementeringer er tilgængelige?

Sponge projektet udvikler i øjeblikket to implementeringer, som begge bruger SpongeAPI:

  1. SpongeForge, a coremod for Minecraft Forge, which is an existing Minecraft modding framework famous for spurring the Minecraft modding scene. Forge lacks a cross-version API, and this is where Sponge steps in. Sponge allows server owners to deploy Sponge plugins with ease, making server management easier. (SpongeForge was formerly known as Sponge, until it was renamed to avoid confusion).

  2. SpongeVanilla, a stand-alone implementation of the Sponge API, running on top of the vanilla Minecraft server. (SpongeVanilla was formerly known as Granite, until the development teams merged).

Hvor kan jeg få Plugins for Sponge?

On our official plugin repository, which is called Ore. Development has already started on GitHub. Temporarily, plugins are hosted on the SpongeForums.

Hvad skete der med Bukkit?

The Bukkit project halted further development of their API and server modification. Shortly thereafter, one of the contributors to Bukkit sent a DMCA takedown notice to stop further distribution of CraftBukkit. He was within his legal right. Downloads, as well as source code, for CraftBukkit and its derivatives (such as Spigot and Cauldron) are no longer publicly available. If you want to know the reasons why this affected Sponge development, have a look at our history page: Historien om Sponge

Kan jeg køre Bukkit Plugins med dette?

Sadly no, not natively. Sponge is using its own API (Sponge API), while Bukkit is using the Bukkit API. However there is the possibility that a third-party plugin for Sponge implements the Bukkit API on top of Sponge API.

For server ejere

Jeg er ejer af en server! Hvordan vil skiftet til Sponge påvirke min server?

For en eksisterende Forge server skal du downloade Sponge og placere den i mods mappen. Serveren kan derefter startes som enhver anden Forge server.

Non-Forge servers may elect to use SpongeVanilla instead, an implementation that does not rely on Forge. There are guides for migrating from Bukkit and/or Canary elsewhere on SpongeDocs. It is worth noting that many plugin developers from the Bukkit community have thrown their weight behind Sponge, and are planning to make their plugins available for Sponge-powered servers.

Verdener vil kunne blive konventet over. Det er op til plugin udviklere at skabe omdannelsesprocesser, der vil tillade dig at beholde plugin data, hvis de findes. Nogle plugin udviklere gør nok ikke dette.

På en relateret note, vil vi ikke være til at yde støtte til Bukkit plugins på Sponge. Det kan dog være muligt for en tredjepart at skabe en måde for Bukkit plugins at arbejde på Sponge.

Hvordan vil skiftet til Sponge påvirke spillere på min server?

Skift til Sponge bør ikke berøre spillere på din server. Hvis du (som server ejer) migrare korrekt, vil spillerne være i stand til at oprette forbindelse til din server på samme måde, som de gjorde, før du migrare til Sponge. De behøver ikke have Forge installeret - medmindre din server kører Forge mods, selvfølgelig.

For udviklere

Hvad kan jeg gøre med Sponge?

Sponge provides a Plugin API. This means that you can create new content and gamemodes on the go. Have a look at our plugin pages to get a quick-start: Oprettelse af plugins

Hvad kan jeg ikke gøre med Sponge? / Begrænsninger af Sponge?

Sponge can’t be used to create new blocks, textures, mobs on the clientside or any other content which would need clientside modifications. The Sponge API wont support sending mods or plugins to the client for now due to security concerns. However you can make use of the ForgeAPI for clients and create Sponge plugins for the serverside. It is even possible to use Sponge on the client-side, but for several tasks mods are still required.

I’m a Bukkit Plugin Developer! Why Can’t Sponge Use Bukkit’s API?

Bukkit’s API contains code licensed under the GPL. This is a large reason why Bukkit met its demise in September 2014; by moving forward with a new API licensed under the MIT license, we can avoid some of the problems that fell upon Bukkit. While this does not free us from Mojang’s control, as their code is proprietary, it is our belief that Mojang supports modding and will continue to do so.

Will I Be Able to Access the Server Internals In My Plugins?

Accessing the server internals (known as »NMS« or »net.minecraft.server« in CraftBukkit) can be done through MCP, which has a large number of names de-obfuscated. However, be aware that accessing the server internals raises the risk of your plugin breaking - this is your prerogative.

Se Implementation-dependent Plugins for en introduktion om brug af MCP i dit plugin.