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
|
.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
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user