Skip to content

Commit

Permalink
updated vigilance
Browse files Browse the repository at this point in the history
  • Loading branch information
koxx12-dev committed Jul 30, 2021
1 parent dd83adb commit f34d2d0
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build
.nb-gradle-properties

# other
notUsed/*
run
.DS_Store
Thumbs.db
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
*/
version = mod_version
group = "io.github.koxx12-dev"
archivesBaseName = "!!!"+mod_name
archivesBaseName = "!!"+mod_name

minecraft {
version = "1.8.9-11.15.1.2318-1.8.9"
Expand Down Expand Up @@ -50,8 +50,8 @@ dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')

implementation "org.json:json:20210307"
implementation "gg.essential:Vigilance:141-10809-SNAPSHOT"

implementation "gg.essential:vigilance-1.8.9-forge:157"
implementation "org.spongepowered:mixin:0.7.11-SNAPSHOT"
annotationProcessor "org.spongepowered:mixin:0.7.11-SNAPSHOT"

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_id=skyclientcosmetics
mod_name=Skyclient Cosmetics
mod_version=BETA-6.1
mod_version=BETA-6.2
mod_description=Cosmetics for the mod installer Skyclient!

org.gradle.jvmargs=-Xmx2G
48 changes: 34 additions & 14 deletions src/main/java/io/github/koxx12dev/scc/SkyclientCosmetics.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
package io.github.koxx12dev.scc;

import de.jcm.discordgamesdk.Core;
import io.github.koxx12dev.scc.utils.Cache;
import io.github.koxx12dev.scc.commands.MainCommand;
import io.github.koxx12dev.scc.gui.Settings;
import io.github.koxx12dev.scc.utils.Requests;
import io.github.koxx12dev.scc.utils.RPC;
import io.github.koxx12dev.scc.listeners.ChatListeners;
import io.github.koxx12dev.scc.listeners.GuiListners;
import io.github.koxx12dev.scc.listeners.PlayerListeners;
import io.github.koxx12dev.scc.utils.Cache;
import io.github.koxx12dev.scc.utils.RPC;
import io.github.koxx12dev.scc.utils.Requests;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.client.ClientCommandHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.ProgressManager;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
Expand Down Expand Up @@ -59,11 +60,21 @@ public class SkyclientCosmetics {
@Mod.EventHandler
public void onPreInit(FMLPreInitializationEvent event) throws IOException {

ProgressManager.ProgressBar progress = ProgressManager.push("Pre Init Setup", 3);

progress.step("Setting up Cache");

Cache.setup();

progress.step("Getting log4j logger");

LOGGER = event.getModLog();

progress.step("Getting api data");

api = Requests.getApiData();

ProgressManager.pop(progress);
/*
if ((boolean)api.get("whitelist")) {
String UUID = Minecraft.getMinecraft().getSession().getPlayerID();
Expand All @@ -78,39 +89,48 @@ public void onPreInit(FMLPreInitializationEvent event) throws IOException {
@Mod.EventHandler
public void onInit(FMLInitializationEvent event) {

ProgressManager.ProgressBar progress = ProgressManager.push("Init Setup", 3);

progress.step("Registering Listeners");

MinecraftForge.EVENT_BUS.register(this);
MinecraftForge.EVENT_BUS.register(new ChatListeners());
MinecraftForge.EVENT_BUS.register(new PlayerListeners());
MinecraftForge.EVENT_BUS.register(new GuiListners());

progress.step("Starting RPC");

RPC.INSTANCE.rpcManager();

MinecraftForge.EVENT_BUS.register(RPC.INSTANCE);

progress.step("Registering Commands");

ClientCommandHandler.instance.registerCommand(new MainCommand());

ProgressManager.pop(progress);
}

@Mod.EventHandler
public void onPostInit(FMLPostInitializationEvent event) throws IOException {
// $USER = The username of the currently logged in user.
// Simply prints out Hello, $USER.
/*
if (Loader.isModLoaded("SkyblockExtras")) {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {

ProgressManager.ProgressBar progress = ProgressManager.push("Post Init Setup", 3);

}));
progress.step("Loading tags");

SkyclientCosmetics.LOGGER.info(Arrays.toString(new File(Minecraft.getMinecraft().mcDataDir, "mods").list()));
//throw new Error("fuck sbe https://github.com/MicrocontrollersDev/Alternatives/blob/1e409e056e3e14ca874a2368c045de96787e8cbd/SkyblockExtras.md");
}
*/
Requests.reloadTags();

progress.step("Loading Vigilance");

config = new Settings();
config.preload();

progress.step("Setting rank color");

Requests.setRankColor();

ProgressManager.pop(progress);

}

@SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.github.koxx12dev.scc.listeners;

import io.github.koxx12dev.scc.SkyclientCosmetics;
import io.github.koxx12dev.scc.utils.Tag;
import io.github.koxx12dev.scc.gui.Settings;
import io.github.koxx12dev.scc.threads.JoinThread;
import io.github.koxx12dev.scc.utils.Tag;
import net.minecraft.client.Minecraft;
import net.minecraftforge.event.entity.player.PlayerEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.koxx12dev.scc.threads;

import io.github.koxx12dev.scc.utils.Chat;
import io.github.koxx12dev.scc.gui.Settings;
import io.github.koxx12dev.scc.utils.Chat;
import net.minecraft.util.EnumChatFormatting;

public class JoinThread extends Thread {
Expand Down

0 comments on commit f34d2d0

Please sign in to comment.