No chat to show

This project's files are all here to explore.

Files
pasted-code-1793113679934.txt
Code
1 155
pasted-code-1793113679934.txt
# Minecraft SMP Manager — Complete Development Prompt

Develop a complete, production-quality **Minecraft Java Edition SMP Manager Mod for Minecraft 26.3**. First inspect the project and use the correct mod loader, mappings, APIs, and build tools compatible with the target version. Do not create a mockup or an incomplete demo. Implement a working mod with persistent data, functional GUIs, and reliable multiplayer synchronization.

## 1. Core Architecture
- Server-side management system for multiplayer SMP servers.
- All sensitive operations, permissions, ranks, and player data must be validated on the server.
- Clients should not be able to exploit packets or modify privileged data.
- Support dedicated servers and multiplayer clients.
- Persist configuration, ranks, and management data across restarts.
- No website, external dashboard, cloud dashboard, or web panel. Everything must work inside Minecraft.

## 2. OP-Only Manager Item
Create a unique, custom-named **SMP Manager Book** or management item that can be granted only to server OPs through a server command.

- Example command: `/smpmanager give <player>`
- Only authorized OPs can receive or use the manager item.
- Opening the item displays a polished, fully functional in-game management dashboard.
- Non-OP players must not be able to obtain or use administrative functionality by crafting, copying, trading, dropping, or exploiting the item.
- Validate authorization on the server every time a privileged action is performed.
- If an unauthorized player obtains a copy, the item must not grant any permissions.
- Include a configurable item name, description, and visual identity.

## 3. In-Game Dashboard GUI
Create a premium, clean, modern Minecraft-style GUI with consistent spacing, readable text, intuitive navigation, and appropriate colors. Avoid excessive RGB, unnecessary animations, clutter, and oversized menus.

Dashboard sections:

**Overview**
- Online players, maximum player count, server uptime, and current TPS/MSPT where supported.
- Quick actions and recent management activity.
- Player search and refresh controls.

**Player Management**
- Show all online players, usernames, UUIDs, assigned ranks, and online status.
- Select a player to open their detailed profile.
- View health, hunger, game mode, dimension, location, ping where available, and playtime where tracked.
- Inspect the selected player's inventory and armor slots in a read-only GUI by default.
- Display the offhand, hotbar, main inventory, armor, and carried items accurately.
- Provide separate, permission-protected actions for inventory editing or item transfer only if explicitly enabled by the server owner.
- Never duplicate items or corrupt inventories during inspection, disconnects, or concurrent updates.
- Provide authorized actions for teleportation, healing, feeding, kicking, banning, unbanning, and changing game mode, subject to the assigned rank's permissions.
- Add confirmation screens for destructive or sensitive actions.

**Rank Management**
- Create, edit, assign, and remove ranks according to the actor's permissions.
- Display player rank information in the profile and player list.
- Support rank-specific permissions and configurable rank priorities.
- Prevent privilege escalation, self-promotion, and unauthorized changes to higher-ranked users.

**Moderation**
- Kick and ban players with a reason.
- Unban players and view ban records.
- Include configurable mute functionality if implemented through a compatible chat-event system.
- Record the moderator, target, reason, and timestamp for every moderation action.
- Use persistent server-side records.

**Server Settings**
- Configurable maximum player count, time, weather, and other settings supported by the server environment.
- Show server information and configuration.
- Do not expose dangerous commands or sensitive server files to unauthorized users.

**Audit Logs**
- Record rank changes, player moderation, inventory modifications, teleports, and other privileged actions.
- Provide searchable, paginated in-game logs.
- Store logs persistently and restrict access according to permissions.

## 4. Rank System
Implement these default ranks:

1. **Owner** — complete manager permissions and rank administration.
2. **Admin** — broad server and player management permissions, excluding protected owner-only operations.
3. **Moderator** — moderation tools and limited player management.
4. **VIP** — configurable cosmetic or gameplay privileges.
5. **Friend** — basic trusted-player privileges.

