Skip to content

Commit 82c2dc5

Browse files
committed
feat: Support 1.19 to 1.21 implementations
1 parent ae8ef6b commit 82c2dc5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/it/uknowngino/moddedintegration/enums/ServerVersion.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package it.uknowngino.moddedintegration.enums;
22

3-
import it.uknowngino.moddedintegration.implementation.PopulationImplementation;
4-
import it.uknowngino.moddedintegration.implementation.V1_12_Implementation;
5-
import it.uknowngino.moddedintegration.implementation.V1_16_Implementation;
6-
import it.uknowngino.moddedintegration.implementation.V1_18_Implementation;
3+
import it.uknowngino.moddedintegration.implementation.*;
74
import it.uknowngino.moddedintegration.main.ModdedIntegration;
85
import it.uknowngino.moddedintegration.utils.LogUtils;
96
import org.bukkit.Bukkit;
@@ -17,9 +14,15 @@
1714

1815
public enum ServerVersion {
1916

17+
/* >= 1.12 */
2018
V1_12(V1_12_Implementation.class),
19+
/* >= 1.16 */
2120
V1_16(V1_16_Implementation.class),
22-
V1_18(V1_18_Implementation.class);
21+
/* >= 1.18 */
22+
V1_18(V1_18_Implementation.class),
23+
V1_19(V1_18_Implementation.class),
24+
V1_20(V1_18_Implementation.class),
25+
V1_21(V1_18_Implementation.class);
2326

2427
private final Class<? extends PopulationImplementation> implementationClass;
2528
private final Supplier<Boolean> customVersionCheck;

0 commit comments

Comments
 (0)