From 144ee663ded71dadc22910b1fae7da2f847b31a9 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 11 Jul 2020 07:57:31 +0200 Subject: [PATCH] Fix thrown bug Signed-off-by: Lixfel --- .../src/de/steamwar/schematicsystem/ClipboardListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/ClipboardListener.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/ClipboardListener.java index b610ac8..c659737 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/ClipboardListener.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/ClipboardListener.java @@ -1,6 +1,5 @@ package de.steamwar.schematicsystem; -import de.steamwar.sql.NoClipboardException; import de.steamwar.sql.Schematic; import de.steamwar.sql.SchematicType; import org.bukkit.event.EventHandler; @@ -8,7 +7,6 @@ import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerQuitEvent; -import java.io.IOException; import java.util.UUID; public class ClipboardListener implements Listener { @@ -40,7 +38,7 @@ public class ClipboardListener implements Listener { try{ schematic.saveFromPlayer(e.getPlayer()); - } catch (IOException | NoClipboardException ex) { + } catch (Exception ex) { if(newSchem) schematic.remove(); }