Skip to content

Commit d5f017f

Browse files
okay that didn't work, back to old switch + using the java version placeholder.
1 parent 1a376ad commit d5f017f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<artifactId>maven-compiler-plugin</artifactId>
2424
<version>3.8.1</version>
2525
<configuration>
26-
<source>17</source>
27-
<target>17</target>
26+
<source>${java.version}</source>
27+
<target>${java.version}</target>
2828
</configuration>
2929
</plugin>
3030
<plugin>

src/main/java/dev/Ev1dent/HavenSpawners/Utilities/TabCompleter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
1818
final List<String> completions = new ArrayList<>();
1919

2020
switch (command.getName().toLowerCase()) {
21-
case "givespawner" -> {
21+
case "givespawner": {
2222
switch (args.length) {
23-
case 1 -> {
23+
case 1 : {
2424
return null;
2525
}
26-
case 2 -> {
26+
case 2 : {
2727
StringUtil.copyPartialMatches(args[1], HSMain.plugin.getConfig().getStringList("Mobs"), completions);
2828
Collections.sort(completions);
2929
return completions;
3030
}
3131
}
3232
}
33-
case "havenspawners" -> {
3433

34+
case "havenspawners" :{
3535
StringUtil.copyPartialMatches(args[0], Arrays.asList(hsArguments), completions);
3636
Collections.sort(completions);
3737
return completions;

0 commit comments

Comments
 (0)