Fix thrown bug
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
48a6c8dee6
Commit
144ee663de
@ -1,6 +1,5 @@
|
|||||||
package de.steamwar.schematicsystem;
|
package de.steamwar.schematicsystem;
|
||||||
|
|
||||||
import de.steamwar.sql.NoClipboardException;
|
|
||||||
import de.steamwar.sql.Schematic;
|
import de.steamwar.sql.Schematic;
|
||||||
import de.steamwar.sql.SchematicType;
|
import de.steamwar.sql.SchematicType;
|
||||||
import org.bukkit.event.EventHandler;
|
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.PlayerJoinEvent;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
public class ClipboardListener implements Listener {
|
public class ClipboardListener implements Listener {
|
||||||
@ -40,7 +38,7 @@ public class ClipboardListener implements Listener {
|
|||||||
|
|
||||||
try{
|
try{
|
||||||
schematic.saveFromPlayer(e.getPlayer());
|
schematic.saveFromPlayer(e.getPlayer());
|
||||||
} catch (IOException | NoClipboardException ex) {
|
} catch (Exception ex) {
|
||||||
if(newSchem)
|
if(newSchem)
|
||||||
schematic.remove();
|
schematic.remove();
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren