Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
valekatoz committed Jan 14, 2024
1 parent 484b7b3 commit 8986f79
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/main/java/net/kore/Kore.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import net.kore.utils.render.shader.BlurUtils;

import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
Expand All @@ -29,8 +27,6 @@
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent;
import net.minecraftforge.fml.common.network.FMLNetworkEvent;

@Mod(modid = Kore.MOD_ID, name = Kore.MOD_NAME, version = Kore.VERSION)
public class Kore {
Expand Down Expand Up @@ -136,7 +132,7 @@ public void postInit(FMLPostInitializationEvent event) {

@SubscribeEvent
public void onEntityJoinWorld(EntityJoinWorldEvent event) {
if (licenseManager == null && event.entity instanceof net.minecraft.client.entity.EntityPlayerSP) {
if (licenseManager == null && event.entity instanceof net.minecraft.client.entity.EntityPlayerSP) {
licenseManager = new LicenseManager();
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/kore/commands/impl/KoreCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public void execute(String[] args) throws Exception {
// Dev test command
Kore.notificationManager.showNotification("This is a notification", 2000, Notification.NotificationType.INFO);
Kore.sendMessageWithPrefix("(&cDev&f) Notification executed");
} else if(args.length > 1 && args[1].equals("disconnect")) {
Kore.sendMessageWithPrefix("(&cDev&f) You successfully disconnected from Kore");
Kore.licenseManager.disconnect();
} else {

}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/net/kore/managers/LicenseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public boolean isPremium() {
return isPremium;
}

public void disconnect() {
this.isPremium = false;
}

public boolean checkLicense(String uuid) {
try {
URL url = new URL("https://kore.valekatoz.com/api/checkLicense.php?key="+ Base64.getEncoder().encodeToString(uuid.getBytes()));
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/kore/modules/skyblock/PurseSpoofer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class PurseSpoofer extends Module {
public PurseSpoofer() {
super("Purse Spoofer", Category.SKYBLOCK);
this.addSettings(mode, coins);
this.setVersionType(VersionType.PREMIUM);
}

@Override
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/net/kore/utils/SkyblockUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.google.common.collect.Iterables;
import com.google.common.collect.Ordering;
import com.mojang.realmsclient.gui.ChatFormatting;
import jdk.nashorn.internal.runtime.regexp.joni.Regex;
import net.kore.Kore;
import net.minecraft.client.network.NetworkPlayerInfo;
import net.minecraft.entity.item.EntityArmorStand;
Expand Down Expand Up @@ -142,7 +141,6 @@ public static String getSkyblockItemID(ItemStack item) {

public static SkyblockAreas currentArea = null;
public static int ticks;
public static Regex areaRegex = new Regex("^(?:Area|Dungeon): ([\\w ].+)\\$");

public static Ordering<NetworkPlayerInfo> playerInfoOrdering = new Ordering<NetworkPlayerInfo>() {
@Override
Expand Down

0 comments on commit 8986f79

Please sign in to comment.