.
This commit is contained in:
parent
3cb30b1489
commit
b091eb3377
9 changed files with 16 additions and 51 deletions
3
.idea/.gitignore
generated
vendored
3
.idea/.gitignore
generated
vendored
|
|
@ -1,3 +0,0 @@
|
||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
23
.idea/gradle.xml
generated
23
.idea/gradle.xml
generated
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
||||||
<component name="GradleSettings">
|
|
||||||
<option name="linkedExternalProjectsSettings">
|
|
||||||
<GradleProjectSettings>
|
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
||||||
<option name="gradleHome" value="" />
|
|
||||||
<option name="modules">
|
|
||||||
<set>
|
|
||||||
<option value="$PROJECT_DIR$" />
|
|
||||||
<option value="$PROJECT_DIR$/kencommandapi-bukkit" />
|
|
||||||
<option value="$PROJECT_DIR$/kencommandapi-core" />
|
|
||||||
<option value="$PROJECT_DIR$/kencommandapi-velocity" />
|
|
||||||
</set>
|
|
||||||
</option>
|
|
||||||
</GradleProjectSettings>
|
|
||||||
<GradleProjectSettings>
|
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$/kencommandapi-core" />
|
|
||||||
</GradleProjectSettings>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
12
.idea/misc.xml
generated
12
.idea/misc.xml
generated
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="EntryPointsManager">
|
|
||||||
<writeAnnotations>
|
|
||||||
<writeAnnotation name="lombok.Getter" />
|
|
||||||
</writeAnnotations>
|
|
||||||
</component>
|
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" project-jdk-name="21" project-jdk-type="JavaSDK">
|
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
6
.idea/vcs.xml
generated
6
.idea/vcs.xml
generated
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
|
|
@ -7,7 +7,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.kentoj.scrow"
|
group = "de.kentoj.scrow"
|
||||||
version = "0.4"
|
version = "0.6"
|
||||||
|
|
||||||
fun RepositoryHandler.scrowRepo() = maven {
|
fun RepositoryHandler.scrowRepo() = maven {
|
||||||
name = "scrow"
|
name = "scrow"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.kentoj"
|
group = "de.kentoj"
|
||||||
version = "2.3.0"
|
version = rootProject.version
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
package de.kentoj.kencommandapi.api.nodes;
|
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.argument.CommandArgument;
|
||||||
|
import de.kentoj.kencommandapi.api.processing.CommandContext;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ArgumentNode<T, S extends CommandContext<T, ?>> {
|
public interface ArgumentNode<T, S extends CommandContext<T, ?>> {
|
||||||
|
|
||||||
<V> void addArgument(CommandArgument<T, S, V> argument);
|
<V> void addArgument(CommandArgument<T, S, V> argument);
|
||||||
|
|
||||||
Set<CommandArgument<T, S, ?>> getArguments();
|
List<CommandArgument<T, S, ?>> getArguments();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,16 @@
|
||||||
package de.kentoj.kencommandapi.api.types;
|
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.ArgumentType;
|
||||||
import de.kentoj.kencommandapi.api.argument.SuggestionProvider;
|
import de.kentoj.kencommandapi.api.argument.SuggestionProvider;
|
||||||
import de.kentoj.kencommandapi.api.argument.suggestion.NoSuggestionProvider;
|
import de.kentoj.kencommandapi.api.argument.suggestion.NoSuggestionProvider;
|
||||||
|
import de.kentoj.kencommandapi.api.processing.CommandContext;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
|
@RequiredArgsConstructor
|
||||||
public class StringArgumentType<T, S extends CommandContext<T, ?>> implements ArgumentType<T, S, String> {
|
public class StringArgumentType<T, S extends CommandContext<T, ?>> implements ArgumentType<T, S, String> {
|
||||||
|
|
||||||
|
private final boolean isGreedy;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String parseInput(String string) {
|
public String parseInput(String string) {
|
||||||
return string;
|
return string;
|
||||||
|
|
@ -16,4 +20,9 @@ public class StringArgumentType<T, S extends CommandContext<T, ?>> implements Ar
|
||||||
public SuggestionProvider<T, S> defaultSuggestionProvider() {
|
public SuggestionProvider<T, S> defaultSuggestionProvider() {
|
||||||
return new NoSuggestionProvider<>();
|
return new NoSuggestionProvider<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isGreedy() {
|
||||||
|
return this.isGreedy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.kentoj.scrow"
|
group = "de.kentoj.scrow"
|
||||||
version = ""
|
version = rootProject.version
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue