Links
Tags
Creators
Details
All versions
1.1.4
Release
Ollama Chat 1.1.4last year 59
Compatibility
Minecraft: Java Edition
1.21–1.21.10
Platforms
Bukkit
Paper
Purpur
Spigot
Changes
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文件夹以重新下载。
- 首次启动时,插件会将依赖下载到
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:x9fbBzgJ:iM7Q6r6X"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:x9fbBzgJ:iM7Q6r6X"
}

