mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-14 19:04:54 -05:00
remove ragequit + home screen improvement
This commit is contained in:
parent
b368345369
commit
0f046ab3c8
5 changed files with 10 additions and 65 deletions
|
@ -46,7 +46,6 @@ import net.shadow.client.feature.command.impl.MessageSpam;
|
|||
import net.shadow.client.feature.command.impl.Panic;
|
||||
import net.shadow.client.feature.command.impl.PermissionLevel;
|
||||
import net.shadow.client.feature.command.impl.Poof;
|
||||
import net.shadow.client.feature.command.impl.RageQuit;
|
||||
import net.shadow.client.feature.command.impl.RandomBook;
|
||||
import net.shadow.client.feature.command.impl.Rename;
|
||||
import net.shadow.client.feature.command.impl.Say;
|
||||
|
@ -117,7 +116,6 @@ public class CommandRegistry {
|
|||
vanillaCommands.add(new ConfigUtils());
|
||||
vanillaCommands.add(new Kill());
|
||||
vanillaCommands.add(new Invsee());
|
||||
vanillaCommands.add(new RageQuit());
|
||||
vanillaCommands.add(new Find());
|
||||
vanillaCommands.add(new FakeItem());
|
||||
vanillaCommands.add(new Taco());
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
|
||||
*/
|
||||
|
||||
package net.shadow.client.feature.command.impl;
|
||||
|
||||
import net.minecraft.client.util.GlfwUtil;
|
||||
import net.shadow.client.feature.command.Command;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class RageQuit extends Command {
|
||||
|
||||
public RageQuit() {
|
||||
super("RageQuit", "U mad?", "ragequit");
|
||||
}
|
||||
|
||||
public static boolean shutdown(int time) throws IOException {
|
||||
String shutdownCommand, t = time == 0 ? "now" : String.valueOf(time);
|
||||
|
||||
if (SystemUtils.IS_OS_AIX) {
|
||||
shutdownCommand = "shutdown -Fh " + t;
|
||||
} else if (SystemUtils.IS_OS_FREE_BSD || SystemUtils.IS_OS_LINUX || SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_MAC_OSX || SystemUtils.IS_OS_NET_BSD || SystemUtils.IS_OS_OPEN_BSD || SystemUtils.IS_OS_UNIX) {
|
||||
shutdownCommand = "shutdown -h " + t;
|
||||
} else if (SystemUtils.IS_OS_HP_UX) {
|
||||
shutdownCommand = "shutdown -hy " + t;
|
||||
} else if (SystemUtils.IS_OS_IRIX) {
|
||||
shutdownCommand = "shutdown -y -g " + t;
|
||||
} else if (SystemUtils.IS_OS_SOLARIS || SystemUtils.IS_OS_SUN_OS) {
|
||||
shutdownCommand = "shutdown -y -i5 -g" + t;
|
||||
} else if (SystemUtils.IS_OS_WINDOWS) {
|
||||
shutdownCommand = "shutdown.exe /s /t " + t;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Runtime.getRuntime().exec(shutdownCommand);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onExecute(String[] args) {
|
||||
try {
|
||||
boolean i = shutdown(0);
|
||||
if (!i) {
|
||||
throw new Exception();
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
GlfwUtil.makeJvmCrash();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -47,7 +47,6 @@ public class HomeScreen extends ClientScreen {
|
|||
static String version = "unknown";
|
||||
static String changelog = "";
|
||||
private static HomeScreen instance;
|
||||
final ParticleRenderer prend = new ParticleRenderer(600);
|
||||
final FontAdapter propFr = FontRenderers.getCustomSize(22);
|
||||
final Texture currentAccountTexture = new Texture("dynamic/tex_currentaccount_home");
|
||||
boolean loaded = false;
|
||||
|
@ -159,10 +158,9 @@ public class HomeScreen extends ClientScreen {
|
|||
|
||||
Renderer.R2D.renderQuad(stack, new Color(20, 20, 20), 0, 0, width, height);
|
||||
|
||||
RenderSystem.setShaderTexture(0, background);
|
||||
Renderer.R2D.renderTexture(stack, 0, 0, width, height, 0, 0, width, height, width, height);
|
||||
RenderSystem.defaultBlendFunc();
|
||||
prend.render(stack);
|
||||
//RenderSystem.setShaderTexture(0, background);
|
||||
//Renderer.R2D.renderTexture(stack, 0, 0, width, height, 0, 0, width, height, width, height);
|
||||
//RenderSystem.defaultBlendFunc();
|
||||
|
||||
propFr.drawString(stack, "Changelog", 6, 6, 0xFFFFFF, false);
|
||||
double yoff = 6 + propFr.getMarginHeight();
|
||||
|
|
|
@ -13,7 +13,7 @@ public class Locker {
|
|||
});
|
||||
if (!result) {
|
||||
System.out.println("Please have discord open while launching the client");
|
||||
System.exit(1);
|
||||
Runtime.getRuntime().exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
"id": "shadow",
|
||||
"version": "${version}",
|
||||
"name": "Shadow client",
|
||||
"description": "incredibly real",
|
||||
"description": "minecraft exploit client for the latest version",
|
||||
"authors": [
|
||||
"0x150",
|
||||
"Saturn5VFive"
|
||||
"Saturn5VFive",
|
||||
"0x150"
|
||||
],
|
||||
"contributors": [
|
||||
"BBBBB"
|
||||
],
|
||||
"contributors": [],
|
||||
"contact": {},
|
||||
"license": "All-Rights-Reserved",
|
||||
"icon": "assets/shadow/icon.png",
|
||||
|
|
Loading…
Reference in a new issue