From 04c2287e7d47db44c5301d8121140ddd36a8e6dd Mon Sep 17 00:00:00 2001 From: Ryan Wild Date: Sun, 14 Oct 2018 23:02:26 +0200 Subject: [PATCH 1/3] POM Version updates & General fixes to resolve build Swithed over to using TF-WorldEdit from Telesphoreo while we get the official repo up to date which also allowed some technical debt to be cleaned up. Fixed other build issues in the process. --- nb-configuration.xml | 1 - pom.xml | 45 ++++++++++++++----- .../bridge/WorldEditListener.java | 13 ++---- .../util/DepreciationAggregator.java | 2 +- 4 files changed, 38 insertions(+), 23 deletions(-) diff --git a/nb-configuration.xml b/nb-configuration.xml index c64a9a2..35e184b 100644 --- a/nb-configuration.xml +++ b/nb-configuration.xml @@ -14,6 +14,5 @@ Any value defined here will override the pom.xml file value but is only applicable to the current project. --> true - JDK_1.8 diff --git a/pom.xml b/pom.xml index 703906c..53bfefa 100644 --- a/pom.xml +++ b/pom.xml @@ -43,21 +43,42 @@ - - ess-repo - http://repo.ess3.net - jitpack.io https://jitpack.io + + + ess-repo + http://repo.ess3.net/content/groups/essentials + + true + + + true + + + spigot-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + true + + + true + + sk89q-snapshots http://maven.sk89q.com/artifactory/repo + + true + + + true + @@ -83,7 +104,7 @@ org.spigotmc spigot-api - 1.12-pre5-SNAPSHOT + 1.12.2-R0.1-SNAPSHOT compile @@ -104,19 +125,21 @@ Essentials 2.13.1 - + + + - com.github.TotalFreedom.TF-WorldEdit + com.github.Telesphoreo.TF-WorldEdit worldedit-bukkit - 6.1.0-TF + 7.0.0-TF-SNAPSHOT-R0.2 - com.github.TotalFreedom.TF-WorldEdit + com.github.Telesphoreo.TF-WorldEdit worldedit-core - 6.1.0-TF + 7.0.0-TF-SNAPSHOT-R0.2 - + diff --git a/src/main/java/me/totalfreedom/totalfreedommod/bridge/WorldEditListener.java b/src/main/java/me/totalfreedom/totalfreedommod/bridge/WorldEditListener.java index ecf398d..67d5ddd 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/bridge/WorldEditListener.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/bridge/WorldEditListener.java @@ -2,16 +2,9 @@ package me.totalfreedom.totalfreedommod.bridge; import me.totalfreedom.totalfreedommod.TotalFreedomMod; import me.totalfreedom.totalfreedommod.util.FUtil; -// These imports are not in the latest releases of WorldEdit, and the new versions of WorldEdit do not build properly. This will need to be reverted once the new WorldEdit builds are building properly. -// -//import me.totalfreedom.worldedit.LimitChangedEvent; -//import me.totalfreedom.worldedit.SelectionChangedEvent; -// -//The following two imports are a temporary measure as mentioned above. -// -import me.StevenLawson.worldedit.LimitChangedEvent; -import me.StevenLawson.worldedit.SelectionChangedEvent; -// +import me.totalfreedom.worldedit.LimitChangedEvent; +import me.totalfreedom.worldedit.SelectionChangedEvent; + import net.pravian.aero.component.PluginListener; import org.bukkit.ChatColor; import org.bukkit.entity.Player; diff --git a/src/main/java/me/totalfreedom/totalfreedommod/util/DepreciationAggregator.java b/src/main/java/me/totalfreedom/totalfreedommod/util/DepreciationAggregator.java index a404dea..52da7eb 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/util/DepreciationAggregator.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/util/DepreciationAggregator.java @@ -13,7 +13,7 @@ import org.bukkit.material.MaterialData; public class DepreciationAggregator { - public static Block getTargetBlock(LivingEntity entity, HashSet transparent, int maxDistance) + public static Block getTargetBlock(LivingEntity entity, HashSet transparent, int maxDistance) { return entity.getTargetBlock(transparent, maxDistance); } From 7a7b332a6d6a38cdd30203477aa845f4ddb54716 Mon Sep 17 00:00:00 2001 From: Ryan Wild Date: Mon, 15 Oct 2018 15:38:43 +0200 Subject: [PATCH 2/3] Removed extra whitespace from POM --- pom.xml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 53bfefa..15371cf 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,6 @@ ${buildAuthor} ${buildHead} ${project.name} - dd/MM/yyyy hh:mm aa @@ -47,7 +46,7 @@ jitpack.io https://jitpack.io - + ess-repo http://repo.ess3.net/content/groups/essentials @@ -69,7 +68,7 @@ true - + sk89q-snapshots http://maven.sk89q.com/artifactory/repo @@ -125,9 +124,9 @@ Essentials 2.13.1 - + - + com.github.Telesphoreo.TF-WorldEdit worldedit-bukkit @@ -139,7 +138,7 @@ worldedit-core 7.0.0-TF-SNAPSHOT-R0.2 - + @@ -151,7 +150,6 @@ - @@ -189,7 +187,7 @@ - + org.apache.maven.plugins @@ -215,7 +213,6 @@ - From 7af9e8b61e2dc8b72f81d8f2ba3aecbd85868487 Mon Sep 17 00:00:00 2001 From: Ryan Wild Date: Mon, 15 Oct 2018 19:23:39 +0200 Subject: [PATCH 3/3] Switched branch back to devel The 1.12 branch updated the readme, just rolling it back. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 42a9f08..c78f296 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # TotalFreedomMod # -[![Build Status](https://travis-ci.org/TotalFreedom/TotalFreedomMod.svg?branch=TFM1.12-Alpha)](https://travis-ci.org/TotalFreedom/TotalFreedomMod) +[![Build Status](https://travis-ci.org/TotalFreedom/TotalFreedomMod.svg?branch=devel)](https://travis-ci.org/TotalFreedom/TotalFreedomMod) TotalFreedomMod is a CraftBukkit server plugin designed primarily to support the [Official TotalFreedom Minecraft Server](http://totalfreedom.me/). However, you are more than welcome to adapt the source for your own server.