aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2021-11-27 23:31:50 +0900
committersyeyoung <cyoung06@naver.com>2021-11-27 23:31:50 +0900
commit3b1a4bce80b9634d05b519a74db8e5f12970a853 (patch)
treeefed3a91f334f3f1416e9b0bd01c66c7e79f3641 /src/main/java/kr/syeyoung/dungeonsguide/features
parentd239ae4d4748fc4867ab45a5cc7d42bfb5ac547c (diff)
downloadSkyblock-Dungeons-Guide-3b1a4bce80b9634d05b519a74db8e5f12970a853.tar.gz
Skyblock-Dungeons-Guide-3b1a4bce80b9634d05b519a74db8e5f12970a853.tar.bz2
Skyblock-Dungeons-Guide-3b1a4bce80b9634d05b519a74db8e5f12970a853.zip
- New Reparty using new PartyManager
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureAutoReparty.java2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureAutoAcceptReparty.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureAutoReparty.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureAutoReparty.java
index 67254ff1..ad6b7200 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureAutoReparty.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureAutoReparty.java
@@ -29,6 +29,6 @@ public class FeatureAutoReparty extends SimpleFeature implements DungeonQuitList
@Override
public void onDungeonQuit() {
- if (isEnabled()) DungeonsGuide.getDungeonsGuide().getCommandReparty().requestReparty();
+ if (isEnabled()) DungeonsGuide.getDungeonsGuide().getCommandReparty().requestReparty(true);
}
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureAutoAcceptReparty.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureAutoAcceptReparty.java
index 84c22353..3a469793 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureAutoAcceptReparty.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureAutoAcceptReparty.java
@@ -20,7 +20,9 @@ package kr.syeyoung.dungeonsguide.features.impl.etc;
import kr.syeyoung.dungeonsguide.SkyblockStatus;
import kr.syeyoung.dungeonsguide.DungeonsGuide;
+import kr.syeyoung.dungeonsguide.chat.ChatProcessor;
import kr.syeyoung.dungeonsguide.features.SimpleFeature;
+import kr.syeyoung.dungeonsguide.features.impl.party.api.ApiFetchur;
import kr.syeyoung.dungeonsguide.features.listener.ChatListener;
import kr.syeyoung.dungeonsguide.utils.TextUtils;
import net.minecraft.client.Minecraft;
@@ -60,7 +62,7 @@ public class FeatureAutoAcceptReparty extends SimpleFeature implements ChatListe
}
if (equals && isEnabled()) {
- Minecraft.getMinecraft().thePlayer.sendChatMessage("/p join "+lastDisband);
+ ChatProcessor.INSTANCE.addToChatQueue("/p accept " + lastDisband, () -> {}, true);
lastDisband = null;
}
}