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.

referencesconfig-data-and-async.md

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

Config, Data, And Async Patterns

Use this reference when a task touches config loading, persistence, caches, scoreboards, or background refreshes.

Config patterns from real plugins

Multi-config minigame layer

Large minigames may use multiple config-oriented classes:

  • PluginConfigManager
  • GameConfigurationManager
  • KillMessagesConfig
  • MessagesConfig
  • LevelsConfig
  • MapConfig
  • PlayerConfig

This pattern works well when gameplay systems each own a distinct config surface.

Tradeoff:

  • easy to grow per-domain config
  • harder to keep defaults and reload semantics consistent unless carefully managed

Defensive wrapper config layer

Persistent brawl modes may use a defensive wrapper around the main config and separate loaders for other domain files such as progression and heroes.

Observed strengths:

  • fallback values
  • warning logs on invalid config
  • one wrapper for core lobby and material settings

Guidance:

  • if the project is still compact, prefer a typed wrapper with fallbacks
  • split into many config managers only when domain complexity truly requires it

Database and player data patterns

Match-heavy minigame observations

  • uses a database manager plus stats and brand-related storage
  • flushes pending updates before disconnecting

Persistent-brawl observations

  • separates DatabaseManager, repository, and service
  • keeps in-memory cache keyed by UUID
  • tracks dirty players
  • flushes asynchronously
  • rebuilds leaderboards from cached data
  • uses dirty sets for sidebar and rank UI so scoreboards are refreshed in batches
  • snapshots leaderboard data before presenting it to gameplay or UI code

Guidance:

  • use a repository or DAO boundary when persistence logic grows
  • keep a cache for hot player stats
  • record dirty entries instead of writing on every event
  • flush on intervals and on shutdown
  • debounce or batch leaderboard rebuilds when kills, deaths, or ranks can change frequently
  • publish immutable snapshots or copies from async-maintained caches

Async rules for Paper plugins

Observed safe persistent-brawl pattern:

  • preload cache asynchronously
  • when data is ready, switch to the main thread for Bukkit-side UI refreshes
  • async leaderboard rebuilds avoid blocking gameplay

Recommended rules:

  • async:
    • SQL
    • file-heavy processing
    • leaderboard rebuilds
    • cache recomputation
  • main thread:
    • teleport
    • inventory changes
    • entity or world mutation
    • scoreboard and visible UI changes unless the API is explicitly thread-safe

Background task patterns

Observed persistent-brawl patterns:

  • async periodic leaderboard rebuild checks
  • async dirty-player flush task
  • throttled UI refresh strategy with dirty sets
  • main-thread scoreboard flush from UUID dirty sets
  • async cache preload followed by main-thread scoreboard, tab name, and leaderboard refresh

Observed match-heavy minigame patterns:

  • main-thread periodic game-stage task
  • per-session cooldown ticking
  • time-sensitive display refreshes tied to game progression

Guidance:

  • use async tasks for data maintenance
  • use main-thread tasks for gameplay progression
  • if a task can be event-driven plus dirty-flagged, prefer that over brute-force refreshing everything every tick
  • copy mutable cached data before saving or sorting it asynchronously
  • avoid starting async work from inside an async repeating task unless you need distinct lifecycle control

Config contribution guidance

When generating config-aware code:

  • provide defaults
  • validate inputs
  • document required keys
  • avoid silently crashing on invalid material names or missing locations
  • mention whether reload is safe for the specific subsystem

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.