/
DriverManager connections for MySQL and SQLite.DependencyLoader class to download and load dependencies (mysql-connector-java:8.0.33, sqlite-jdbc:3.46.0.0) at runtime from Maven Central to plugins/OllamaChat/libs.build.gradle to use compileOnly for non-Paper dependencies, reducing JAR size.Ollamachat main class to initialize DependencyLoader before other components.config.yml:
database:
type: mysql
mysql:
host: localhost
port: 3306
database: ollamachat
username: root
password: ""
Important Notes:
config.yml includes valid MySQL or SQLite settings. Missing or incorrect settings may cause fallback to SQLite.config.yml before updating to avoid data loss.plugins/OllamaChat/libs. Ensure the server has internet access.libs folder to force re-download if dependencies are corrupted.DriverManager 连接支持 MySQL 和 SQLite。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。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 文件夹以重新下载。
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.