GlowstoneMC / Bukkit2Sponge

An implementation of SpongeAPI for Bukkit servers (Glowstone, Spigot)
https://www.glowstone.net/
Other
18 stars 3 forks source link

java.util.NoSuchElementException: No value present #14

Open pisaiah opened 7 years ago

pisaiah commented 7 years ago

java.util.NoSuchElementException: No value present at java.util.Optional.get(Unknown Source) ~[?:1.8.0_131] at net.glowstone.bukkit2sponge.Bukkit2Sponge.load(Bukkit2Sponge.java:102) ~[?:?] at net.glowstone.bukkit2sponge.Bukkit2Sponge.onEnable(Bukkit2Sponge.java:46) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271) ~[Bukkit.jar:?] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [Bukkit.jar:?]

Running Minecraft 1.12. Running latest jar downloaded from the link in README.md: https://bamboo.gserv.me/browse/GSPP-B2S/latestSuccessful/artifact/shared/Plugin-JAR/bukkit2sponge-0.1.0-SNAPSHOT.jar

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/46267010-java-util-nosuchelementexception-no-value-present?utm_campaign=plugin&utm_content=tracker%2F15396672&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F15396672&utm_medium=issues&utm_source=github).
satoshinm commented 7 years ago

@IsaiahPatton what Bukkit server platform and version? I am not seeing this on Glowstone server build 551 or Spigot d5dfb24-ed8c725 (MC: 1.12).

Crash is here, in getting the platform version:

            getLogger().info("SpongeAPI version: " + game.getPlatform().getContainer(Platform.Component.API).getVersion().get());