Skip to content

Plugin Development Reference

Welcome to the Xinbot Plugin Development Manual. Xinbot features a highly decoupled, plugin-based architecture that allows developers to extend almost every functionality of the bot using simple Java code.

🚀 Core Documentation

  • Plugin Lifecycle: Setup your project and master lifecycle hooks like onEnable.
  • Event System: Listen to 20+ built-in events including chat, login, and player updates.
  • Command System: Add custom console commands with tab completion and real-time highlighting.
  • Packet Handling: Go low-level and handle raw Minecraft protocol packets.

💡 Development Tips

  • Java Version: Java 17 or newer is required.
  • Dependencies: Maven or Gradle is recommended for project management.
  • Study Source Code: Examining the existing plugin infrastructure in the Xinbot source code, or referring to official open-source plugins like MovementSync, is the best way to learn advanced usage.

Released under the GPL-3.0 License.