Requirements:
- Each rank has a configurable display name, color, priority, and permission set.
- Show the player's rank after their username in chat and supported player-list interfaces, for example: `Player [Admin]`.
- Use clean, distinct rank colors with subtle gradients where technically supported. Do not depend on unsupported RGB formatting.
- Ensure rank tags are generated by the server and cannot be equipped, edited, forged, or granted by ordinary players.
- Use the correct chat formatting and player-list APIs available in Minecraft 26.3.
- Preserve normal chat messages and avoid breaking compatibility with the server's existing chat system.
- Persist rank assignments by UUID rather than username.
- Support a configurable default rank for new players.
- Only Owner can assign or modify the Owner rank by default.
- Admins cannot demote or modify the Owner or grant themselves higher privileges.
- Moderators cannot administer Admins or Owners.
- VIP and Friend must never gain administrative permissions through formatting or client-side changes.

## 5. Permission Security
Implement a centralized server-side permission manager.

- Check permissions for every GUI action, command, packet, rank change, and inventory operation.
- Use a clear permission hierarchy with explicit restrictions.
- Prevent self-promotion, privilege escalation, unauthorized rank editing, and access to protected players.
- Do not trust GUI visibility as a security mechanism.
- Handle forged packets, invalid targets, disconnected players, duplicate requests, and malformed inputs safely.
- Keep Owner-only actions separate from ordinary Admin permissions.
- Ensure all privileged actions are enforced even if a player bypasses the GUI.

## 6. Commands
Implement documented commands, with appropriate permission checks, including:

- `/smpmanager give <player>`
- `/smpmanager open`
- `/smpmanager rank <player>`
- `/smpmanager reload`
- `/smpmanager help`

The `open` command must enforce the same authorization rules as the manager item. Add further commands only when they have real, implemented functionality.

## 7. GUI and Usability
- Create a cohesive, professional interface using the supported Minecraft GUI and rendering APIs.
- Use clear section titles, player icons, status indicators, confirmation dialogs, and back buttons.
- Provide pagination for large player lists and audit logs.
- Keep inventory inspection readable and accurate.
- Add useful empty states, error feedback, and success messages.
- Support different screen sizes as far as the Minecraft interface permits.
- Ensure all buttons work and all displayed data is current.
- Keep the interface lightweight and avoid unnecessary resource usage.

## 8. Compatibility and Reliability
- Verify exact Minecraft 26.3 compatibility before implementation.
- Use only compatible dependencies and supported APIs.
- Avoid deprecated or invented methods.
- Do not assume that older-version code works on 26.3.
- Handle server restarts, player disconnects, permission changes, and missing data gracefully.
- Do not overwrite or delete existing project files unnecessarily.
- Do not claim compatibility with other mods unless tested.

## 9. Testing
Test the following cases:
- Authorized OP can receive and open the manager item.
- Non-OP players cannot access administrative functions, even with a copied item.
- Player inventory inspection accurately displays every inventory section.
- Rank assignments persist after server restarts.
- Rank tags appear correctly in supported chat and player-list interfaces.
- Each rank can only perform permitted actions.
- Admins and Moderators cannot bypass the rank hierarchy.
- Ban, unban, kick, and other implemented actions work correctly.
- Forged packets and unauthorized commands are rejected.
- Multiple players can use the server without inventory corruption or data loss.
- GUI navigation, pagination, confirmations, and error handling work correctly.

## 10. Build and Final Deliverables
- Deliver the complete, compilable mod source code and project configuration.
- Include all required resources, GUI implementations, networking, commands, permission handling, rank persistence, and moderation systems.
- Provide a README with installation instructions, server setup, commands, permissions, and known limitations.
- Add automated tests where practical.
- Build the actual mod JAR and resolve compilation errors rather than leaving placeholder implementations.
- Clearly report the output JAR path and exact tested Minecraft version and mod-loader version.
- Never claim a feature is implemented or tested unless it actually is.

**Final objective:** A secure, polished, server-side Minecraft SMP Manager with an OP-only in-game management dashboard, player inventory inspection, powerful moderation tools, persistent customizable ranks, and server-enforced permissions. No external dashboard. No fake features. No security bypasses.