Skip to content
This repository was archived by the owner on Jun 19, 2021. It is now read-only.

Commit bd3a93a

Browse files
committed
things
1 parent 4b285af commit bd3a93a

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

src/main/java/org/yatopiamc/bot/commands/CommandDownloadSpecific.java

+29-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import org.jetbrains.annotations.NotNull;
1111
import org.yatopiamc.bot.EmbedUtil;
1212

13-
@CommandAliases("?download|?1.16.5")
13+
@CommandAliases("download|1.15.2|1.16.1|1.16.2|1.16.3|1.16.4|1.16.5")
1414
@CommandDescription("Download specific commands.")
15-
@CommandUsage("?download|?1.16.5")
15+
@CommandUsage("?download|?1.15.2|?1.16.1|?1.16.2|?1.16.3|?1.16.4|?1.16.5")
1616
public class CommandDownloadSpecific extends Command {
1717

1818
@Override
@@ -25,6 +25,33 @@ public boolean execute(@NotNull CommandExecutionContext context, @NotNull Comman
2525
.sendMessage("<https://ci.codemc.io/job/YatopiaMC/job/Yatopia/job/ver%252F1.16.5/>")
2626
.queue();
2727
break;
28+
case "1.15.2":
29+
channel
30+
.sendMessage(
31+
"<https://github.com/YatopiaMC/Yatopia/actions?query=branch%3Aver%2F1.15.2>")
32+
.queue();
33+
break;
34+
case "1.16.1":
35+
channel
36+
.sendMessage(
37+
"<https://github.com/YatopiaMC/Yatopia/actions?query=branch%3Aver%2F1.16.1>")
38+
.queue();
39+
break;
40+
case "1.16.2":
41+
channel
42+
.sendMessage("<https://ci.codemc.io/job/YatopiaMC/job/Yatopia/job/ver%252F1.16.2/>")
43+
.queue();
44+
break;
45+
case "1.16.3":
46+
channel
47+
.sendMessage("<https://ci.codemc.io/job/YatopiaMC/job/Yatopia/job/ver%252F1.16.3/>")
48+
.queue();
49+
break;
50+
case "1.16.4":
51+
channel
52+
.sendMessage("<https://ci.codemc.io/job/YatopiaMC/job/Yatopia/job/ver%252F1.16.4/>")
53+
.queue();
54+
break;
2855
case "1.16.5":
2956
channel
3057
.sendMessage("<https://ci.codemc.io/job/YatopiaMC/job/Yatopia/job/ver%252F1.16.5/>")

src/main/java/org/yatopiamc/bot/mappings/spigot/SpigotMappingParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private static List<Mapping> parseClass(File classMappings, String mcVer, Mappin
3737
MappingType.CLASS,
3838
values[0],
3939
null,
40-
values[1],
40+
mcVer == "1.16.5" ? values[1] : "net/minecraft/server/" + values[1],
4141
mcVer,
4242
null,
4343
null));

0 commit comments

Comments
 (0)