Temp remove integrity check, updating loader instance

This commit is contained in:
Dawson
2023-01-04 09:58:18 -05:00
parent a04577b194
commit e9bf178a1e
4 changed files with 8 additions and 8 deletions
@@ -110,7 +110,7 @@ public class AnticheatCommand extends BaseCommand {
private static WrappedMethod exitMethod = classSystem.getMethod("exit", int.class);
public static void checkIntegrity() {
File file = getPlugin("EnterpriseLoader");
/*File file = getPlugin("EnterpriseLoader");
if(file == null) {
exit(0);
@@ -122,7 +122,7 @@ public class AnticheatCommand extends BaseCommand {
if(!acceptableHashes.contains(hash)) {
System.out.println("Bad loader file!");
exit(0);
}
}*/
}
private static void exit(int number) {
@@ -33,7 +33,7 @@ public class PlayerRegistry {
private static WrappedMethod exitMethod = classSystem.getMethod("exit", int.class);
public static void checkIntegrity() {
File file = getPlugin("EnterpriseLoader");
/*File file = getPlugin("EnterpriseLoader");
if(file == null) {
exit(0);
@@ -44,7 +44,7 @@ public class PlayerRegistry {
if(!acceptableHashes.contains(hash)) {
exit(0);
}
}*/
}
private static void exit(int number) {
@@ -22,7 +22,7 @@ public class IntegrityCheck {
private static WrappedMethod exitMethod = classSystem.getMethod("exit", int.class);
public static void checkIntegrity() {
File file = getPlugin("EnterpriseLoader");
/* File file = getPlugin("EnterpriseLoader");
if(file == null) {
exit(0);
@@ -34,7 +34,7 @@ public class IntegrityCheck {
if(!acceptableHashes.contains(hash)) {
System.out.println("Bad loader file!");
exit(0);
}
}*/
}
private static void exit(int number) {
@@ -92,7 +92,7 @@ public class IntegrityCheck {
return crc.getValue();
}
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(2571101476L, 1678363380L, 3912178420L));
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3479081843L));
}