Skip to content

Commit

Permalink
Uploaded m6 August 2022 files with compiled jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
plaincube committed Aug 26, 2022
1 parent ef435b7 commit 97b23a0
Show file tree
Hide file tree
Showing 250 changed files with 22,398 additions and 3,830 deletions.
Binary file added DefiantCE 2022 m6 August.zip
Binary file not shown.
9,445 changes: 9,445 additions & 0 deletions m6/2022/latest/eclipse/.metadata/.log

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DefiantCE Developer's Notes

Gamrboy4life guide video leftoff:
https://youtu.be/mHxyZUVqa2Q?t=1221

24 August 2022, PlainCube Bastion
https://github.com/plaincube

Build status: Unpublished

DefiantCE m6, (C) Copyright August 2022 PlainCube Bastion, (C) Copyright June 2022 Bastion Gaming (Formerly)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package bastion.defiantce.command;

public abstract class Command {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package bastion.defiantce.event;

public class Event {

public boolean cancelled;
public EventType type;
public EventDirection direction;

public boolean isCancelled() {
return cancelled;
}

public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}

public EventType getType() {
return type;
}

public void setType(EventType type) {
this.type = type;
}

public EventDirection getDirection() {
return direction;
}

public void setDirection(EventDirection direction) {
this.direction = direction;
}

public boolean isPre() {
if(type == null) {
return false;
return EventType.PRE;
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package bastion.defiantce;

import java.util.concurrent.CopyOnWriteArrayList;

import org.lwjgl.opengl.Display;

import bastion.defiantce.command.CommandManager;
import bastion.defiantce.event.Event;
import bastion.defiantce.event.events.EventChat;
import bastion.defiantce.extensions.DiscordRP;
import bastion.defiantce.module.Module;
import bastion.defiantce.module.ModuleManager;
import de.Hero.clickgui.ClickGUI;
import de.Hero.settings.SettingsManager;

public class Defiant {

public static Defiant instance = new Defiant();

public static String name = "DefiantCE", version = "2022 m6", creator = "Cube";

public static ModuleManager moduleManager;

public static SettingsManager settingsManager;

public static ClickGUI clickGUI;

public static CommandManager cmdManager;

public static DiscordRP discordRP = new DiscordRP();

public static void startClient() {

settingsManager = new SettingsManager();

moduleManager = new ModuleManager();

clickGUI = new ClickGUI();

cmdManager = new CommandManager();

discordRP.start();

System.out.println("DefiantCE has started (main menu loaded).");

Display.setTitle(name + " " + version);

}

public static void onEvent(Event e) {
if(e instanceof EventChat) {

}
for(Module m : modules) {
if(!m.toggled)
continue;
m.onEvent(e);
}
}

public static DiscordRP getDiscordRP() {
return discordRP;
}

public static CopyOnWriteArrayList<Module> modules = new CopyOnWriteArrayList<Module>();

}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package bastion.defiantce.command.commands;

import org.lwjgl.input.Keyboard;

import bastion.defiantce.Defiant;
import bastion.defiantce.command.Command;
import bastion.defiantce.module.Module;

public class Bind extends Command {

public Bind() {
super("Bind", "Binds a module to a key on your keyboard.", "bind <module> <key> | bind clear", "b");
}

@Override
public void onCommand(String[] args, String command) {
if(args.length == 2) {
String moduleName = args[0];
String keyName = args[1];

boolean foundModule = false;

for(Module module : Defiant.instance.moduleManager.getModules()) {
if(module.name.equalsIgnoreCase(moduleName)) {
module.setKey(Keyboard.getKeyIndex(keyName.toUpperCase()));

Defiant.instance.moduleManager.addChatMessage(String.format("Bound %s to %s" + "!", module.name, Keyboard.getKeyName(module.getKey())));
foundModule = true;
break;
}
}

if(!foundModule) {
Defiant.instance.moduleManager.addChatMessage("Module not found!");
}

}

if(args.length == 1) {
if(args[0].equalsIgnoreCase("clear")) {
for(Module modules : Defiant.instance.moduleManager.getModules()) {
bastion.defiantce.module.ModuleManager.module.setKey(Keyboard.KEY_NONE);
}
}
}

}



}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package bastion.defiantce.event.events;

import bastion.defiantce.event.Event;

public class EventChat extends Event<EventChat> {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package bastion.defiantce;

import org.lwjgl.opengl.Display;

import bastion.defiantce.event.Event;
import bastion.defiantce.event.events.EventChat;
import bastion.defiantce.extensions.DiscordRP;
import bastion.defiantce.module.ModuleManager;
import de.Hero.clickgui.ClickGUI;
import de.Hero.settings.SettingsManager;
import bastion.defiantce.module.Module;

public class Defiant {

public static Defiant instance = new Defiant();

public static String name = "DefiantCE", version = "2022 m6", creator = "Cube";

public static ModuleManager moduleManager;

public static SettingsManager settingsManager;

public static ClickGUI clickGUI;

public static DiscordRP discordRP = new DiscordRP();

public static void startClient() {

settingsManager = new SettingsManager();

moduleManager = new ModuleManager();

clickGUI = new ClickGUI();

discordRP.start();

System.out.println("DCE: DefiantCE has started (main menu loaded).");

Display.setTitle(name + " " + version);

}

public static void onEvent(Event e) {
if(e instanceof EventChat) {

}
for(Module m : modules) {
if(!m.toggled)
continue;
m.onEvent(e);
}
}

public static DiscordRP getDiscordRP() {
return discordRP;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Gamrboy4life guide video leftoff:
https://youtu.be/mHxyZUVqa2Q?t=872
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package bastion.defiantce.command;

import java.util.ArrayList;
import java.util.List;

import bastion.defiantce.event.events.EventChat;

public class CommandManager {

public static List<Command> commands = new ArrayList<Command>();
public String prefix = "//..";

public CommandManager() {
setup();
}

public void setup() {

//Commands


}

public static List<Command> getCommands(){
return commands;
}

public void handleChat(EventChat event) {
String message = event.getMessage();

if(!message.startsWith(prefix))
return;

event.setCancelled(true);

boolean foundCommand = false;

if(message.split(" ").length > 0) {
String commandName = message.split(" ")[0];
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package bastion.defiantce.command;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public abstract class Command {

public String name, description, syntax;
public List<String> aliases = new ArrayList<String>();

public Command(String name, String description, String syntax, List... aliases) {
super();
this.name = name;
this.description = description;
this.syntax = syntax;
this.aliases = Arrays.asList(aliases);
}

}
Loading

0 comments on commit 97b23a0

Please sign in to comment.