BukkitCode

Documentation

Everything needed to go from an empty session to a plugin running on your server: the workflow, the compiler, the project layout and the limits.

Quick start

01

Sign in

Open the chat and sign in with email, GitHub or QQ. New accounts start on Free: one-time trial credits, 200KB project quota, five sessions.

02

Describe the plugin

State commands, permissions, messages, config keys and edge cases. Concrete beats creative - the engine writes what you specify.

Create a plugin named WelcomeKit. Command /kit start gives the player a starter kit once per hour.
Show a configurable cooldown message. Permission: welcomekit.use. Items list in config.yml.
03

Review the project

Open the file panel and read any generated file. The project lives in the session file system and survives reloads.

04

Iterate

Reply in the same session with one change at a time. The engine edits existing files instead of regenerating the project.

05

Export

Use Download .sirc project in the file panel to get the whole project as one bundle.

06

Compile and install

Drop the bundle into your server's plugin data directory, run the compiler in game, then restart and verify commands and permissions.

plugins/BukkitCode/project/YourProject.sirc
/bukkitcode compiler YourProject.sirc

Core concepts

Session

A conversation plus its project. Sessions are independent: files, context and history never leak between them. Each plan caps how many you can keep open.

Project

The file tree the engine maintains - sources, resources, build metadata. Every file is editable from the panel, and every edit becomes part of the conversation state.

Credits

Model usage measured in tokens, charged to your plan's monthly allowance. Cached input, fresh input and generated output have different prices; the per-request breakdown is shown in the session panel.

Bundle (.sirc)

A single-file export of the project. Portable, versionable, and the only input the compiler needs.

Compiler reference

The compiler is a server-side plugin command that turns a .sirc bundle into a JAR in your plugins directory.

/bukkitcode compiler .sirc
  • Input: a .sirc file inside plugins/BukkitCode/project/.
  • Output: a JAR written into the server's plugins directory.
  • The server must be restarted (or reloaded) before the new plugin is picked up.
  • API version and dependencies come from the project metadata - verify they match your core before going live.

Project structure

A generated project follows the standard layout your build tool expects, plus the metadata the compiler reads:

YourProject/
  plugin.yml          commands, permissions, api-version
  config.yml          default configuration
  src/...             Java sources
  resources/          messages, data templates

Treat the generated project as a starting point: review it, rename as needed, and keep it under version control (push to GitHub from Starter upwards).

Quotas and credits

PlanStorageSessionsThinkingGitHub push
Free200KB5--
Starter500KB20IncludedIncluded
Pro750KB40IncludedIncluded
Team2MB80IncludedIncluded

When a month's credits run out, top up the wallet (WeChat Pay, Alipay, PayPal) and continue in the same session. Top-ups do not change plan limits.

HTTP API

The web app talks to a documented REST API. Authenticated calls use a bearer token; the main resources are sessions, messages, files and billing.

POST   /api/v1/sessions              create a session
GET    /api/v1/sessions              list sessions
POST   /api/v1/sessions/{id}/chat    send a message
GET    /api/v1/billing/session/{id}  session cost summary
GET    /api/v1/wallet/me             balance and plan

Every endpoint requires authentication except the public registration endpoints. Rate limits apply per IP and per user.

Troubleshooting

The command does not exist after install

Check that plugin.yml contains the command and that the JAR is in the right plugins directory. A reload is not always enough - restart the server.

Permission denied for a player

Confirm the permission node in plugin.yml matches the one in the code, then grant it through your permission plugin.

API version mismatch

The generated project targets an API version declared in its build metadata. Align it with your server core before compiling.

Compiler rejects the bundle

Re-export the project from the session panel - a partially downloaded .sirc is the most common cause.