diff --git a/SpigotCore_12/pom.xml b/SpigotCore_12/pom.xml
index 82c5e9d..eb4680f 100644
--- a/SpigotCore_12/pom.xml
+++ b/SpigotCore_12/pom.xml
@@ -29,8 +29,8 @@
steamwar
- Spigot-1.12
- 1.0
+ Spigot
+ 1.12
provided
diff --git a/SpigotCore_14/pom.xml b/SpigotCore_14/pom.xml
index 37ebf61..9b030de 100644
--- a/SpigotCore_14/pom.xml
+++ b/SpigotCore_14/pom.xml
@@ -29,8 +29,8 @@
steamwar
- Spigot-1.14
- 1.0
+ Spigot
+ 1.14
provided
diff --git a/SpigotCore_8/pom.xml b/SpigotCore_8/pom.xml
new file mode 100644
index 0000000..5f39805
--- /dev/null
+++ b/SpigotCore_8/pom.xml
@@ -0,0 +1,37 @@
+
+
+ 4.0.0
+
+
+ steamwar
+ SpigotCore
+ 2.0
+
+
+ SpigotCore_8
+ 2.0
+
+
+ src
+
+
+ src
+
+ **/*.java
+ **/*.kt
+
+
+
+
+
+
+
+ steamwar
+ Spigot
+ 1.8
+ provided
+
+
+
\ No newline at end of file
diff --git a/SpigotCore_8/src/de/steamwar/inventory/SWInventory_v8.java b/SpigotCore_8/src/de/steamwar/inventory/SWInventory_v8.java
new file mode 100644
index 0000000..51c13bc
--- /dev/null
+++ b/SpigotCore_8/src/de/steamwar/inventory/SWInventory_v8.java
@@ -0,0 +1,13 @@
+package de.steamwar.inventory;
+
+import org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom;
+import org.bukkit.entity.Player;
+import org.bukkit.inventory.Inventory;
+
+class SWInventory_v8 {
+ private SWInventory_v8(){}
+
+ static Inventory get(Player player, int size, String title){
+ return new CraftInventoryCustom(player, size, title);
+ }
+}
diff --git a/SpigotCore_Main/pom.xml b/SpigotCore_Main/pom.xml
index 64c843d..884634a 100644
--- a/SpigotCore_Main/pom.xml
+++ b/SpigotCore_Main/pom.xml
@@ -48,10 +48,16 @@
steamwar
- Spigot-1.12
- 1.0
+ Spigot
+ 1.12
provided
+
+ steamwar
+ SpigotCore_8
+ 2.0
+ compile
+
steamwar
SpigotCore_12
diff --git a/SpigotCore_Main/src/de/steamwar/core/Core.java b/SpigotCore_Main/src/de/steamwar/core/Core.java
index fc51e6f..21894c0 100644
--- a/SpigotCore_Main/src/de/steamwar/core/Core.java
+++ b/SpigotCore_Main/src/de/steamwar/core/Core.java
@@ -19,6 +19,8 @@ public class Core extends JavaPlugin{
version = 10;
else if(packageName.contains("1_9"))
version = 9;
+ else if(packageName.contains("1_8"))
+ version = 8;
else
version = 12;
}
diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java
index 74b346c..0c7e621 100644
--- a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java
+++ b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java
@@ -25,6 +25,9 @@ public class SWInventory implements Listener {
callbacks = new HashMap<>();
player = p;
switch(Core.getVersion()){
+ case 8:
+ inventory = SWInventory_v8.get(p, size, t);
+ break;
case 14:
inventory = SWInventory_v14.get(p, size, t);
break;
diff --git a/pom.xml b/pom.xml
index 44e9722..fc30e8b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,7 @@
+ SpigotCore_8
SpigotCore_12
SpigotCore_14
SpigotCore_Main