mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-28 18:26:15 -05:00
🔒️ Add locker
This commit is contained in:
parent
0f046ab3c8
commit
291ca24f4a
1 changed files with 6 additions and 2 deletions
|
@ -2,13 +2,17 @@ package net.shadow.client.helper.protection;
|
|||
|
||||
import meteordevelopment.discordipc.DiscordIPC;
|
||||
import meteordevelopment.discordipc.IPCUser;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
|
||||
public class Locker {
|
||||
|
||||
private List<String> permittedIds = Arrays.asList("661988735189254165","956655656704815124");
|
||||
public static void init() {
|
||||
boolean result = DiscordIPC.start(958479347390500874L, () -> {
|
||||
IPCUser user = DiscordIPC.getUser();
|
||||
//user.id
|
||||
if(!permittedIds.has(user.id)) MinecraftClient.getInstance().close();
|
||||
|
||||
DiscordIPC.stop();
|
||||
});
|
||||
if (!result) {
|
||||
|
|
Loading…
Reference in a new issue