Skip to content

Commit

Permalink
Fully refactored and added player esp in dungeons (also cleared)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cephetir committed Jul 27, 2021
1 parent ae7557d commit 9f46e3e
Show file tree
Hide file tree
Showing 19 changed files with 268 additions and 1,050 deletions.
661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ buildscript {
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "com.github.johnrengelman.shadow"

group= "cephetir.simplemod"
version = "1.4"
group = "cephetir.skyskipped"
archivesBaseName = "SkySkipped"

sourceCompatibility = targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
Expand Down Expand Up @@ -54,10 +56,9 @@ repositories {
dependencies {
embed "gg.essential:loader-launchwrapper:1.0.2"

implementation "gg.essential:Essential:1193-10809-SNAPSHOT"
implementation "gg.essential:Essential:1229-10809-SNAPSHOT"
implementation('org.projectlombok:lombok:1.18.16')
annotationProcessor('org.projectlombok:lombok:1.18.16')
implementation 'com.github.Vatuu:discord-rpc:1.6.2'
implementation('com.github.jagrosh:DiscordIPC:e29d6d8') {
exclude module: 'log4j'
}
Expand All @@ -72,17 +73,15 @@ sourceJar {
}

shadowJar {
archiveClassifier.set("")
archiveFileName = jar.archiveFileName

duplicatesStrategy = DuplicatesStrategy.EXCLUDE

configurations = [project.configurations.embed]

manifest.attributes(
'FMLCorePluginContainsFMLMod': true,
"ForceLoadAsMod": true,
'ModSide': 'CLIENT',
"FMLCorePlugin": "cephetir.simplemod.forge.SMTweaker",
"TweakClass": "gg.essential.loader.stage0.EssentialSetupTweaker",
"TweakOrder": "0"
)
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ pluginManagement {
}
}

rootProject.name = "SimpleMod"
rootProject.name = "SkySkipped"
77 changes: 0 additions & 77 deletions src/main/java/cephetir/simplemod/discordrpc/DiscordRP.java

This file was deleted.

50 changes: 0 additions & 50 deletions src/main/java/cephetir/simplemod/listeners/InDungeon.java

This file was deleted.

150 changes: 0 additions & 150 deletions src/main/java/cephetir/simplemod/utils/LanguageData.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cephetir.simplemod.Features;
package cephetir.skyskipped.Features;

import cephetir.simplemod.config.Config;
import cephetir.skyskipped.config.Cache;
import cephetir.skyskipped.config.Config;
import net.minecraft.client.Minecraft;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
Expand All @@ -11,9 +12,15 @@ public class ChatSwapper {
public void onMessageReceived(@NotNull ClientChatReceivedEvent event) {
if(Config.chatSwapper){
if (event.message.getUnformattedText().startsWith("You have been kicked from the party") || event.message.getUnformattedText().contains("has disbanded") || event.message.getUnformattedText().startsWith("You left the party")) {
Minecraft.getMinecraft().thePlayer.sendChatMessage("/chat all");
} else if(event.message.getUnformattedText().startsWith("You joined") || event.message.getUnformattedText().startsWith("Party M")){
Minecraft.getMinecraft().thePlayer.sendChatMessage("/chat p");
if(Cache.inParty) {
Minecraft.getMinecraft().thePlayer.sendChatMessage("/chat all");
Cache.inParty = false;
}
} else if(event.message.getUnformattedText().startsWith("You have joined") || event.message.getUnformattedText().startsWith("Party M") || event.message.getUnformattedText().contains("joined the ")){
if(!Cache.inParty) {
Minecraft.getMinecraft().thePlayer.sendChatMessage("/chat p");
Cache.inParty = true;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cephetir.simplemod.Features;
package cephetir.skyskipped.Features;

import cephetir.simplemod.config.Config;
import cephetir.skyskipped.config.Cache;
import cephetir.skyskipped.config.Config;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.inventory.GuiChest;
Expand All @@ -10,24 +11,22 @@

public class ChestCloser {
@SubscribeEvent
public void onKeyInput(GuiScreenEvent.KeyboardInputEvent keyboardInputEvent) throws InterruptedException {
public void onKeyInput(GuiScreenEvent.KeyboardInputEvent keyboardInputEvent) {
GuiScreen screen = Minecraft.getMinecraft().currentScreen;
if(Config.chestCloser && Config.isInDungeon && screen instanceof GuiChest) {
if(Config.chestCloser && Cache.isInDungeon && screen instanceof GuiChest) {
ContainerChest ch = (ContainerChest) ((GuiChest) screen).inventorySlots;
if ("Large Chest".equals(ch.getLowerChestInventory().getName()) || "Chest".equals(ch.getLowerChestInventory().getName())) {
Thread.sleep(20);
Minecraft.getMinecraft().thePlayer.closeScreen();
}
}
}

@SubscribeEvent
public void onMouseInput(GuiScreenEvent.MouseInputEvent.Pre mouseInputEvent) throws InterruptedException {
public void onMouseInput(GuiScreenEvent.MouseInputEvent.Pre mouseInputEvent) {
GuiScreen screen = Minecraft.getMinecraft().currentScreen;
if(Config.chestCloser && Config.isInDungeon && screen instanceof GuiChest) {
if(Config.chestCloser && Cache.isInDungeon && screen instanceof GuiChest) {
ContainerChest ch = (ContainerChest) ((GuiChest) screen).inventorySlots;
if ("Large Chest".equals(ch.getLowerChestInventory().getName()) || "Chest".equals(ch.getLowerChestInventory().getName())) {
Thread.sleep(20);
Minecraft.getMinecraft().thePlayer.closeScreen();
}
}
Expand Down
Loading

0 comments on commit 9f46e3e

Please sign in to comment.