lots of code

This commit is contained in:
skippyall
2024-04-13 22:04:49 +02:00
commit 60fd7f0891
71 changed files with 3667 additions and 0 deletions
@@ -0,0 +1,22 @@
package io.github.skippyall.minions.networking;
import net.minecraft.world.entity.player.Player;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class VersionChecker {
protected static List<UUID> hasSupportedMod = new ArrayList<>();
public static boolean supportVersion(String version) {
return version.equals("v0.1");
}
public static boolean useSupportedMod(Player p) {
return hasSupportedMod.contains(p.getUUID());
}
public static void resetPlayer(UUID uuid) {
hasSupportedMod.remove(uuid);
}
}