mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 23:34:50 +01:00
Gitignore plugins folder and extend command args api
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user