浏览代码

Merge pull request #95 from Craftstuebchen/master

Multiversion support from 1.9 onwards without NMS
MasterCake 3 年之前
父节点
当前提交
6d0155ec95
共有 35 个文件被更改,包括 20 次插入1139 次删除
  1. 9 84
      Plugin/pom.xml
  2. 4 17
      Plugin/src/main/java/de/Linus122/TimeIsMoney/Main.java
  3. 1 1
      Tools/pom.xml
  4. 1 0
      Tools/src/main/java/de/Linus122/TimeIsMoney/tools/ActionBarUtils.java
  5. 5 20
      pom.xml
  6. 0 41
      v1_10_R1/pom.xml
  7. 0 27
      v1_10_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_10_R1/NBTUtils.java
  8. 0 41
      v1_11_R1/pom.xml
  9. 0 27
      v1_11_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_11_R1/NBTUtils.java
  10. 0 41
      v1_12_R1/pom.xml
  11. 0 28
      v1_12_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_12_R1/NBTUtils.java
  12. 0 41
      v1_13_R1/pom.xml
  13. 0 28
      v1_13_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_13_R1/NBTUtils.java
  14. 0 41
      v1_13_R2/pom.xml
  15. 0 28
      v1_13_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_13_R2/NBTUtils.java
  16. 0 41
      v1_14_R1/pom.xml
  17. 0 28
      v1_14_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_14_R1/NBTUtils.java
  18. 0 41
      v1_15_R1/pom.xml
  19. 0 28
      v1_15_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_15_R1/NBTUtils.java
  20. 0 35
      v1_16_R1/pom.xml
  21. 0 30
      v1_16_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R1/NBTUtils.java
  22. 0 35
      v1_16_R2/pom.xml
  23. 0 30
      v1_16_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R2/NBTUtils.java
  24. 0 35
      v1_16_R3/pom.xml
  25. 0 30
      v1_16_R3/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R3/NBTUtils.java
  26. 0 41
      v1_8_R1/pom.xml
  27. 0 28
      v1_8_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R1/NBTUtils.java
  28. 0 41
      v1_8_R2/pom.xml
  29. 0 27
      v1_8_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R2/NBTUtils.java
  30. 0 41
      v1_8_R3/pom.xml
  31. 0 27
      v1_8_R3/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R3/NBTUtils.java
  32. 0 41
      v1_9_R1/pom.xml
  33. 0 27
      v1_9_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_9_R1/NBTUtils.java
  34. 0 41
      v1_9_R2/pom.xml
  35. 0 27
      v1_9_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_9_R2/NBTUtils.java

+ 9 - 84
Plugin/pom.xml

@@ -7,7 +7,7 @@
 	<parent>
 		<groupId>de.Linus122.TimeIsMoney</groupId>
 		<artifactId>parent</artifactId>
-		<version>1.9.6.18</version>
+		<version>2.0.0</version>
 		<relativePath>../pom.xml</relativePath>
 	</parent>
 
@@ -33,7 +33,7 @@
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-shade-plugin</artifactId>
-				<version>2.4.3</version>
+				<version>3.2.4</version>
 				<executions>
 					<execution>
 						<phase>package</phase>
@@ -69,12 +69,12 @@
 			<version>1.14.1-R0.1-SNAPSHOT</version>
 			<scope>provided</scope>
 		</dependency>
-		<dependency>
-			<groupId>net.milkbowl.vault</groupId>
-			<artifactId>VaultAPI</artifactId>
-			<version>1.6</version>
-			<scope>provided</scope>
-		</dependency>
+        <dependency>
+            <groupId>com.github.MilkBowl</groupId>
+            <artifactId>VaultAPI</artifactId>
+            <version>1.7</version>
+            <scope>provided</scope>
+        </dependency>
 		<dependency>
 			<groupId>net.ess3</groupId>
 			<artifactId>EssentialsX</artifactId>
@@ -89,82 +89,7 @@
 		<dependency>
 			<groupId>de.Linus122.TimeIsMoney</groupId>
 			<artifactId>Tools</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_8_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_8_R2</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_8_R3</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_9_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_9_R2</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_10_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_11_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_12_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_13_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_13_R2</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_14_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_15_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_16_R1</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_16_R2</artifactId>
