Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
Economic system for Minecraft Dragonfly server
Sign in to like and favorite skills
Economic system for Minecraft Dragonfly server
cmd.Runnable interfacecmd.SubCommand to define subcommandscmd.Optional[T] for optional argumentscmd.Register() with cmd.New()cmd.Output and direct player messagingdf-economy/ ├── dragonfly/commands/ # Command implementations │ ├── base.go # BaseCommand with shared utilities │ ├── register.go # Command registration │ ├── economy.go # Main help command │ ├── balance.go # Balance display (supports optional target) │ ├── set.go # Balance setting (configurable command) │ ├── top.go # Rankings with pagination │ └── pay.go # Money transfer between players ├── economy/ # Domain and business logic │ ├── domain.go # EconomyEntry domain model │ ├── config/ # Configuration management │ │ └── config.go # Economy configuration struct with multi-RDBMS and command control │ └── service/ # Business logic layer │ ├── service.go # EconomyService with validation │ └── errors.go # Service-specific error types ├── internal/db/ # Database abstraction │ ├── db.go # DB interface │ ├── factory.go # Database factory for multi-RDBMS support │ ├── gorm.go # GORM implementation with multi-RDBMS support │ ├── model.go # Account database model │ └── errors.go # Database-specific error types ├── cmd/demo/ # Demo server implementation │ └── main.go # Server setup with economy integration └── config.toml # Dragonfly server configuration
EconomyEntry struct representing core business objectsEconomyService handles business logic, validation, and configurationNewDB) creates appropriate dialector based on configuration/economy set command (default: false)When detailed Dragonfly information is needed, use the DeepwikiMCP server:
mcp__deepwiki__ask_question to get basic info about df-mc/dragonflymcp__deepwiki__read_wiki_structure to check documentation structurecmd/demo/main.go shows complete integration exampleconfig.Config for multi-RDBMS customization and command control