Somehow, this managed to stay uncommited
import org.spongepowered.api.world.TeleportHelper;
import javax.annotation.Nullable;
+import java.util.Optional;
/**
* A static all access class granting static access to various systems
@@ -246,9 +247,9 @@ public static Server getServer() {
* {@link Game} instance.
*
* @see Game#getGameDictionary()
- * @return The game dictionary instance
+ * @return The game dictionary instance, or empty if unsupported
*/
- public static GameDictionary getDictionary() {
+ public static Optional<GameDictionary> getDictionary() {
return getGame().getGameDictionary();
}
