Kaynağa Gözat

Removed nms and readded support of actionbar using api present since at least 1.12

Yannick Lamprecht 3 yıl önce
ebeveyn
işleme
5d50ecdbaa
34 değiştirilmiş dosya ile 5 ekleme ve 1124 silme
  1. 0 75
      Plugin/pom.xml
  2. 4 17
      Plugin/src/main/java/de/Linus122/TimeIsMoney/Main.java
  3. 1 0
      Tools/src/main/java/de/Linus122/TimeIsMoney/tools/ActionBarUtils.java
  4. 0 15
      pom.xml
  5. 0 41
      v1_10_R1/pom.xml
  6. 0 27
      v1_10_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_10_R1/NBTUtils.java
  7. 0 41
      v1_11_R1/pom.xml
  8. 0 27
      v1_11_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_11_R1/NBTUtils.java
  9. 0 41
      v1_12_R1/pom.xml
  10. 0 28
      v1_12_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_12_R1/NBTUtils.java
  11. 0 41
      v1_13_R1/pom.xml
  12. 0 28
      v1_13_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_13_R1/NBTUtils.java
  13. 0 41
      v1_13_R2/pom.xml
  14. 0 28
      v1_13_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_13_R2/NBTUtils.java
  15. 0 41
      v1_14_R1/pom.xml
  16. 0 28
      v1_14_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_14_R1/NBTUtils.java
  17. 0 41
      v1_15_R1/pom.xml
  18. 0 28
      v1_15_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_15_R1/NBTUtils.java
  19. 0 35
      v1_16_R1/pom.xml
  20. 0 30
      v1_16_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R1/NBTUtils.java
  21. 0 35
      v1_16_R2/pom.xml
  22. 0 30
      v1_16_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R2/NBTUtils.java
  23. 0 35
      v1_16_R3/pom.xml
  24. 0 30
      v1_16_R3/src/main/java/de/Linus122/TimeIsMoney/version/v1_16_R3/NBTUtils.java
  25. 0 41
      v1_8_R1/pom.xml
  26. 0 28
      v1_8_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R1/NBTUtils.java
  27. 0 41
      v1_8_R2/pom.xml
  28. 0 27
      v1_8_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R2/NBTUtils.java
  29. 0 41
      v1_8_R3/pom.xml
  30. 0 27
      v1_8_R3/src/main/java/de/Linus122/TimeIsMoney/version/v1_8_R3/NBTUtils.java
  31. 0 41
      v1_9_R1/pom.xml
  32. 0 27
      v1_9_R1/src/main/java/de/Linus122/TimeIsMoney/version/v1_9_R1/NBTUtils.java
  33. 0 41
      v1_9_R2/pom.xml
  34. 0 27
      v1_9_R2/src/main/java/de/Linus122/TimeIsMoney/version/v1_9_R2/NBTUtils.java

+ 0 - 75
Plugin/pom.xml

@@ -91,80 +91,5 @@
 			<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>
-		</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 - 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.

+ 0 - 15
pom.xml

@@ -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>

+ 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);
-	}
-}