OneBot
A powerful Minecraft server plugin that bridges OneBot protocol implementations with your game server.
โจ Features
- ๐ Protocol Support - Full support for OneBot v11/v12 protocols
- ๐ฎ Wide Compatibility - Works with Minecraft 1.8-1.21+ servers
- ๐ High Performance - Built on TabooLib framework for optimal performance
- ๐ง Easy Configuration - Pre-configured templates for popular OneBot implementations
- ๐ Metrics Integration - Built-in bStats metrics for usage analytics
- ๐ Internationalization - Multi-language support with i18n
- ๐ Real-time Sync - Bidirectional message forwarding between game and chat platforms
- ๐จ Rich Text Support - Full Minecraft chat component support with formatting
๐ Requirements
- Java: 8 or higher
- Server: Bukkit/Spigot/Paper 1.8-1.21+
- Memory: Minimum 2GB recommended
- OneBot Implementation: Any OneBot v11/v12 compatible server (e.g., go-cqhttp, Lagrange.OneBot)
๐ Quick Start
Installation
-
Download the Plugin
- Get the latest release from Releases
- Choose the file:
OneBot-x.x.x.jar
-
Install on Server
# Place the JAR file in your server's plugins directory cp OneBot-*.jar /path/to/server/plugins/ -
Start/Restart Server
# Restart your Minecraft server /reload # or /stop && ./start.sh
Configuration
-
List Available Presets
/onebot preset list -
Apply a Preset Configuration
# For go-cqhttp /onebot preset apply go-cqhttp # For Lagrange.OneBot /onebot preset apply lagrange -
Connect to OneBot Server
/onebot connect -
Check Connection Status
/onebot status
๐ Project Structure
OneBot/
โโโ src/
โ โโโ main/
โ โโโ kotlin/ # Kotlin source code
โ โโโ resources/ # Resource files
โ โโโ config.yml # Main configuration
โ โโโ lang/ # Language files
โโโ build.gradle.kts # Build configuration
โโโ settings.gradle.kts # Project settings
๐ง Development
Building from Source
# Clone the repository
git clone https://github.com/BingZi-233/OneBot.git
cd OneBot
# Build the plugin
./gradlew build
# The output JAR will be in build/libs/
Development Setup
For developers who want to use OneBot as a dependency:
# Build API JAR (without implementation)
./gradlew taboolibBuildApi -PDeleteCode
Maven Dependency
<dependency>
<groupId>online.bingzi</groupId>
<artifactId>onebot</artifactId>
<version>VERSION</version>
</dependency>
Gradle Dependency
dependencies {
implementation("online.bingzi:onebot:VERSION")
}
๐ Supported OneBot Implementations
| Implementation | Protocol Version | Status |
|---|---|---|
| go-cqhttp | v11 | โ Fully Supported |
| Lagrange.OneBot | v11 | โ Fully Supported |
| Shamrock | v11 | โ Fully Supported |
| NapCat | v11 | โ Fully Supported |
| OneBot v12 | v12 | ๐ง In Development |
๐ Commands
| Command | Permission | Description |
|---|---|---|
/onebot help |
onebot.use |
Show help information |
/onebot status |
onebot.use |
Check connection status |
/onebot connect |
onebot.admin |
Connect to OneBot server |
/onebot disconnect |
onebot.admin |
Disconnect from OneBot server |
/onebot reload |
onebot.admin |
Reload configuration |
/onebot preset list |
onebot.admin |
List available presets |
/onebot preset apply <name> |
onebot.admin |
Apply a preset configuration |
๐ Configuration Guide
Basic Configuration
# config.yml
onebot:
# Connection settings
connection:
type: websocket
host: localhost
port: 8080
path: /onebot/v11/ws
# Authentication
auth:
enabled: false
token: your-token-here
# Message forwarding
forward:
game-to-bot: true
bot-to-game: true
# Format settings
format:
game-message: "[MC] <{player}> {message}"
bot-message: "[QQ] <{sender}> {message}"
Advanced Settings
See Configuration Wiki for detailed configuration options.
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ Metrics
This plugin uses bStats to collect anonymous usage data. You can opt-out in the bStats config file.
View our metrics: bStats Page
๐ Bug Reports & Feature Requests
- Bug Reports: Create an Issue
- Feature Requests: Request a Feature
- Discussions: Join Discussions
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- cnlimiter/onebot-client - This project is redesigned and reimplemented based on this project
- TabooLib - The powerful framework this plugin is built on
- OneBot - The chat protocol standard
- All contributors and users of this plugin
๐ Support
If you find this plugin helpful, please consider:
- โญ Starring the repository
- ๐ Reporting bugs and suggesting features
- ๐ค Contributing to the codebase
- ๐ข Sharing with others
Made with โค๏ธ by BingZi-233
No gallery available for this project.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
OneBot v1.2.0-7a427c2 1.2.0-7a427c2 |
1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OneBot 1.2.0-700d21b 1.2.0-700d21b |
1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OneBot 1.0.0 1.0.0 |
1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
|
bukkit, folia, paper, spigot
|
Download |