Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Links
Creators
Details
Licensed MIT
Published 5 months ago
Updated 6 days ago
Changelog
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
DriverManager
connections for MySQL and SQLite.
- Removed HikariCP dependency and replaced connection pooling with direct
Dependency Management 📦
- Runtime Dependency Loading:
- Added
DependencyLoader
class 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.gradle
to usecompileOnly
for non-Paper dependencies, reducing JAR size. - Modified
Ollamachat
main class to initializeDependencyLoader
before 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.yml
includes valid MySQL or SQLite settings. Missing or incorrect settings may cause fallback to SQLite. - Backup existing
config.yml
before 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
libs
folder 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
文件夹以重新下载。
- 首次启动时,插件会将依赖下载到
Files
Metadata
Release channel
ReleaseVersion number
1.1.4Loaders
Game versions
1.21–1.21.8Downloads
16Publication date
July 14, 2025 at 5:26 PMPublisher

xwwsdd
Member