diff options
author | syeyoung <cyong06@naver.com> | 2021-05-09 12:38:55 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-09 12:38:55 +0900 |
commit | 6d8530ba74a1400ceb58351744557d1df09882e6 (patch) | |
tree | 8356f96874245ae5312342a4a29e02effd302511 /src/main | |
parent | d68ad453d35b17dd7fe87aa942004c3d625d406a (diff) | |
download | Skyblock-Dungeons-Guide-6d8530ba74a1400ceb58351744557d1df09882e6.tar.gz Skyblock-Dungeons-Guide-6d8530ba74a1400ceb58351744557d1df09882e6.tar.bz2 Skyblock-Dungeons-Guide-6d8530ba74a1400ceb58351744557d1df09882e6.zip |
add a thing to refresh cosmetics.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java index 48464b1f..5a09eab6 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java @@ -21,6 +21,7 @@ package kr.syeyoung.dungeonsguide.commands; import com.google.gson.JsonObject; import kr.syeyoung.dungeonsguide.DungeonsGuide; import kr.syeyoung.dungeonsguide.config.guiconfig.GuiConfig; +import kr.syeyoung.dungeonsguide.cosmetics.CosmeticsManager; import kr.syeyoung.dungeonsguide.dungeon.DungeonContext; import kr.syeyoung.dungeonsguide.dungeon.data.DungeonRoomInfo; import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint; @@ -358,6 +359,10 @@ public class CommandDungeonsGuide extends CommandBase { } } else if (args[0].equals("purge")) { ApiFetchur.purgeCache(); + CosmeticsManager cosmeticsManager = DungeonsGuide.getDungeonsGuide().getCosmeticsManager(); + cosmeticsManager.requestPerms(); + cosmeticsManager.requestCosmeticsList(); + cosmeticsManager.requestActiveCosmetics(); sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §fSuccessfully purged API Cache!")); } else { sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg §7-§fOpens configuration gui")); |