
Ollama Chat
A versatile Minecraft plugin that integrates Ollama and OpenAI-class APIs, providing multi-language support, real-time AI interactions, and advanced prompt and conversation management for immersive in-game experiences.
588
5
Список изменений
Version 1.1.4
Changes in this Update:
Bug Fixes 🐛
- Spigot and Bukkit Compatibility
Architectural 🧱
- Database Manager Refactoring:
- Removed HikariCP dependency and replaced connection pooling with direct
DriverManagerconnections for MySQL and SQLite.
- Removed HikariCP dependency and replaced connection pooling with direct
Dependency Management 📦
- Runtime Dependency Loading:
- Added
DependencyLoaderclass to download and load dependencies (mysql-connector-java:8.0.33,sqlite-jdbc:3.46.0.0) at runtime from Maven Central toplugins/OllamaChat/libs. - Updated
build.gradleto usecompileOnlyfor non-Paper dependencies, reducing JAR size. - Modified
Ollamachatmain class to initializeDependencyLoaderbefore other components.
- Added
Configuration Updates 🌐
- Database Configuration:
- Supports both MySQL and SQLite with fallback to SQLite if MySQL initialization fails.
- Configuration example for
config.yml:database: type: mysql mysql: host: localhost port: 3306 database: ollamachat username: root password: ""
Important Notes:
- ⚠️ Configuration Requirement:
- Ensure
config.ymlincludes valid MySQL or SQLite settings. Missing or incorrect settings may cause fallback to SQLite. - Backup existing
config.ymlbefore updating to avoid data loss.
- Ensure
- 🔄 Dependency Download:
- On first startup, the plugin downloads dependencies to
plugins/OllamaChat/libs. Ensure the server has internet access. - Delete the
libsfolder to force re-download if dependencies are corrupted.
- On first startup, the plugin downloads dependencies to
版本 1.1.4
本次更新的主要变更:
错误修复 🐛
- Spigot 和 Bukkit 兼容性
架构 🧱
- 数据库管理器重构:
- 移除 HikariCP 依赖,改用直接
DriverManager连接支持 MySQL 和 SQLite。
- 移除 HikariCP 依赖,改用直接
依赖管理 📦
- 运行时依赖加载:
- 新增
DependencyLoader类,从 Maven Central 下载并加载依赖(mysql-connector-java:8.0.33,sqlite-jdbc:3.46.0.0)到plugins/OllamaChat/libs。 - 更新
build.gradle,对非 Paper 依赖使用compileOnly,减少 JAR 大小。 - 修改
Ollamachat主类,在其他组件初始化前加载DependencyLoader。
- 新增
配置更新 🌐
- 数据库配置:
- 支持 MySQL 和 SQLite,若 MySQL 初始化失败则回退到 SQLite。
config.yml配置示例:database: type: mysql mysql: host: localhost port: 3306 database: ollamachat username: root password: ""
注意事项:
- ⚠️ 配置要求:
- 确保
config.yml包含有效的 MySQL 或 SQLite 配置,错误配置可能导致回退到 SQLite。 - 建议备份现有
config.yml以防数据丢失。
- 确保
- 🔄 依赖下载:
- 首次启动时,插件会将依赖下载到
plugins/OllamaChat/libs,确保服务器具备网络连接。 - 如依赖损坏,可删除
libs文件夹以重新下载。
- 首次启动时,插件会将依赖下载到
Файлы
OllamaChat-1.1.4.jar(50.10 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.1.4
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.21–1.21.10
Загрузок
41
Дата публикации
8 мес. назад
