📄
pasted-code-1793655512630.txt
txt
1411 lines
▶
# MCFACORE – ULTIMATE ALL-IN-ONE MINECRAFT PLUGIN
## MAIN OBJECTIVE
Act as a senior Minecraft plugin developer. Build a complete, professional, fully functional All-in-One Minecraft server plugin for my network **MCFA-HUB**.
I want ONE main plugin that includes:
1. All the new features described below.
2. All useful features of my currently installed plugins.
3. Every command and administrative tool.
4. All GUIs, databases, permissions and configurations.
5. A complete replacement for compatible gameplay plugins.
6. Integration with external networking plugins that cannot safely be replaced.
Do not skip features. Do not create empty commands, fake GUIs, placeholder implementations or non-working systems.
---
# 1. PROJECT INFORMATION
- Plugin name: MCFACore
- Main class: `com.mcfa.core.MCFACore`
- Package: `com.mcfa.core`
- JAR name: `MCFACore.jar`
- Minecraft: Paper 1.21.11
- Java: 21
- Build system: Maven
- Database: SQLite
- Chat API: Adventure
- Configuration: YAML
- Permissions: LuckPerms integration
- Economy: Vault-compatible economy API
Deliver:
- Complete Java source code.
- Complete Maven project.
- Compiled `MCFACore.jar`.
- All configuration files.
- Installation guide.
- Commands and permissions documentation.
# 2. EXISTING SERVER PLUGINS – INCLUDE THEIR FEATURES
My existing plugins are:
- EssentialsX
- LuckPerms
- Vault
- PlaceholderAPI
- Geyser-Spigot
- Floodgate
- ViaVersion
- ViaBackwards
- EconomyShopGUI
- SimpleTpa
- SetHome
- Multiverse-Core
- OnePlayerSleep
- SkinsRestorer
- NametagEdit
- ServerNPC / ZNPCs
- GSit
- LoginSecurity
- TabConfig
- VoiceChat
- 1.8iControlUFree
MCFACore must include the useful functionality of all these plugins.
## EssentialsX replacement features
- Spawn and setspawn.
- Homes and multiple homes.
- Warps.
- TPA and teleportation.
- Back command.
- Kits.
- Private messages and replies.
- Ignore system.
- Nicknames.
- AFK system.
- Feed and heal.
- Fly and god mode.
- Repair.
- Ender chest.
- Workbench.
- Anvil.
- Trash.
- Player information.
- Join and leave messages.
- Moderation tools.
## LuckPerms replacement features
- Rank groups.
- Permission groups.
- Rank inheritance.
- User permissions.
- Temporary permissions.
- Prefixes and suffixes.
- Rank promotion and demotion.
- Permission administration.
- Rank GUI.
- Permission GUI.
- Rank-based command access.
Provide migration from existing LuckPerms data. Do not delete original data.
## Vault features
- Economy API.
- Player balances.
- Deposits and withdrawals.
- Payments.
- Economy integrations.
- Transaction handling.
- Placeholder support.
## EconomyShopGUI replacement features
- Shop GUI.
- Buy and sell.
- Item categories.
- Item prices.
- Quantity selection.
- Search.
- Pagination.
- Admin shop editor.
- Configurable prices.
## SimpleTpa and SetHome features
- TPA requests.
- Accept and deny.
- TPA cooldowns.
- Teleport countdown.
- Movement cancellation.
- Multiple homes.
- Home limits by rank.
- Home management GUI.
## ServerNPC / ZNPCs features
- Create NPCs.
- Delete NPCs.
- Edit NPCs.
- NPC skins.
- NPC names.
- Click actions.
- Command execution.
- GUI opening.
- Server selector NPCs.
- Persistent NPC locations.
## GSit features
- Sit.
- Lay down.
- Crawl.
- Supported player pose animations.
- Configurable permissions.
## OnePlayerSleep features
- One-player sleep.
- Configurable sleeping percentage.
- Night skipping.
- Sleep messages.
- World-specific configuration.
## LoginSecurity features
- Registration.
- Login.
- Password change.
- Password verification.
- Login timeout.
- Login protection.
- Session management.
- Secure password hashing.
- Bedrock-compatible authentication flow.
Never log or expose passwords.
## SkinsRestorer features
- Skin lookup.
- Skin changing.
- Skin reset.
- Skin persistence.
- Skin management GUI.
Use documented skin service integrations.
## NametagEdit features
- Rank prefixes.
- Rank suffixes.
- Name colors.
- Above-head nametags.
- Custom nametag formatting.
- LuckPerms integration.
## Multiverse-Core features
- Multiple-world management.
- World teleportation.
- World-specific spawn.
- World settings.
- World permissions.
- World-specific PvP.
- World protection.
## TabConfig features
- Custom TAB.
- Header and footer.
- Rank prefixes.
- Player sorting.
- Ping.
- Online player count.
- Rank colors.
- Scoreboard integration.
## Geyser and Floodgate
- Java player detection.
- Bedrock player detection.
- Bedrock-compatible GUIs.
- Cross-platform commands.
- Correct Bedrock name handling.
- Bedrock-compatible menus.
Geyser and Floodgate networking must remain available through their actual plugins or supported APIs.
## ViaVersion and ViaBackwards
- Support connections from supported Minecraft versions.
- Avoid version-specific API assumptions.
- Test GUIs and interactions across supported versions.
Keep the protocol translation engines as external dependencies.
## VoiceChat
- Integrate with Simple Voice Chat.
- Support proximity voice chat settings where documented APIs permit.
- Detect voice chat availability.
- Provide status information.
Do not pretend to replace voice networking.
## 1.8iControlUFree
- Detect the plugin.
- Avoid command conflicts.
- Use documented APIs only.
- Do not claim unsupported remote-control features.
# 3. PLAYER MANAGEMENT
Implement:
- First join detection.
- Join and leave messages.
- Welcome title and subtitle.
- Actionbar.
- Welcome sounds.
- Player profiles.
- Player statistics.
- Playtime.
- AFK detection.
- Player settings GUI.
- Player visibility.
- Java/Bedrock detection.
- Persistent player data.
- Player preferences.
Commands:
- `/profile [player]`
- `/stats [player]`
- `/settings`
- `/playtime [player]`
- `/seen `
- `/ping [player]`
- `/list`
- `/whois `
# 4. RANK SYSTEM
Create these ranks:
- DEFAULT
- VIP
- MVP
- ELITE
- LEGEND
- MEDIA
- HELPER
- MOD
- ADMIN
- OWNER
Features:
- Custom prefixes.
- Custom colors.
- Custom suffixes.
- Permissions.
- Rank inheritance.
- Rank GUI.
- Rank upgrades.
- Rank expiry.
- Rank-based homes.
- Rank-based kits.
- Rank-based commands.
- Rank display in chat, TAB and scoreboard.
- LuckPerms migration and integration.
Commands:
- `/rank`
- `/rank list`
- `/rank info `
- `/rank set `
- `/rank remove `
- `/rank upgrade`
- `/rank reload`
- `/permissions `
- `/permission add `
- `/permission remove `
# 5. COMPLETE CHAT SYSTEM
Implement:
- Rank prefixes.
- Rank suffixes.
- Player name colors.
- Message colors.
- Legacy color codes.
- Hex colors.
- Bold, italic, underline and strikethrough.
- Rank-based formatting.
- Private messages.
- Reply.
- Ignore.
- Staff chat.
- Global chat.
- Clear chat.
- Slow chat.
- Anti-spam.
- Advertisement filter.
- Configurable messages.
Commands:
- `/msg `
- `/tell `
- `/w `
- `/reply `
- `/r `
- `/ignore `
- `/unignore `
- `/ignorelist`
- `/staffchat `
- `/sc `
- `/clearchat`
- `/slowchat `
- `/mutechat`
- `/unmutechat`
- `/chatcolor `
- `/chatformat reload`
Ensure `/msg hi` and private messages work correctly.
# 6. COMPLETE MONEY AND ECONOMY SYSTEM
Create a complete server economy using normal in-game money called `$`.
Features:
- Player balances.
- Configurable starting balance.
- Player payments.
- Deposits and withdrawals.
- Admin money management.
- Money leaderboard.
- Transaction history.
- Daily money rewards.
- Weekly money rewards.
- Playtime money rewards.
- Jobs and salaries.
- Player trading.
- Configurable maximum balance.
- Anti-duplication.
- Vault compatibility.
- PlaceholderAPI support.
Commands:
- `/bal [player]`
- `/balance [player]`
- `/money`
- `/pay `
- `/baltop [page]`
- `/money history [player]`
- `/eco give `
- `/eco take `
- `/eco set `
- `/eco reset `
- `/eco reload`
Money must remain saved after death, logout, respawn and server restart.
# 7. AUCTION HOUSE – /AH
Create a complete professional Auction House.
Commands:
- `/ah`
- `/ah sell `
- `/ah listings`
- `/ah expired`
- `/ah cancel `
- `/ah search - `
- `/ah history`
- `/ah reload`
- `/ah admin remove
`
- `/ah admin clear `
Features:
- List items from inventory.
- Buy items using normal money.
- Categories for weapons, armor, tools, blocks, food, farming and miscellaneous.
- Search GUI.
- Sort by lowest price.
- Sort by highest price.
- Sort by newest.
- Pagination.
- Configurable listing duration.
- Listing fees.
- Maximum listings per player.
- Automatic seller payment.
- Expired item collection.
- Cancelled listing refunds.
- Purchase confirmation.
- Sales notifications.
- Purchase history.
- Prevent double purchases.
- Prevent item duplication.
- Check inventory space.
- SQLite persistence.
# 8. ITEM ORDER SYSTEM – /ORDER
Create a complete player-to-player item ordering system.
Commands:
- `/order`
- `/order create`
- `/order list`
- `/order my`
- `/order view `
- `/order fulfil `
- `/order complete `
- `/order cancel `
- `/order history`
- `/order reload`
- `/order admin remove `
Features:
- Players request specific items.
- Select item quantity.
- Set the amount they are willing to pay.
- Other players can fulfil orders.
- Reserve buyer money when creating an order.
- Verify item and quantity before completing.
- Pay seller only after successful delivery.
- Refund reserved money when cancelled or expired.
- Order notifications.
- Order history.
- Expiration timer.
- Confirmation GUI.
- Prevent fake deliveries.
- Prevent double payments.
- Prevent item duplication.
- SQLite persistence.
# 9. COMPLETE SHOP SYSTEM
Categories:
- Blocks.
- Ores.
- Farming.
- Food.
- Combat.
- Tools.
- Armor.
- Decoration.
- Miscellaneous.
Features:
- Buy.
- Sell.
- Configurable prices.
- Category GUI.
- Search.
- Pagination.
- Quantity selection.
- Purchase confirmation.
- Admin price editor.
- Shop permissions.
Commands:
- `/shop`
- `/shop blocks`
- `/shop ores`
- `/shop farming`
- `/shop food`
- `/shop combat`
- `/shop tools`
- `/shop armor`
- `/shop decoration`
- `/shop sell`
- `/shop search - `
- `/shop reload`
- `/shop editor`
All shop transactions use normal money.
# 10. MOBTOKEN SYSTEM – STRICT RULES
MobTokens are a separate special currency.
Exact rules:
- Every player receives exactly **1 MobToken on their first-ever join**.
- Award it only once per player UUID.
- Never give another MobToken automatically after reconnecting.
- No MobToken purchases.
- No MobToken transfers.
- No MobToken conversion to normal money.
- No MobTokens from jobs, daily rewards, weekly rewards, crates, playtime or shops.
- Death must NEVER remove MobTokens.
- MobTokens are exclusively for mob abilities.
- Save balances permanently in SQLite.
# 11. MOB ABILITIES SYSTEM
One MobToken unlocks the complete ability set of one selected mob.
Examples:
- One MobToken unlocks all Zombie abilities.
- One MobToken unlocks all Skeleton abilities.
- One MobToken unlocks all Creeper abilities.
Players can unlock another mob only if they have another MobToken.
Create unique abilities for:
- Zombie.
- Skeleton.
- Creeper.
- Spider.
- Cave Spider.
- Enderman.
- Blaze.
- Witch.
- Slime.
- Magma Cube.
- Drowned.
- Husk.
- Stray.
- Phantom.
- Guardian.
- Elder Guardian.
- Piglin.
- Hoglin.
- Wither Skeleton.
- Warden.
- Wither.
- Ender Dragon.
Example abilities:
- Zombie: strength, regeneration and zombie-themed powers.
- Skeleton: ranged abilities and special arrows.
- Creeper: controlled explosion-themed abilities.
- Spider: climbing and web-themed powers.
- Enderman: teleport-themed powers.
- Blaze: fire-themed powers.
- Warden: sonic-themed powers.
- Wither: wither-themed powers.
- Ender Dragon: dragon-themed powers.
Features:
- `/abilities` GUI.
- Mob selection GUI.
- Locked and unlocked indicators.
- Ability activation.
- Ability cooldowns.
- Ability duration.
- Configurable effects.
- Configurable permissions.
- World restrictions.
- PvP restrictions.
- Ability descriptions.
- Admin management.
- Persistent unlocks.
- Prevent ability stacking exploits.
Commands:
- `/mobtoken`
- `/mobtoken balance [player]`
- `/abilities`
- `/abilities mobs`
- `/abilities info
`
- `/abilities activate `
- `/abilities unlocked`
- `/abilities cooldown`
- `/abilities admin give `
- `/abilities admin take `
- `/abilities admin unlock `
- `/abilities admin lock `
- `/abilities admin reload`
The admin commands must not be available to ordinary players. No normal gameplay feature may award MobTokens.
# 12. CRATE SYSTEM
Create:
- Common.
- Rare.
- Epic.
- Legendary.
- Shadow.
Features:
- Custom keys.
- Animations.
- Preview GUI.
- Configurable rewards.
- Configurable reward chances.
- Broadcasts.
- Crate locations.
- Normal money key purchasing.
- Admin editor.
- Persistent data.
Commands:
- `/crates`
- `/crate`
- `/crate preview `
- `/crate keys`
- `/crate give `
- `/crate take `
- `/crate set `
- `/crate reload`
- `/crate editor`
Never use MobTokens for crates.
# 13. TELEPORTATION SYSTEM
Commands:
- `/spawn`
- `/setspawn`
- `/tpa `
- `/tpaccept`
- `/tpdeny`
- `/tpacancel`
- `/tpahere `
- `/home [name]`
- `/sethome `
- `/delhome `
- `/homes [player]`
- `/warp [name]`
- `/setwarp `
- `/delwarp `
- `/warps`
- `/rtp`
- `/back`
- `/top`
- `/tphere `
- `/tp `
- `/tp `
Features:
- Cooldowns.
- Rank-based home limits.
- Safe RTP.
- Configurable RTP radius.
- Teleport countdown.
- Movement cancellation.
- World restrictions.
- Permissions.
- EssentialsX migration.
# 14. KITS AND ESSENTIALS COMMANDS
Commands:
- `/kit`
- `/kit `
- `/kit create `
- `/kit delete `
- `/kit editor`
- `/feed [player]`
- `/heal [player]`
- `/fly [player]`
- `/god [player]`
- `/repair [hand|all]`
- `/enderchest [player]`
- `/ec [player]`
- `/workbench`
- `/craft`
- `/hat`
- `/anvil`
- `/trash`
- `/nick `
- `/realname `
- `/afk`
Include cooldowns, rank permissions and configurable kits.
# 15. LOBBY SYSTEM
Features:
- Spawn protection.
- Lobby GUI.
- Server selector.
- NPC integration.
- Player visibility.
- Scoreboard.
- TAB.
- Holograms.
- Gadgets.
- Menus.
- Join effects.
- Lobby world settings.
Commands:
- `/lobby`
- `/hub`
- `/menu`
- `/servers`
- `/hide`
- `/show`
- `/visibility`
- `/gadget`
- `/gadgets`
# 16. NPC SYSTEM
Commands:
- `/npc`
- `/npc create `
- `/npc remove `
- `/npc list`
- `/npc select `
- `/npc edit `
- `/npc skin `
- `/npc command `
- `/npc action `
- `/npc reload`
Features:
- Persistent NPCs.
- Custom skins.
- Custom names.
- Click actions.
- Commands.
- GUI opening.
- Server selectors.
- Configurable locations.
# 17. SIT, LAY AND CRAWL SYSTEM
Commands:
- `/sit`
- `/lay`
- `/crawl`
- `/bellyflop`
- `/spin`
Implement supported animations with permissions and movement handling.
# 18. SLEEP SYSTEM
Commands:
- `/sleep`
- `/sleep status`
- `/sleep reload`
Features:
- One-player sleep.
- Configurable sleeping percentage.
- Night skipping.
- Sleep messages.
- World-specific settings.
# 19. LOGIN AND SECURITY SYSTEM
Commands:
- `/register `
- `/login `
- `/changepassword `
- `/logout`
- `/unregister `
Features:
- Secure password hashing.
- Login timeout.
- Login protection.
- Session management.
- Password validation.
- Bedrock-compatible flow.
- No passwords in logs.
# 20. SKIN SYSTEM
Commands:
- `/skin `
- `/skin set `
- `/skin reset`
- `/skin update`
- `/skin clear`
Features:
- Skin lookup.
- Skin changes.
- Skin persistence.
- Reset.
- Skin GUI.
# 21. NAMETAG SYSTEM
Commands:
- `/nametag`
- `/nametag set `
- `/nametag suffix `
- `/nametag clear `
- `/nametag reload`
Features:
- Rank prefixes.
- Suffixes.
- Name colors.
- Above-head display.
- LuckPerms integration.
# 22. WORLD MANAGEMENT
Commands:
- `/world`
- `/world list`
- `/world tp `
- `/world create `
- `/world delete `
- `/world setspawn `
- `/world reload`
Features:
- World management.
- World teleportation.
- World-specific spawns.
- World-specific rules.
- World permissions.
- Safe world deletion with confirmation.
Preserve existing Multiverse worlds and data.
# 23. PVP SYSTEM
Features:
- Kill and death tracking.
- Kill messages.
- Kill rewards using normal money.
- Combat tag.
- Combat logout prevention.
- PvP toggle.
- Kill leaderboard.
- Death leaderboard.
- Combat timer.
- World-specific PvP settings.
Commands:
- `/pvp`
- `/pvp on`
- `/pvp off`
- `/kills [player]`
- `/deaths [player]`
- `/killtop`
- `/deathtop`
- `/combat`
- `/combat status`
# 24. CLAIMS AND PROTECTION
Features:
- Claim creation.
- Claim deletion.
- Trust players.
- Untrust players.
- Container protection.
- Block protection.
- Rank-based claim limits.
- WorldGuard integration.
- Claim GUI.
- Claim map.
Commands:
- `/claim`
- `/claims`
- `/claim info`
- `/claim abandon`
- `/claim trust `
- `/claim untrust `
- `/claim members`
- `/claim settings`
- `/claim map`
- `/trust `
- `/untrust `
# 25. STAFF AND MODERATION SYSTEM
Features:
- Report GUI.
- Staff GUI.
- Staff mode.
- Freeze.
- Warn.
- Kick.
- Mute.
- Ban.
- Temporary ban.
- Unban.
- Punishment history.
- Audit logs.
- Staff notifications.
- Duration support.
Commands:
- `/report `
- `/reports`
- `/report view `
- `/report accept `
- `/report close `
- `/staff`
- `/staffmode`
- `/staffchat `
- `/freeze `
- `/unfreeze `
- `/warn `
- `/kick `
- `/mute `
- `/unmute `
- `/ban `
- `/tempban `
- `/unban `
- `/history `
- `/punishments `
# 26. REWARD AND JOB SYSTEM
Features:
- Daily rewards.
- Weekly rewards.
- Playtime rewards.
- Jobs.
- Salaries.
- Reward GUI.
- Reward history.
- Rank-based rewards.
- Anti-exploit protection.
Commands:
- `/daily`
- `/weekly`
- `/rewards`
- `/jobs`
- `/jobs join `
- `/jobs leave`
- `/jobs info `
- `/rewards reload`
All rewards use normal money. Never award MobTokens.
# 27. DISCORD INTEGRATION
Official Discord:
`https://discord.gg/YC5JZWtc9`
Commands:
- `/discord`
- `/discord reload`
Add a clickable Discord button in:
- Main GUI.
- Lobby GUI.
- Profile GUI.
Button:
- Material: NETHER_STAR
- Slot: 49
- Name: `&e&lJOIN OUR DISCORD`
- Theme: Yellow, Gold and Black.
- Click action: Open the Discord invite.
- Hover: Show invitation message.
Use Adventure `ClickEvent.openUrl`.
Create `discord.yml`.
DiscordSRV integration must be optional. The clickable invite must work without a Discord bot.
# 28. VOICE CHAT INTEGRATION
Commands:
- `/voice`
- `/voice status`
- `/voice reload`
Integrate with Simple Voice Chat through its documented API. Keep its networking system available.
# 29. SCOREBOARD SYSTEM
Display:
- MCFA-HUB title.
- Player name.
- Rank.
- Money balance.
- MobToken balance.
- Ping.
- Kills.
- Deaths.
- XP.
- Online players.
- Playtime.
- Discord invitation.
Use PlaceholderAPI and LuckPerms integration.
# 30. TAB SYSTEM
Features:
- Custom header.
- Custom footer.
- Rank prefixes.
- Rank colors.
- Player sorting.
- Ping.
- Online count.
- PlaceholderAPI.
- LuckPerms integration.
Avoid conflicts with existing TAB plugins.
# 31. GUI DESIGN
Create professional GUIs for:
- Main menu.
- Player profile.
- Ranks.
- Shop.
- Auction House.
- Orders.
- Mob abilities.
- Crates.
- Teleports.
- Rewards.
- Staff.
- Settings.
- Economy.
- NPC management.
- Claims.
MCFA-HUB theme:
- Yellow: `#FFFF00`
- Gold: `#FFD700`
- Orange Gold: `#FFAA00`
- Black: `#101010`
- White: `#FFFFFF`
- Gray: `#AAAAAA`
Use Minecraft inventory materials, useful descriptions, navigation buttons, confirmation menus and clear feedback.
# 32. COMPLETE MAIN COMMANDS
Commands:
- `/mcfa`
- `/mcfa help`
- `/mcfa reload`
- `/mcfa info`
- `/mcfa admin`
- `/mcfa debug`
- `/mcfa version`
- `/mcfa migrate`
- `/mcfa backup`
Create `/mcfa help` showing commands based on the player's permissions.
# 33. PERMISSION SYSTEM
Create `permissions.yml`.
Permission groups:
- `mcfa.player`
- `mcfa.vip`
- `mcfa.mvp`
- `mcfa.elite`
- `mcfa.legend`
- `mcfa.media`
- `mcfa.helper`
- `mcfa.mod`
- `mcfa.admin`
- `mcfa.owner`
- `mcfa.*`
Requirements:
- Default players receive basic commands.
- Ranks receive configurable additional permissions.
- Staff commands require explicit staff permissions.
- Owner has full access.
- Integrate with LuckPerms.
- Never grant dangerous administrative commands to normal players.
Every command must have a specific permission node.
# 34. CONFIGURATION FILES
Create:
- `config.yml`
- `messages.yml`
- `ranks.yml`
- `chat.yml`
- `economy.yml`
- `shop.yml`
- `auctionhouse.yml`
- `orders.yml`
- `mobtokens.yml`
- `abilities.yml`
- `crates.yml`
- `rewards.yml`
- `scoreboard.yml`
- `tab.yml`
- `warps.yml`
- `permissions.yml`
- `discord.yml`
- `pvp.yml`
- `protection.yml`
- `staff.yml`
- `gui.yml`
- `welcome.yml`
- `kits.yml`
- `homes.yml`
- `npc.yml`
- `sleep.yml`
- `login.yml`
- `skins.yml`
- `nametags.yml`
- `worlds.yml`
- `jobs.yml`
- `voice.yml`
Every important price, cooldown, duration, reward, message, permission and setting must be configurable.
# 35. DATABASE AND SECURITY
Use SQLite for:
- Player UUIDs.
- Player profiles.
- Money balances.
- MobToken balances.
- Unlocked mob abilities.
- Ranks where applicable.
- Permissions where applicable.
- Auction listings.
- Item orders.
- Transactions.
- Player statistics.
- Reward history.
- Punishment history.
- Homes.
- Warps.
- Player settings.
- Login records.
- NPC data.
Security:
- Asynchronous database operations.
- No blocking database calls on the main thread.
- UUID-based storage.
- Safe transaction handling.
- No negative balances.
- No item duplication.
- No money duplication.
- No MobToken duplication.
- Input validation.
- Purchase confirmation.
- Inventory-space validation.
- Safe shutdown.
- Automatic database backup.
- Administrative audit logs.
# 36. EXISTING DATA MIGRATION
Create a migration system for existing plugins.
Import supported data from:
- EssentialsX.
- LuckPerms.
- Vault economy provider.
- SetHome.
- SimpleTpa settings where applicable.
- Existing player profiles.
- Existing homes.
- Existing warps.
- Existing kits.
- Existing ranks and permissions.
- Existing economy balances.
Requirements:
- Preserve UUIDs.
- Create backups first.
- Avoid duplicate records.
- Report successful and failed imports.
- Never delete original files automatically.
- Allow migration to be tested before committing.
# 37. PLUGIN REPLACEMENT REQUIREMENTS
The final goal is one main plugin: MCFACore.
After successful migration and testing, MCFACore should replace compatible gameplay plugins.
However, networking and protocol engines may remain external:
- Geyser-Spigot.
- Floodgate.
- ViaVersion.
- ViaBackwards.
- Simple Voice Chat networking.
Use actual documented APIs for integrations.
Do not claim to replace a networking engine with ordinary Bukkit commands.
Create a compatibility report showing:
1. Features replaced by MCFACore.
2. Plugins safe to remove after migration.
3. Plugins that must remain.
4. Plugins that are optional.
5. Features requiring external APIs.
# 38. PROJECT STRUCTURE
Use modular packages:
- `commands`
- `listeners`
- `managers`
- `database`
- `economy`
- `ranks`
- `permissions`
- `chat`
- `gui`
- `auctionhouse`
- `orders`
- `shop`
- `mobtokens`
- `abilities`
- `crates`
- `rewards`
- `discord`
- `pvp`
- `protection`
- `staff`
- `integrations`
- `scoreboard`
- `tab`
- `teleport`
- `player`
- `kits`
- `npc`
- `sleep`
- `login`
- `skins`
- `nametags`
- `worlds`
- `jobs`
- `voice`
Keep all code modular, organized and maintainable.
# 39. BUILD AND TESTING
Test on Paper 1.21.11 and Java 21.
Testing checklist:
1. Plugin loads correctly.
2. No startup errors.
3. All commands work.
4. All permissions work.
5. All GUIs work.
6. SQLite saves data.
7. Money transactions work.
8. Auction House purchases work.
9. Item orders and refunds work.
10. MobToken first-join reward works exactly once.
11. Death never removes MobTokens.
12. Mob ability unlocks work.
13. Mob abilities persist after restart.
14. Rank migration works.
15. Home and warp migration works.
16. Java and Bedrock interfaces work where supported.
17. Optional integrations fail gracefully.
18. Existing server worlds remain intact.
19. No command conflicts.
20. No item or money duplication.
Do not claim a test passed unless it was actually performed.
# 40. DEVELOPMENT PLAN FOR KODARI AI
Because this is a very large plugin, use these development phases while maintaining ONE final plugin and ONE final JAR.
Phase 1:
- Maven project.
- Main plugin class.
- Database.
- Configuration system.
- Permissions.
- Command framework.
Phase 2:
- Player management.
- Ranks.
- Chat.
- Essentials-style features.
- Homes.
- Warps.
- Kits.
- Teleportation.
Phase 3:
- Money.
- Vault.
- Shop.
- Auction House.
- Item Order System.
- Jobs.
- Rewards.
Phase 4:
- MobTokens.
- Mob abilities.
- Crates.
- GUI framework.
Phase 5:
- Lobby.
- NPCs.
- Scoreboard.
- TAB.
- Discord.
- Voice integration.
Phase 6:
- PvP.
- Claims.
- Protection.
- Staff.
- Moderation.
- Login.
- Skins.
- Nametags.
- World management.
Phase 7:
- Existing plugin data migration.
- Compatibility testing.
- Security testing.
- Final integration.
- Final JAR compilation.
After each phase:
- Compile the project.
- Fix errors.
- Run tests.
- Preserve all previous features.
- Update documentation.
Do not replace completed code with simplified placeholder implementations.
# 41. FINAL DELIVERABLES
I want:
1. `MCFACore.jar`
2. Complete editable Maven source project.
3. Every Java source file.
4. All YAML configuration files.
5. `plugin.yml`.
6. SQLite database setup.
7. Installation guide.
8. Full command list.
9. Full permissions list.
10. Data migration guide.
11. Compatibility report.
12. Testing report.
13. Troubleshooting guide.
# 42. FINAL NON-NEGOTIABLE RULES
- ONE final plugin named MCFACore.
- ONE final JAR.
- All previously requested features must be included.
- Existing plugin features must not be forgotten.
- Every command must be implemented or explicitly documented as an external integration.
- No fake commands.
- No empty GUIs.
- No fake database functionality.
- No lost player data.
- No MobToken purchases.
- Exactly one first-join MobToken.
- One MobToken unlocks all abilities of one selected mob.
- Death never removes MobTokens or unlocked abilities.
- Normal money and MobTokens remain separate.
- Auction House and `/order` use normal money.
- Use actual plugin APIs, not invented methods.
- Build and test everything before claiming completion.
**FINAL GOAL: Build the ultimate MCFA-HUB All-in-One Minecraft server plugin, replacing compatible existing gameplay plugins and adding every new feature in one professional, stable, fully working MCFACore.jar.**
Build the Maven foundation, asynchronous SQLite lifecycle, configuration and command framework.
Add player, rank, chat and teleportation features.
Add economy, shops, auctions, orders and rewards.
Add MobTokens, abilities, crates and GUIs.
Add lobby and external integrations.
Add protection, moderation and remaining gameplay systems.
Implement migration, compatibility checks and testing.
I’ll start with Phase 1; the later phases require separate implementation and testing before this can replace existing plugins.
Phase 1 foundation is in place: Maven configuration, asynchronous SQLite initialization, basic permissions, and /mcfa help, info, version, and reload commands.
The remaining features and migration are not yet implemented. Do not remove existing plugins. The project has not been compiled or server-tested in this session.
package com.mcfa.core;
import com.mcfa.core.commands.CoreCommand;
import com.mcfa.core.database.Database;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.Objects;
public final class MCFACore extends JavaPlugin {
private Database database;
@Override
public void onEnable() {
saveDefaultConfig();
database = new Database(getDataFolder().toPath().resolve("mcfa.db"), getLogger());
CoreCommand command = new CoreCommand(this);
Objects.requireNonNull(getCommand("mcfa")).setExecutor(command);
Objects.requireNonNull(getCommand("mcfa")).setTabCompleter(command);
database.start().whenComplete((ignored, error) -> {
if (error != null) {
getLogger().severe("Database initialization failed: " + error.getMessage());
getServer().getScheduler().runTask(this, () -> getServer().getPluginManager().disablePlugin(this));
}
});
}
@Override
public void onDisable() {
if (database != null) {
database.close();
}
}
}