aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands
diff options
context:
space:
mode:
authorSychic <Sychic@github.com>2021-01-10 18:11:52 -0500
committerSychic <Sychic@github.com>2021-01-10 18:11:52 -0500
commitd20b0500e64a92d2db48d15d2ccf9f033b08f003 (patch)
tree9bd17e5487ca5745fad2ab8807d0d73c2c87c94b /src/main/java/me/Danker/commands
parent320dab0e8050e4d771c339c3c836035a0a8df990 (diff)
downloadSkyblockMod-d20b0500e64a92d2db48d15d2ccf9f033b08f003.tar.gz
SkyblockMod-d20b0500e64a92d2db48d15d2ccf9f033b08f003.tar.bz2
SkyblockMod-d20b0500e64a92d2db48d15d2ccf9f033b08f003.zip
Ghost party argument. Planning on changing to individual partying later when I can figure the logic out.
Diffstat (limited to 'src/main/java/me/Danker/commands')
-rw-r--r--src/main/java/me/Danker/commands/RepartyCommand.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/me/Danker/commands/RepartyCommand.java b/src/main/java/me/Danker/commands/RepartyCommand.java
index 92836c5..fd63f39 100644
--- a/src/main/java/me/Danker/commands/RepartyCommand.java
+++ b/src/main/java/me/Danker/commands/RepartyCommand.java
@@ -25,13 +25,11 @@ import java.util.regex.Pattern;
public class RepartyCommand extends CommandBase implements ICommand {
- public static double callTime = 0;
public static boolean gettingParty = false;
public static int Delimiter = 0;
public static boolean disbanding = false;
public static boolean inviting = false;
public static boolean failInviting = false;
- public static String currentMember;
public static List<String> party = new ArrayList<>();
public static List<String> repartyFailList = new ArrayList<>();
public static List<String> joinList = new ArrayList<>();
@@ -62,7 +60,6 @@ public class RepartyCommand extends CommandBase implements ICommand {
if (args.length > 0 && (args[0].startsWith("fail") || args[0].equals("f"))) {
partyThread = new Thread(() -> {
EntityPlayerSP player = Minecraft.getMinecraft().thePlayer;
- RepartyCommand.callTime = (double) System.currentTimeMillis() / 1000;
GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
@@ -94,22 +91,25 @@ public class RepartyCommand extends CommandBase implements ICommand {
return;
}
+ boolean ghost = args.length > 0 && (args[0].toLowerCase().equals("g") || args[0].toLowerCase().equals("ghost"));
- party.clear();
- repartyFailList.clear();
+ if(ghost){
+ party.clear();
+ repartyFailList.clear();
+ }
// MULTI THREAD DRIFTING
partyThread = new Thread(() -> {
EntityPlayerSP player = Minecraft.getMinecraft().thePlayer;
- RepartyCommand.callTime = (double) System.currentTimeMillis() / 1000;
- GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
try {
- player.sendChatMessage("/pl");
- gettingParty = true;
- while (gettingParty) {
- Thread.sleep(10);
+ if(ghost){
+ player.sendChatMessage("/pl");
+ gettingParty = true;
+ while (gettingParty) {
+ Thread.sleep(10);
+ }
}
if (party.size() == 0) return;
player.sendChatMessage("/p disband");