🔒️ Add locker

This commit is contained in:
ZeoNight 2022-05-07 16:40:07 +00:00 committed by GitHub
parent 0f046ab3c8
commit 291ca24f4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,17 @@ package net.shadow.client.helper.protection;
import meteordevelopment.discordipc.DiscordIPC; import meteordevelopment.discordipc.DiscordIPC;
import meteordevelopment.discordipc.IPCUser; import meteordevelopment.discordipc.IPCUser;
import java.util.Arrays;
import java.util.List;
import net.minecraft.client.MinecraftClient;
public class Locker { public class Locker {
private List<String> permittedIds = Arrays.asList("661988735189254165","956655656704815124");
public static void init() { public static void init() {
boolean result = DiscordIPC.start(958479347390500874L, () -> { boolean result = DiscordIPC.start(958479347390500874L, () -> {
IPCUser user = DiscordIPC.getUser(); IPCUser user = DiscordIPC.getUser();
//user.id if(!permittedIds.has(user.id)) MinecraftClient.getInstance().close();
DiscordIPC.stop(); DiscordIPC.stop();
}); });
if (!result) { if (!result) {