mirror of
https://github.com/FirephoenixX02/RapidReport.git
synced 2026-05-03 06:42:37 +02:00
Add GUI Command (WIP)
This commit is contained in:
parent
a1c29905d4
commit
0533afc77a
1 changed files with 0 additions and 3 deletions
|
|
@ -21,15 +21,12 @@ public class ReportGUICommand implements SimpleCommand {
|
||||||
public void execute(final Invocation invocation) {
|
public void execute(final Invocation invocation) {
|
||||||
CommandSource commandSource = invocation.source();
|
CommandSource commandSource = invocation.source();
|
||||||
|
|
||||||
String[] args = invocation.arguments();
|
|
||||||
|
|
||||||
if (!(commandSource instanceof Player)) {
|
if (!(commandSource instanceof Player)) {
|
||||||
commandSource.sendRichMessage(RapidReport.INSTANCE.getChatPrefix() + "<red>This command can only be executed by a player.");
|
commandSource.sendRichMessage(RapidReport.INSTANCE.getChatPrefix() + "<red>This command can only be executed by a player.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Inventory inventory = new Inventory(InventoryType.GENERIC_9X4);
|
Inventory inventory = new Inventory(InventoryType.GENERIC_9X4);
|
||||||
inventory.title(ChatElement.ofLegacyText("§9Inventory"));
|
inventory.title(ChatElement.ofLegacyText("§9Inventory"));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue