diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 26d3352..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
deleted file mode 100644
index a7fcad5..0000000
--- a/.idea/gradle.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 907cd48..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
index b8b917c..75eb778 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -7,7 +7,7 @@ plugins {
}
group = "de.kentoj.scrow"
-version = "0.4"
+version = "0.6"
fun RepositoryHandler.scrowRepo() = maven {
name = "scrow"
diff --git a/kencommandapi-bukkit/build.gradle.kts b/kencommandapi-bukkit/build.gradle.kts
index 797ddf6..5b6817a 100644
--- a/kencommandapi-bukkit/build.gradle.kts
+++ b/kencommandapi-bukkit/build.gradle.kts
@@ -4,7 +4,7 @@ plugins {
}
group = "de.kentoj"
-version = "2.3.0"
+version = rootProject.version
repositories {
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
diff --git a/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/nodes/ArgumentNode.java b/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/nodes/ArgumentNode.java
index 9e8f862..f8bceea 100644
--- a/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/nodes/ArgumentNode.java
+++ b/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/nodes/ArgumentNode.java
@@ -1,13 +1,13 @@
package de.kentoj.kencommandapi.api.nodes;
-import de.kentoj.kencommandapi.api.processing.CommandContext;
import de.kentoj.kencommandapi.api.argument.CommandArgument;
+import de.kentoj.kencommandapi.api.processing.CommandContext;
-import java.util.Set;
+import java.util.List;
public interface ArgumentNode> {
void addArgument(CommandArgument argument);
- Set> getArguments();
+ List> getArguments();
}
diff --git a/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/types/StringArgumentType.java b/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/types/StringArgumentType.java
index 7c392c0..de660fd 100644
--- a/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/types/StringArgumentType.java
+++ b/kencommandapi-core/src/main/java/de/kentoj/kencommandapi/api/types/StringArgumentType.java
@@ -1,12 +1,16 @@
package de.kentoj.kencommandapi.api.types;
-import de.kentoj.kencommandapi.api.processing.CommandContext;
import de.kentoj.kencommandapi.api.argument.ArgumentType;
import de.kentoj.kencommandapi.api.argument.SuggestionProvider;
import de.kentoj.kencommandapi.api.argument.suggestion.NoSuggestionProvider;
+import de.kentoj.kencommandapi.api.processing.CommandContext;
+import lombok.RequiredArgsConstructor;
+@RequiredArgsConstructor
public class StringArgumentType> implements ArgumentType {
+ private final boolean isGreedy;
+
@Override
public String parseInput(String string) {
return string;
@@ -16,4 +20,9 @@ public class StringArgumentType> implements Ar
public SuggestionProvider defaultSuggestionProvider() {
return new NoSuggestionProvider<>();
}
+
+ @Override
+ public boolean isGreedy() {
+ return this.isGreedy;
+ }
}
diff --git a/kencommandapi-velocity/build.gradle.kts b/kencommandapi-velocity/build.gradle.kts
index fe8cc66..271bef5 100644
--- a/kencommandapi-velocity/build.gradle.kts
+++ b/kencommandapi-velocity/build.gradle.kts
@@ -4,7 +4,7 @@ plugins {
}
group = "de.kentoj.scrow"
-version = ""
+version = rootProject.version
repositories {
mavenCentral()