From d0a0a3a53dc0cead7de5502275ccc623ba4acb47 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 5 Dec 2019 11:28:09 +0100 Subject: [PATCH] Adding funktion to check pasteablity --- SpigotCore_Main/src/de/steamwar/sql/Schematic.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Schematic.java b/SpigotCore_Main/src/de/steamwar/sql/Schematic.java index fa876c6..7fd5946 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Schematic.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Schematic.java @@ -147,6 +147,10 @@ public class Schematic { updateDB(); } + public boolean availible(){ + return Core.getVersion() > 12 || !schemFormat; + } + public Clipboard load() throws WrongVersionException, IOException, NoClipboardException { if(Core.getVersion() <= 12 && schemFormat) throw new WrongVersionException();