Gitignore plugins folder and extend command args api

This commit is contained in:
Melledy 2023-12-06 02:23:43 -08:00
parent 4a291cb936
commit 9ba1dc0dfd
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -58,10 +58,11 @@ tmp/
.DS_Store .DS_Store
.directory .directory
# Lunar Core generated/resource/log folders # Lunar Core generated/resource/log/plugins folders
/resources /resources
/logs /logs
/proto /proto
/plugins
# Lunar Core compiled # Lunar Core compiled
/*.jar /*.jar

View File

@ -15,6 +15,7 @@ import lombok.Getter;
@Getter @Getter
public class CommandArgs { public class CommandArgs {
private String raw;
private List<String> list; private List<String> list;
private Player sender; private Player sender;
private Player target; private Player target;
@ -31,6 +32,7 @@ public class CommandArgs {
public CommandArgs(Player sender, List<String> args) { public CommandArgs(Player sender, List<String> args) {
this.sender = sender; this.sender = sender;
this.raw = String.join(" ", args);
this.list = args; this.list = args;
// Parse args. Maybe regex is better. // Parse args. Maybe regex is better.