Add GUI Command (WIP)

This commit is contained in:
FirephoenixX02 2024-04-28 18:05:06 +02:00
parent a1c29905d4
commit 0533afc77a

View file

@ -21,15 +21,12 @@ public class ReportGUICommand implements SimpleCommand {
public void execute(final Invocation invocation) {
CommandSource commandSource = invocation.source();
String[] args = invocation.arguments();
if (!(commandSource instanceof Player)) {
commandSource.sendRichMessage(RapidReport.INSTANCE.getChatPrefix() + "<red>This command can only be executed by a player.");
return;
}
Inventory inventory = new Inventory(InventoryType.GENERIC_9X4);
inventory.title(ChatElement.ofLegacyText("§9Inventory"));