Project: ForbiddenClans
Minecraft MMORPG Faction & Clan Management Plugin
You are an experienced Minecraft Java plugin developer. Build a complete, modular, production-conscious Minecraft plugin named ForbiddenClans for the Forbidden SMP MMORPG server.
The plugin must be developed using Java 21 and the Paper API for Minecraft 1.21.x.
The objective is to create a clan-based faction system where players can establish clans, invite and manage members, earn clan points through PvP and quests, upgrade their clans, and participate in a future faction progression system.
The entire player-facing and administrator-facing management system must be accessible through Minecraft inventory GUIs and commands.
---
1. TECHNICAL REQUIREMENTS
- Plugin name: ForbiddenClans
- Main package:
com.forbidden.clans - Java version: 21
- Server software: Paper
- Target: Minecraft 1.21.x
- Build system: Gradle
- Storage for initial release: YAML files
- No external database required.
- No mandatory external plugin dependencies.
- Geyser and Floodgate compatibility must be considered.
- Use UUIDs as player identifiers, never usernames as permanent identifiers.
- Use Adventure components or Paper-supported messaging APIs.
- Use persistent, safe data saving.
- Follow an object-oriented, modular architecture.
The plugin must be standalone and must not require ForbiddenCore to function.
2. CLAN SYSTEM
Players can create and manage clans.
Each clan must contain:
- Unique internal clan ID
- Clan name
- Clan tag
- Clan description
- Owner UUID
- Creation timestamp
- Member list
- Clan points
- Clan level
- Clan progression experience, if needed
- Clan home location
- Clan warps
- Clan status (ACTIVE or BANNED)
- Clan settings
- Clan point transaction history
Clan names and tags must be unique, case-insensitive, and validated.
Prevent invalid names, duplicate names, duplicate tags, excessively long names, and inappropriate formatting.
All clan data must remain available after server restarts.
3. CLAN RANKS
For the initial release, implement exactly three clan ranks:
OWNER
- Full clan management permissions.
- Edit clan name, tag, and description.
- Invite members.
- Remove members.
- Promote members to ADMIN.
- Demote ADMIN members to MEMBER.
- Transfer ownership.
- Set and remove clan home.
- Create, edit, and delete clan warps.
- View clan information and point history.
- Upgrade clan progression.
- Manage clan settings.
There must only be one OWNER per clan.
ADMIN
- Invite new members.
- Remove MEMBER-ranked players.
- Promote MEMBER to ADMIN if the owner has enabled that permission.
- Set clan home and manage warps if permitted.
- View clan information.
- View clan points and progression.
ADMIN members must never be able to:
- Remove the OWNER.
- Transfer ownership.
- Demote the OWNER.
- Delete the clan.
- Change ownership-related settings.
An ADMIN must not be able to promote another member to a rank equal to or higher than their own authority.
MEMBER
- View clan information.
- View clan members.
- View clan points and level.
- Teleport to clan home if permitted.
- Use clan warps if permitted.
- Receive clan invitations.
All rank permissions should be configurable.
4. PLAYER COMMANDS
Implement the following command structure:
/clan /clan gui /clan create <name> <tag> /clan invite <player> /clan accept <clan> /clan deny <clan> /clan leave /clan info [clan] /clan members /clan home /clan sethome /clan delhome /clan warp /clan warp <name> /clan setwarp <name> /clan delwarp <name> /clan promote <player> /clan demote <player> /clan kick <player> /clan transfer <player> /clan rename <name> /clan description <text> /clan rankup
The primary command /clan must open the GUI.
Commands must enforce exactly the same permission checks as GUI interactions. Players must not be able to bypass permissions by using commands.
Provide tab completion wherever practical.
5. PLAYER GUI SYSTEM
Implement a complete inventory-based GUI system.
Main Clan GUI
Command: /clan or /clan gui
Display:
- Clan name and tag
- Clan owner
- Member count
- Clan level
- Clan points
- Progression progress
- Clan management buttons
Buttons:
- Clan Members
- Invite Player
- Clan Information
- Clan Settings
- Clan Points
- Clan Progression
- Clan Home
- Clan Warps
- Rank Up
- Leave Clan
If the player does not belong to a clan, display:
- Create Clan
- Pending Invitations
- Clan Leaderboard
Member GUI
Display all clan members with:
- Player name
- Clan rank
- Online/offline status
Clicking a member opens a management menu.
Only display actions the current player is authorized to perform.
Clan Settings GUI
Allow authorized players to:
- Edit description.
- Change clan tag or name.
- Configure invitation settings.
- Configure member permissions.
- Manage clan home and warps.
All destructive or sensitive actions must require confirmation.
Clan Points GUI
Display:
- Current points.
- Total points earned.
- Total points spent.
- Recent transactions.
- Point sources.
Clan Progression GUI
Display:
- Current clan level.
- Current progression requirements.
- Current clan points.
- Available upgrades.
- Next-level rewards.
- Rank-up button.
Use configurable progression requirements and rewards.
All GUIs must use safe inventory event handling.
Prevent item movement, item extraction, shift-click exploits, drag exploits, and unauthorized inventory actions.
Identify plugin inventories safely. Do not trust display names alone to identify menus.
6. CLAN POINT SYSTEM
Clan points are the central progression currency.
Each clan must have a persistent points balance.
All point modifications must go through one centralized ClanPointsManager.
Never directly modify the clan balance from random command handlers or event listeners.
Implement these point sources:
PvP kills
When a player legitimately kills another player:
- Award configurable clan points to the killer's clan.
- Deduct configurable clan points from the victim's clan when the victim dies in PvP.
Initial example configuration:
- Killer clan reward: 10 points.
- Victim clan deduction: 5 points.
These values must be configurable.
Rules:
- Killing a member of your own clan must not generate points.
- Killing a player without a clan must not award clan points.
- Death deductions only apply when the victim belongs to a clan.
- Prevent repeated kill farming.
- Add configurable anti-farming cooldowns.
- Prevent obvious self-kill and repeated-kill exploits.
- Handle disconnects and invalid death events safely.
- Only count legitimate player-versus-player kills.
- Avoid rewarding environmental deaths or non-player kills.
- Record every reward and deduction.
The plugin must avoid creating incentives for harassment or repeated targeting of individual players. Provide configurable cooldowns and point caps.
Quest rewards
Prepare a public integration API so a future plugin named ForbiddenQuest can award clan points.
Example API:
clanPointsManager.addPoints(UUID clanId, int amount, String reason);
Provide appropriate validation, result handling, and documentation.
The future ForbiddenQuest plugin should not need direct access to YAML files.
Administrative adjustments
Authorized administrators can add or deduct clan points.
Every transaction must include:
- Clan ID
- Amount
- Transaction type
- Reason
- Actor UUID, where applicable
- Timestamp
- Resulting balance
Prevent negative balances unless explicitly configured.
7. CLAN PROGRESSION
Implement configurable clan levels.
For the initial release, clan rank progression should be separate from member ranks.
Member ranks are:
- OWNER
- ADMIN
- MEMBER
Clan progression levels are a separate concept.
Example:
Level 1: Starter Clan Level 2: Established Clan Level 3: Veteran Clan Level 4: Elite Clan Level 5: Legendary Clan
Each level should have configurable:
- Required clan points
- Required progression experience, if enabled
- Maximum members
- Maximum warps
- Unlockable features
- Rewards
The /clan rankup command and GUI button should:
- Check whether the clan can upgrade.
- Verify sufficient points.
- Display the upgrade cost.
- Require confirmation.
- Deduct the required points.
- Increase the clan level.
- Save the changes.
- Announce the upgrade to clan members.
Prevent duplicate purchases, race conditions, and double spending.
8. CLAN HOMES AND WARPS
Each clan can have:
- One clan home initially.
- A configurable number of clan warps based on clan level.
Store:
- World UUID or reliable world identifier
- X, Y, Z
- Yaw
- Pitch
Do not teleport players to unloaded or unavailable worlds.
Check permissions before teleportation.
Add configurable teleportation delays and cancellation if the player moves, takes damage, or disconnects.
9. ADMIN SYSTEM
Administrators need a separate interface.
Commands:
/admin clan /admin clan gui /admin clan list /admin clan inspect <clan> /admin clan points add <clan> <amount> <reason> /admin clan points remove <clan> <amount> <reason> /admin clan level set <clan> <level> /admin clan ban <clan> <reason> /admin clan unban <clan> /admin clan delete <clan> /admin clan reload
Admin GUI
The admin GUI must include:
- List all clans.
- Search clans.
- Inspect clan details.
- View clan members.
- Add clan points.
- Remove clan points.
- Set clan level.
- Ban a clan.
- Unban a clan.
- Delete a clan.
- View clan transaction history.
- View administrative audit logs.
Every destructive action must require a confirmation screen.
Administrative actions must require dedicated permissions.
Suggested permissions:
forbidden.clans.admin forbidden.clans.admin.points forbidden.clans.admin.level forbidden.clans.admin.ban forbidden.clans.admin.delete forbidden.clans.admin.reload
10. DATA STORAGE AND PERSISTENCE
Use YAML storage for the initial version.
Recommended folder:
plugins/ForbiddenClans/ config.yml clans.yml players.yml invitations.yml transactions.yml audit-logs.yml backups/
clans.yml
Store:
- Clan IDs
- Names and tags
- Descriptions
- Owner UUIDs
- Member UUIDs and ranks
- Clan points
- Clan levels
- Clan progression
- Clan homes
- Clan warps
- Creation timestamps
- Clan status
- Settings
players.yml
Store:
- Player UUID
- Last known name
- Clan ID
- Invitation-related references, if useful
invitations.yml
Store:
- Inviting clan ID
- Invited player UUID
- Inviter UUID
- Expiration timestamp
transactions.yml
Store:
- Clan point transactions
- Transaction reason
- Transaction type
- Amount
- Actor
- Timestamp
- Resulting balance
audit-logs.yml
Store administrative and important clan actions.
Use UUIDs as permanent identifiers.
DATA SAFETY REQUIREMENTS
- Save data after important state changes.
- Never rely exclusively on saving when the server shuts down.
- Do not perform slow disk operations on the Paper main server thread.
- Use a safe asynchronous persistence strategy.
- Never access Bukkit APIs from asynchronous storage tasks.
- Avoid concurrent writes to the same YAML file.
- Use a single controlled storage executor or equivalent serialization mechanism.
- Use temporary files and atomic replacement where supported.
- Keep periodic backups.
- Add configurable backup retention.
- Validate loaded data.
- Handle missing files.
- Handle malformed YAML gracefully.
- Log storage failures.
- Never silently overwrite corrupted data with empty data.
- Provide a recovery or backup restoration procedure.
- Ensure shutdown waits for pending saves within a controlled timeout.
- Keep an in-memory cache for frequently accessed clan data.
Design a storage interface such as:
ClanStorage
Provide a YAML implementation:
YamlClanStorage
This must allow a future PostgreSQL implementation without rewriting the clan management system.
Do not save player inventories, vanilla experience, health, or other Minecraft-native data.
11. CONFIGURATION
Provide a comprehensive config.yml.
Include:
- Clan creation settings.
- Name and tag limits.
- Maximum clan members.
- Invitation expiration.
- Rank permissions.
- PvP point rewards.
- PvP death deductions.
- Anti-farming cooldowns.
- Clan progression costs.
- Clan level rewards.
- Warp limits.
- Teleportation settings.
- GUI titles and customization.
- Messages.
- Backup settings.
- Storage settings.
- Debug logging.
All important game balance values must be configurable without recompiling.
12. SECURITY AND RELIABILITY
- Validate all user input.
- Validate all clan IDs and UUIDs.
- Prevent unauthorized command execution.
- Prevent GUI permission bypasses.
- Prevent item duplication and inventory exploits.
- Prevent concurrent point-spending exploits.
- Prevent duplicate clan creation.
- Prevent duplicate invitations.
- Prevent invalid ownership transfers.
- Prevent members from manipulating other clans.
- Use consistent locking or serialized operations for clan mutations.
- Never trust client-provided GUI data.
- Handle player disconnects and server shutdown safely.
13. FUTURE COMPATIBILITY
Prepare clean integration points for:
- ForbiddenCore
- ForbiddenQuest
- Future economy module
- Future territory system
- Future clan wars
- Future kingdoms and faction development
Do not implement these external systems yet.
Expose documented APIs and events where useful.
14. PROJECT STRUCTURE
Use a clean modular structure:
com.forbidden.clans ForbiddenClans.java
commands/ gui/ models/ managers/ storage/ listeners/ integrations/ permissions/ utils/ api/ events/
Avoid putting the entire plugin in one Java class.
Keep responsibilities separated.
15. TESTING
Provide tests for:
- Clan creation.
- Duplicate name prevention.
- Duplicate tag prevention.
- Member joining and leaving.
- Ownership transfer.
- Rank promotion and demotion.
- Clan point rewards.
- Clan point deductions.
- Anti-farming rules.
- Clan progression.
- Warp limits.
- Data loading.
- Data saving.
- Backup recovery.
- Permission enforcement.
- Invalid or corrupted YAML.
Test with both Java and Bedrock player identities where possible.
16. DELIVERABLES
Produce a complete Gradle project that includes:
- All Java source files.
- build.gradle.kts.
- plugin.yml.
- config.yml.
- Example YAML data files where appropriate.
- GUI implementations.
- Commands and tab completion.
- Storage implementation.
- Public integration API.
- Unit tests.
- README with build and installation instructions.
- Documentation for administrators.
- Documentation for future ForbiddenQuest integration.
The final result must compile successfully against the selected Paper API version.
Do not provide pseudocode in place of required implementations.
Do not leave critical methods empty or marked TODO.
If a feature cannot be completed, clearly identify it rather than pretending it works.
Build the project incrementally, compile and test each stage, and fix errors before declaring it complete.
Final design principle: ForbiddenClans must be reliable, secure, configurable, easy to maintain, and ready to expand into the larger Forbidden SMP MMORPG faction system.
I’ve created the ForbiddenClans project and started implementation. Once the developer finishes, I’ll compile it and address any reported errors.
…Created the standalone Java 21 ForbiddenClans plugin for Paper 1.21.x, including commands, player/admin GUIs, clan progression and points, PvP rules, permissions, YAML persistence with backups, and the public ForbiddenClans API. Added the requested README, administrator guide, and API documentation.
Documented scope limits: PvP rewards cover direct player melee only, one invitation can be pending per player, and daily PvP counters reset on restart; storage is single-server YAML, not cross-server synchronized.
The initial build compiled successfully. I’ve started fixes for two issues: admin promotion authority and safe handling of corrupt clan data.
…1. Promotion authorization: ClanService.promote now requires the clan owner, so ADMIN members cannot promote anyone, including a MEMBER. The GUI hides unauthorized member actions and rejects clicks on hidden action slots. Updated the README and admin guide.
Fail-safe loading: Malformed YAML, unsupported schema versions, invalid records, and duplicate clan identities or memberships now stop plugin startup instead of loading partial state. The plugin does not register commands, the API, or scheduled saves after a failed load. It preserves the invalid file under a unique
clans.corrupt-<timestamp>-<uuid>.ymlname when possible and leaves existing backups untouched.
Added recovery steps to the README and admin guide, including how to preserve the data directory and restore or repair clans.yml before restarting.
ForbiddenClans compiled successfully after the permission and data-recovery fixes.
Known limitations: PvP rewards currently count direct melee kills only, each player can have only one pending invitation, and daily PvP counters reset on restart. The plugin uses single-server YAML storage. Runtime behavior has not been tested.
how can i download it
Open ForbiddenClans in your workspace and use the project’s Download option to get the compiled plugin JAR.
Place the JAR in your Paper server’s plugins folder, then restart the server.
No files in this session