mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-26 22:00:35 +00:00
Gitignore plugins folder and extend command args api
This commit is contained in:
parent
4a291cb936
commit
9ba1dc0dfd
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user