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
.directory
# Lunar Core generated/resource/log folders
# Lunar Core generated/resource/log/plugins folders
/resources
/logs
/proto
/plugins
# Lunar Core compiled
/*.jar

View File

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