diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-08 14:54:17 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-08 14:54:17 +0900 |
commit | 87e89fd42ca44400a3d3d3d5477cd1525b24d91a (patch) | |
tree | 02023a2650c2a9e4fd2d47f64cb91ec614a28556 /src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java | |
parent | 055520e1d8313a302f58babc6526d95bf22b471f (diff) | |
download | Skyblock-Dungeons-Guide-87e89fd42ca44400a3d3d3d5477cd1525b24d91a.tar.gz Skyblock-Dungeons-Guide-87e89fd42ca44400a3d3d3d5477cd1525b24d91a.tar.bz2 Skyblock-Dungeons-Guide-87e89fd42ca44400a3d3d3d5477cd1525b24d91a.zip |
authentication stuff and network loading
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java index c1d3512e..637ec398 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandLoadData.java @@ -5,6 +5,14 @@ import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry; import net.minecraft.command.CommandBase; import net.minecraft.command.ICommandSender; +import javax.crypto.BadPaddingException; +import javax.crypto.IllegalBlockSizeException; +import javax.crypto.NoSuchPaddingException; +import java.io.IOException; +import java.security.InvalidAlgorithmParameterException; +import java.security.InvalidKeyException; +import java.security.NoSuchAlgorithmException; + public class CommandLoadData extends CommandBase { @Override public String getCommandName() { @@ -18,7 +26,23 @@ public class CommandLoadData extends CommandBase { @Override public void processCommand(ICommandSender sender, String[] args) { - DungeonRoomInfoRegistry.loadAll(DungeonsGuide.getDungeonsGuide().getConfigDir()); + try { + DungeonRoomInfoRegistry.loadAll(); + } catch (BadPaddingException e) { + e.printStackTrace(); + } catch (InvalidAlgorithmParameterException e) { + e.printStackTrace(); + } catch (NoSuchAlgorithmException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } catch (IllegalBlockSizeException e) { + e.printStackTrace(); + } catch (NoSuchPaddingException e) { + e.printStackTrace(); + } catch (InvalidKeyException e) { + e.printStackTrace(); + } } @Override public int getRequiredPermissionLevel() { |