From 9ba1dc0dfdca58707bd4dd1bcfe3040e09791915 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Wed, 6 Dec 2023 02:23:43 -0800 Subject: [PATCH] Gitignore plugins folder and extend command args api --- .gitignore | 3 ++- src/main/java/emu/lunarcore/command/CommandArgs.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d181c98..219ddd7 100644 --- a/.gitignore +++ b/.gitignore @@ -58,10 +58,11 @@ tmp/ .DS_Store .directory -# Lunar Core generated/resource/log folders +# Lunar Core generated/resource/log/plugins folders /resources /logs /proto +/plugins # Lunar Core compiled /*.jar diff --git a/src/main/java/emu/lunarcore/command/CommandArgs.java b/src/main/java/emu/lunarcore/command/CommandArgs.java index 9554025..e0cc7f7 100644 --- a/src/main/java/emu/lunarcore/command/CommandArgs.java +++ b/src/main/java/emu/lunarcore/command/CommandArgs.java @@ -15,6 +15,7 @@ import lombok.Getter; @Getter public class CommandArgs { + private String raw; private List list; private Player sender; private Player target; @@ -31,6 +32,7 @@ public class CommandArgs { public CommandArgs(Player sender, List args) { this.sender = sender; + this.raw = String.join(" ", args); this.list = args; // Parse args. Maybe regex is better.