MRSITAR144 Plugin — Minecraft Server Plugin
Create a complete Minecraft server plugin named MRSITAR144 Plugin.
Minecraft Version Compatibility
The plugin must support Minecraft Java Edition server versions:
- 1.21.1
- 1.21.2
- 1.21.3
- 1.21.4
- 1.21.5
- 1.21.6
- 1.21.7
- 1.21.8
- 1.21.9
- 1.21.10
- 1.21.11
Make the plugin compatible across this entire version range.
Owner Permission
There is only ONE owner who can configure the plugin.
Owner Minecraft username:
MRSTAR144
Only the Minecraft player whose username is exactly:
MRSTAR144
can use:
- "/command set"
- "/command edit"
No other player, even if they have an Owner/Admin permission or rank, should be able to use these configuration commands.
If another player attempts to use them, show a permission-denied message.
- "/command set"
Create the command:
"/command set <command-name>"
Example:
"/command set FastClient"
After entering the command name, the owner should confirm it by pressing Enter.
The plugin should create a new redeemable server command using that name.
For example:
"/command set FastClient"
creates:
"/FastClient"
Members can then use:
"/FastClient"
to redeem the rewards configured for that command.
The owner should be able to create unlimited custom redeem commands.
- "/command edit"
Create:
"/command edit"
When the owner runs this command, open a Chest INVENTORY GUI.
The INVENTORY GUI must display every command that has previously been created using "/command set".
Example:
- FastClient
- Premium
- VIP
- Starter
- etc.
The owner clicks one of these commands to edit it.
Command Management INVENTORY GUI
After selecting a command, show these three options:
- Delete
Delete the selected redeem command.
Ask for confirmation before permanently deleting it.
- Edit
Open the reward configuration for that command.
- Rename
Allow the owner to rename the command.
Example:
Old command:
"/FastClient"
Rename it to:
"/Fast"
The new command should then become:
"/Fast"
and the old command should no longer work.
All existing rewards/settings must remain attached to the renamed command.
Edit INVENTORY GUI
When the owner clicks Edit, open a INVENTORY GUI containing the reward configuration.
There must be these main options:
Rank
The Rank option controls which rank the player receives.
Use the server's existing LuckPerms system for rank management.
The plugin should allow the owner to select/configure the LuckPerms rank/group that will be given to the player.
The rank duration must have a default value of:
Unlimited
The owner can change the duration to a specific number of days.
Example:
"7"
means the player receives the configured rank for 7 days.
"30"
means 30 days.
Unlimited Rank
Unlimited must be the default selection.
If the owner opens the duration input/chat and types:
"U"
then the duration must be changed to:
Unlimited
The system should treat "U", "u", or "UNLIMITED" as Unlimited.
Item
Add an Item configuration option.
When the owner clicks Item, open another Chest INVENTORY GUI.
The owner should be able to place items from their inventory into this INVENTORY GUI.
Those items become the rewards for the selected command.
Example:
The owner creates:
"/command set FastClient"
Then opens:
"/command edit"
→ selects "FastClient"
→ clicks "Edit"
→ clicks "Item"
→ places items into the reward INVENTORY GUI.
Those exact items should be saved as rewards for "/FastClient".
Preserve:
- Item type
- Amount
- Name
- Lore
- Enchantments
- Item flags
- Custom Model Data
- Other important item metadata
Redeeming a Command
When a normal member runs a configured command, for example:
"/FastClient"
the plugin must:
- Check that the command exists.
- Check that the player is allowed to redeem it.
- Give all configured reward items.
- Give the configured LuckPerms rank.
- Apply the configured rank duration.
- If the rank duration is Unlimited, give the rank permanently.
- Send a success message to the player.
- Prevent errors if the command has no configuration.
Only commands created by the owner using "/command set" should work as redeem commands.
Players must NOT be able to create their own redeem commands.
Rank + Item Example
Suppose the owner creates:
"/command set FastClient"
Then configures:
Rank: FastClient Duration: 30 days Items: configured reward items
When a member enters:
"/FastClient"
the plugin should automatically:
- Give the configured items.
- Give the FastClient LuckPerms rank.
- Make that rank expire after 30 days.
- Send a successful redemption message.
Data Storage
All created commands and their configurations must persist after:
- Server restart
- Plugin reload
- Server shutdown
Store all command configurations safely in a configuration/database system such as YAML or SQLite.
Do not lose configured commands or rewards after restarting the server.
Important Security Requirements
Only MRSTAR144 can:
"/command set"
and
"/command edit"
Normal members can ONLY use the custom redeem commands created by the owner.
Do not allow normal players to access the configuration INVENTORY GUI.
Do not rely only on a normal permission node for the owner restriction; additionally verify the player's Minecraft username against:
MRSTAR144
INVENTORY GUI Requirements
Use clean Minecraft Chest GUIs.
All INVENTORY GUI interactions must be handled safely.
Players must not be able to:
- Take configuration items from menus.
- Move INVENTORY GUI items into their inventory.
- Place random items into configuration menus unless they are editing the Item reward section.
- Duplicate reward items.
- Bypass the INVENTORY GUI system.
Handle inventory click, drag, close, and item movement events correctly.
Commands Summary
Owner commands:
"/command set <name>"
"/command edit"
Member commands:
"/<configured-command>"
Example:
"/FastClient"
"/Premium"
"/VIP"
etc.
Final Requirement
Build this as a complete, production-ready Minecraft server plugin named:
MRSITAR144 Plugin
It must compile successfully, include all required plugin files/configuration, properly integrate with LuckPerms, safely save all data, and work across Minecraft 1.21.1 through 1.21.11.
Do not provide pseudocode. Generate the complete working plugin implementation with all required source files, configuration files, build configuration, and installation instructions.
Create the Gradle project, plugin metadata, and default configuration.
Implement persistent redeem-command management, dynamic command registration, and LuckPerms rewards.
Implement owner-only chest GUIs, chat inputs, item editing, confirmation flows, and safe inventory handling.
Created the Gradle project and plugin metadata for MRSITAR144 Plugin.
Added persistent YAML storage for redeem commands, item rewards, rank settings, durations, and one-time redemptions.
Added owner-only
/command set <name>and/command edithandling using exact username validation forMRSTAR144.Added dynamic redeem commands, rename/delete confirmation, item-reward GUI editing, chat-based rank/duration configuration, and safe inventory event handling.
Added LuckPerms integration with permanent or timed group assignments.
Added installation and usage instructions in
README.md.
Build with:
./gradlew build
The resulting JAR will be located in:
build/libs/MRSITAR144-Plugin-1.0.0.jar
Install LuckPerms on the server for rank rewards.
package com.mrsitar144;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class MRSITAR144Plugin extends JavaPlugin {
private CommandManager commandManager;
private GUIListener guiListener;
@Override
public void onEnable() {
saveDefaultConfig();
this.commandManager = new CommandManager(this);
this.commandManager.load();
this.commandManager.registerAll();
this.guiListener = new GUIListener(this, commandManager);
Bukkit.getPluginManager().registerEvents(guiListener, this);
CommandCommand commandExecutor = new CommandCommand(commandManager, guiListener);
if (getCommand("command") != null) {
getCommand("command").setExecutor(commandExecutor);
getCommand("command").setTabCompleter(commandExecutor);
}
}
@Override
public void onDisable() {
if (commandManager != null) {
commandManager.save();
}
}
}