mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +00:00
better tab completion, fix testWithPaper task
This commit is contained in:
@@ -84,7 +84,7 @@ val testWithPaper = task<JavaExec>(name = "testWithPaper") {
|
||||
// Copy Terra into dir
|
||||
doFirst {
|
||||
copy {
|
||||
from("${buildDir}/libs/bukkit-${version}-shaded.jar")
|
||||
from("${buildDir}/libs/Terra-bukkit-${version}-shaded.jar")
|
||||
into("${testDir}/plugins/")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ public class LoadFullCommand extends LoadCommand implements DebugCommand {
|
||||
if(!TerraWorld.isTerraWorld(w)) return Collections.emptyList();
|
||||
switch(args.length) {
|
||||
case 1:
|
||||
return getMain().getWorld(w).getConfig().getScriptRegistry().entries().stream().map(StructureScript::getId).collect(Collectors.toList());
|
||||
return getMain().getWorld(w).getConfig().getScriptRegistry().entries().stream().map(StructureScript::getId).filter(id -> id.startsWith(args[0])).sorted().collect(Collectors.toList());
|
||||
case 2:
|
||||
return Stream.of("0", "90", "180", "270").filter(string -> string.toUpperCase().startsWith(args[1].toUpperCase())).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user