-			<version>1.9.6.18</version>
-		</dependency>
-		<dependency>
-			<groupId>de.Linus122.TimeIsMoney</groupId>
-			<artifactId>v1_16_R3</artifactId>
-			<version>1.9.6.18</version>
+			<version>${project.version}</version>
 		</dependency>
 	</dependencies>
 </project>

+ 4 - 17
Plugin/src/main/java/de/Linus122/TimeIsMoney/Main.java

@@ -2,6 +2,8 @@ package de.Linus122.TimeIsMoney;
 
 import com.earth2me.essentials.Essentials;
 import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
+import net.md_5.bungee.api.ChatMessageType;
+import net.md_5.bungee.api.chat.TextComponent;
 import net.milkbowl.vault.economy.EconomyResponse;
 import net.milkbowl.vault.economy.EconomyResponse.ResponseType;
 
@@ -170,23 +172,8 @@ public class Main extends JavaPlugin {
 		PluginData.loadData();
 		
 		loadPayouts();
-		
-		String packageName = this.getServer().getClass().getPackage().getName();
-		// Get full package string of CraftServer.
-		// org.bukkit.craftbukkit.version
-		String Bukkitversion = packageName.substring(packageName.lastIndexOf('.') + 1);
-		// Get the last element of the package
-		try {
-			final Class<?> clazz = Class.forName("de.Linus122.TimeIsMoney.version." + Bukkitversion + ".NBTUtils");
-			// Check if we have a NMSHandler class at that location.
-			if (ActionBarUtils.class.isAssignableFrom(clazz)) { // Make sure it actually implements NMS
-				actionBarUtils = (ActionBarUtils) clazz.getConstructor().newInstance(); // Set our handler
-			}
-		} catch (final Exception e) {
-			this.getLogger().severe("Actionbars are not supported on your spigot version, sorry.");
-			useActionbars = false;
-			return;
-		}
+
+		actionBarUtils = ((p, message) -> p.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(message)));
 		
 		if (Bukkit.getPluginManager().isPluginEnabled("Essentials")) {
 			clogger.sendMessage("Time is Money: Essentials found. Hook in it -> Will use Essentials's AFK feature if afk is enabled.");

+ 1 - 1
Tools/pom.xml

@@ -7,7 +7,7 @@
     <parent>
         <groupId>de.Linus122.TimeIsMoney</groupId>
         <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
+        <version>2.0.0</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 

+ 1 - 0
Tools/src/main/java/de/Linus122/TimeIsMoney/tools/ActionBarUtils.java

@@ -8,6 +8,7 @@ import org.bukkit.entity.Player;
  * @author Linus122
  * @since 1.9.6.1
  */
+@FunctionalInterface
 public interface ActionBarUtils {
 	/**
 	 * Sends an actionbar message to the specified player.

+ 5 - 20
pom.xml

@@ -6,7 +6,7 @@
 
     <groupId>de.Linus122.TimeIsMoney</groupId>
     <artifactId>parent</artifactId>
-    <version>1.9.6.18</version>
+    <version>2.0.0</version>
     <name>TimeIsMoney Parent</name>
     <url>https://www.spigotmc.org/resources/time-is-money.12409/</url>
     <packaging>pom</packaging>
@@ -18,21 +18,6 @@
     <modules>
         <module>Plugin</module>
         <module>Tools</module>
-        <module>v1_8_R1</module>
-        <module>v1_8_R2</module>
-        <module>v1_8_R3</module>
-        <module>v1_9_R1</module>
-        <module>v1_9_R2</module>
-        <module>v1_10_R1</module>
-        <module>v1_11_R1</module>
-        <module>v1_12_R1</module>
-        <module>v1_13_R1</module>
-        <module>v1_13_R2</module>
-        <module>v1_14_R1</module>
-        <module>v1_15_R1</module>
-        <module>v1_16_R1</module>
-        <module>v1_16_R2</module>
-        <module>v1_16_R3</module>
     </modules>
 
     <repositories>
@@ -41,8 +26,8 @@
             <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
         </repository>
         <repository>
-            <id>vault-repo</id>
-            <url>http://nexus.hc.to/content/repositories/pub_releases</url>
+            <id>jitpack.io</id>
+            <url>https://jitpack.io</url>
         </repository>
         <repository>
             <id>ess-repo</id>
@@ -62,7 +47,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.1</version>
+                <version>3.8.1</version>
                 <configuration>
                     <source>1.8</source>
                     <target>1.8</target>
@@ -71,7 +56,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jar-plugin</artifactId>
-                <version>2.4</version>
+                <version>2.5</version>
                 <configuration>
                     <archive>
                         <addMavenDescriptor>false</addMavenDescriptor>

+ 0 - 41
v1_10_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_10_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_10_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.10.2-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.10.2-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 27
v1_10_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_10_R1/NBTUtils.java

@@ -1,27 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_10_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_10_R1.IChatBaseComponent;
-import net.minecraft.server.v1_10_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_10_R1.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_11_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_11_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_11_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.11-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.11-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 27
v1_11_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_11_R1/NBTUtils.java

@@ -1,27 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_11_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_11_R1.IChatBaseComponent;
-import net.minecraft.server.v1_11_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_11_R1.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_12_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_12_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_12_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.12.2-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.12.2-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 28
v1_12_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_12_R1/NBTUtils.java

@@ -1,28 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_12_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_12_R1.ChatMessageType;
-import net.minecraft.server.v1_12_R1.IChatBaseComponent;
-import net.minecraft.server.v1_12_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_12_R1.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_13_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_13_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_13_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.13-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.13-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 28
v1_13_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_13_R1/NBTUtils.java

@@ -1,28 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_13_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_13_R1.ChatMessageType;
-import net.minecraft.server.v1_13_R1.IChatBaseComponent;
-import net.minecraft.server.v1_13_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_13_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_13_R1.
- *
- * @author Linus122
- * @since 1.9.6.4
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_13_R2/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_13_R2</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_13_R2</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.13.1-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.13.1-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 28
v1_13_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_13_R2/NBTUtils.java

@@ -1,28 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_13_R2;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_13_R2.ChatMessageType;
-import net.minecraft.server.v1_13_R2.IChatBaseComponent;
-import net.minecraft.server.v1_13_R2.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_13_R2.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_13_R1.
- *
- * @author Linus122
- * @since 1.9.6.4
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_14_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_14_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_14_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.14.1-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.14.1-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 28
v1_14_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_14_R1/NBTUtils.java

@@ -1,28 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_14_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_14_R1.ChatMessageType;
-import net.minecraft.server.v1_14_R1.IChatBaseComponent;
-import net.minecraft.server.v1_14_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_14_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_14_R1.
- *
- * @author Linus122
- * @since 1.9.6.6
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_15_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_15_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_15_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.15-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.15-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 28
v1_15_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_15_R1/NBTUtils.java

@@ -1,28 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_15_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_15_R1.ChatMessageType;
-import net.minecraft.server.v1_15_R1.IChatBaseComponent;
-import net.minecraft.server.v1_15_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_15_R1.
- *
- * @author Linus122
- * @since 1.9.6.11
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 35
v1_16_R1/pom.xml

@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_16_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_16_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot</artifactId>
-            <version>1.16.1-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 30
v1_16_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R1/NBTUtils.java

@@ -1,30 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_16_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_16_R1.ChatMessageType;
-import net.minecraft.server.v1_16_R1.IChatBaseComponent;
-import net.minecraft.server.v1_16_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_16_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-import java.util.UUID;
-
-/**
- * NBT Utils for v1_16_R1.
- *
- * @author Linus122
- * @since 1.9.6.11
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO, UUID.randomUUID());
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 35
v1_16_R2/pom.xml

@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_16_R2</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_16_R2</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot</artifactId>
-            <version>1.16.2-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 30
v1_16_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R2/NBTUtils.java

@@ -1,30 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_16_R2;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_16_R2.ChatMessageType;
-import net.minecraft.server.v1_16_R2.IChatBaseComponent;
-import net.minecraft.server.v1_16_R2.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_16_R2.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-import java.util.UUID;
-
-/**
- * NBT Utils for v1_16_R2.
- *
- * @author Linus122
- * @since 1.9.6.12
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO, UUID.randomUUID());
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 35
v1_16_R3/pom.xml

@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_16_R3</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_16_R3</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot</artifactId>
-            <version>1.16.4-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 30
v1_16_R3/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R3/NBTUtils.java

@@ -1,30 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_16_R3;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_16_R3.ChatMessageType;
-import net.minecraft.server.v1_16_R3.IChatBaseComponent;
-import net.minecraft.server.v1_16_R3.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-import java.util.UUID;
-
-/**
- * NBT Utils for v1_16_R3.
- *
- * @author Linus122
- * @since 1.9.6.18
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, ChatMessageType.GAME_INFO, UUID.randomUUID());
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_8_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_8_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_8_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.8-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.8-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 28
v1_8_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R1/NBTUtils.java

@@ -1,28 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_8_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_8_R1.ChatSerializer;
-import net.minecraft.server.v1_8_R1.IChatBaseComponent;
-import net.minecraft.server.v1_8_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_8_R1.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_8_R2/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_8_R2</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_8_R2</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.8.3-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.8.3-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 27
v1_8_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R2/NBTUtils.java

@@ -1,27 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_8_R2;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_8_R2.IChatBaseComponent;
-import net.minecraft.server.v1_8_R2.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_8_R2.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_8_R2.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_8_R3/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_8_R3</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_8_R3</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.8.8-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.8.8-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 27
v1_8_R3/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R3/NBTUtils.java

@@ -1,27 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_8_R3;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_8_R3.IChatBaseComponent;
-import net.minecraft.server.v1_8_R3.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_8_R3.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_9_R1/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_9_R1</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_9_R1</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.9-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.9-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 27
v1_9_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_9_R1/NBTUtils.java

@@ -1,27 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_9_R1;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_9_R1.IChatBaseComponent;
-import net.minecraft.server.v1_9_R1.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_9_R1.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}

+ 0 - 41
v1_9_R2/pom.xml

@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>de.Linus122.TimeIsMoney</groupId>
-        <artifactId>parent</artifactId>
-        <version>1.9.6.18</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <name>TimeIsMoney v1_9_R2</name>
-    <packaging>jar</packaging>
-    <artifactId>v1_9_R2</artifactId>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.spigotmc</groupId>
-            <artifactId>spigot-api</artifactId>
-            <version>1.9.4-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.bukkit</groupId>
-            <artifactId>craftbukkit</artifactId>
-            <version>1.9.4-R0.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>de.Linus122.TimeIsMoney</groupId>
-            <artifactId>Tools</artifactId>
-            <version>1.9.6.18</version>
-        </dependency>
-    </dependencies>
-</project>

+ 0 - 27
v1_9_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_9_R2/NBTUtils.java

@@ -1,27 +0,0 @@
-package de.Linus122.TimeIsMoney.version.v1_9_R2;
-
-import de.Linus122.TimeIsMoney.tools.ActionBarUtils;
-import net.minecraft.server.v1_9_R2.IChatBaseComponent;
-import net.minecraft.server.v1_9_R2.PacketPlayOutChat;
-import org.bukkit.craftbukkit.v1_9_R2.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-
-import static de.Linus122.TimeIsMoney.tools.Utils.CC;
-
-/**
- * NBT Utils for v1_9_R2.
- *
- * @author Linus122
- * @since 1.9.6.1
- */
-public class NBTUtils implements ActionBarUtils {
-	/**
-	 * {@inheritDoc}
-	 */
-	@Override
-	public void sendActionBarMessage(Player p, String message) {
-		IChatBaseComponent icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + CC(message) + "\"}");
-		PacketPlayOutChat bar = new PacketPlayOutChat(icbc, (byte) 2);
-		((CraftPlayer) p).getHandle().playerConnection.sendPacket(bar);
-	}
-}