Index of every page on this site: llms.txt
All skills
github avatar

/minecraft-plugin-development

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Use this skill when building or modifying Minecraft server plugins for Paper, Spigot, or Bukkit, including plugin.yml setup, commands, listeners, schedulers, player state, team or arena systems, persistent progression, economy or profile data, configuration files, Adventure text, and version-safe API usage. Trigger for requests like "build a Minecraft plugin", "add a Paper command", "fix a Bukkit listener", "create plugin.yml", "implement a minigame mechanic", "add a perk or quest system", or "debug server plugin behavior".

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/minecraft-plugin-development

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesstate-sessions-and-phases.md

≈873 tokens on demand. Your agent reads this file only when SKILL.md points to it.

State, Sessions, And Phases

Use this reference when designing player state, match flow, cooldowns, respawn logic, class selection, or round progression.

Session modeling in real plugins

Rich minigame session

Feature-heavy minigames often keep rich per-player runtime state in PlayerSession, including:

  • current team
  • kill and final kill counters
  • death flag
  • persistent potion-like buffs
  • selected brands grouped by category
  • per-brand cooldowns
  • special item cooldowns

This is a strong pattern for feature-heavy minigames where one player can carry many temporary gameplay modifiers.

Lean persistent-brawl session

Persistent brawl modes often keep a leaner PlayerSession, including:

  • PlayerState
  • selected hero
  • fall protection state
  • safe-zone tracking
  • generic cooldown map

This is a strong pattern when the plugin has one dominant game loop and most feature-specific behavior lives in services.

Rule 1: model player state explicitly

Do not infer state from inventory contents, world, or scoreboard text alone.

Prefer an enum or similarly explicit model such as:

  • LOBBY
  • RESPAWNING
  • IN_BRAWL
  • queueing
  • spectating
  • eliminated
  • reconnect-pending

Rule 2: use sessions as the source of temporary truth

Good session contents:

  • cooldowns
  • selected class or hero
  • selected team
  • in-round modifiers
  • safe-zone knowledge
  • reconnect markers
  • fall protection or spawn protection

Avoid placing these as scattered listener fields.

Rule 3: gameplay phases deserve first-class objects

Observed match-heavy minigame pattern:

  • GamePhase
  • scheduled phase transitions
  • boss and bed-destruction events tied to phases
  • phase-dependent spawners and world border changes

Guidance:

  • for round-based modes, use a phase enum or state machine
  • trigger map-wide events from phase transitions, not random listeners
  • keep the “what happens at phase N” logic centralized

Rule 4: match overlays should not be mixed blindly into normal rounds

Observed match overlay pattern:

  • MatchManager
  • MatchSession
  • separate handling for participants, observers, reconnects, brand rules, and round interception

Guidance:

  • if tournament or match mode changes the base game rules, isolate it behind a dedicated manager
  • keep “normal game” and “match override” behavior composable, not tangled

Rule 5: reconnect and cleanup paths matter

Observed concerns:

  • match participants may disconnect and reconnect
  • game sessions can outlive the current online Player object
  • cleanup must happen on quit, death, round end, and plugin shutdown

Guidance:

  • prefer UUID for durable identity
  • if you must keep live Player references, also define detach/reattach behavior
  • always think through quit, reconnect, death, respawn, and shutdown together

Rule 6: cooldowns should be centralized

Observed patterns:

  • Some match-heavy minigames tick cooldown maps during stage task updates
  • Some persistent-brawl modes store cooldown expiry timestamps in session data

Choose based on your mode:

  • tick-down integers:
    • good for per-second synchronized gameplay pacing
  • expiry timestamps:
    • good for lightweight cooldown checks across arbitrary actions

Practical design heuristic

If your feature changes what a player is allowed to do for some period of time, it probably belongs in session state.

If your feature changes what the whole match is doing, it probably belongs in game or match state.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides comprehensive architectural guidance and code patterns for developing Minecraft plugins. No security risks or malicious behaviors were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 7 months ago
  • minecraft
  • paper
  • spigot
  • bukkit
  • java
  • plugin-development
  • game-mechanics
  • pvp
  • minigames
  • persistence

README badge

README badge for github/awesome-copilot/minecraft-plugin-development

Develops Minecraft server plugins for Paper, Spigot, and Bukkit with support for commands, listeners, schedulers, player state, minigames, arenas, persistent progression, and config-driven mechanics. Covers plugin.yml setup, combat systems, wave encounters, team modes, scoreboards, economy, quests, and version-safe API usage across the entire plugin lifecycle.

Generated from the current SKILL.md.

Does this skill work with Paper, Spigot, and Bukkit?
Yes. The skill covers all three server APIs, though it prefers Paper-first APIs when the project already targets Paper and avoids downgrading to generic Bukkit unless compatibility is explicitly required.
Can I use this skill for Fabric or Forge mods?
No. This skill is scoped to Paper, Spigot, and Bukkit server plugins only. Fabric mods, Forge mods, client mods, and Bedrock add-ons are out of scope.
Does this skill help with minigame and arena systems?
Yes. The skill includes patterns for arena instances, game phases, match state, minigame flow, map rotation, loot refreshes, wave systems, and visibility isolation between arenas.
What if I need to work with persistent player progression or economy systems?
The skill covers persistent profiles, perks, buffs, quests, economy rewards, and long-running PvP servers. It includes reference material on state modeling, async data handling, and custom event dispatch.
Does this skill handle async database access safely?
Yes. The skill enforces main-thread boundaries, requires async work to switch back to the main thread before applying gameplay changes, and includes patterns for safe database flushes and state mutation.

Generated from the current SKILL.md. These answers refresh after source changes.