mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 23:01:03 +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
|
// Copy Terra into dir
|
||||||
doFirst {
|
doFirst {
|
||||||
copy {
|
copy {
|
||||||
from("${buildDir}/libs/bukkit-${version}-shaded.jar")
|
from("${buildDir}/libs/Terra-bukkit-${version}-shaded.jar")
|
||||||
into("${testDir}/plugins/")
|
into("${testDir}/plugins/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ public class LoadFullCommand extends LoadCommand implements DebugCommand {
|
|||||||
if(!TerraWorld.isTerraWorld(w)) return Collections.emptyList();
|
if(!TerraWorld.isTerraWorld(w)) return Collections.emptyList();
|
||||||
switch(args.length) {
|
switch(args.length) {
|
||||||
case 1:
|
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:
|
case 2:
|
||||||
return Stream.of("0", "90", "180", "270").filter(string -> string.toUpperCase().startsWith(args[1].toUpperCase())).collect(Collectors.toList());
|
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