Create a complete Minecraft plugin for KmartzSMP using Paper 26.3.
Use Java and Gradle. I'm a beginner, so make the plugin easy to build, install, and configure.
- "/media" command
Create a "/media" command that opens a polished Minecraft inventory GUI.
Requirements:
- The GUI should explain how players can qualify for the server's Media rank.
- Include items with readable names, colored descriptions, and instructions in their lore.
- Explain the requirements:
- YouTube: Make long term Videos. - TikTok, YouTube Shorts, or Instagram Reels: at least 5-10+ of them posted and many views. - The server IP must be visible throughout the video. - Players must provide proof of their video and analytics. - Media rank lasts 90 days.
- Make the GUI attractive and easy to understand, with an appropriate close button.
- Prevent players from taking, moving, or placing items in the GUI.
- Make the menu work reliably and prevent players from exploiting it.
- Use configurable messages and menu items where practical.
- "/discord" command
Create a "/discord" command that sends a nice, formatted message only visible to the player who executes it.
Requirements:
- Use a private command response, such as "CommandSender.sendMessage()" for a normal player command, so other players cannot see it.
- Include a welcoming message inviting players to join the KmartzSMP Discord.
- Include the Discord invite link, configured in "config.yml".
- Format the message with Minecraft colors and a clean layout.
- Make the Discord invite clickable if supported, with hover text explaining that the player can click to join.
- Do not broadcast the message to the entire server.
- Technical requirements
- Target Paper 26.3, not older Minecraft versions.
- Use a compatible Java version and Paper API dependency for the actual 26.3 release.
- Register both commands correctly in "plugin.yml" or the appropriate Paper-supported configuration.
- Include a configurable "config.yml" containing the Discord invite, GUI title, messages, and media requirements.
- Use proper permission checks where needed.
- Do not require Vault, EssentialsX, DiscordSRV, or any other external plugin.
- Use modern Paper APIs and avoid deprecated APIs wherever possible.
- Ensure all imports, dependencies, and source files are included.
- Include a complete project folder structure and every required file.
- Do not provide pseudocode, placeholders, or incomplete methods.
- Ensure the code compiles against the actual Paper 26.3 API.
- Include clear step-by-step instructions for building the JAR and installing it on my Paper server hosted by Bloom.host.
- Explain how to configure the Discord invite and customize the media GUI.
- Verify API compatibility and fix compilation errors before presenting the final code.
Keep the implementation lightweight, reliable, and suitable for a mostly vanilla survival server.