From 7fb06d624b593ca92df97992cca1995c578377f2 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 27 Jul 2015 16:20:24 +1000 Subject: [PATCH] Add sponge / bukkit jars --- pom.xml | 28 +++++++++++++++++++ .../com/intellectualcrafters/plot/PS.java | 2 +- .../plot/util/StringMan.java | 5 ++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ea341c1d7..24fd3ab26 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,34 @@ + + + maven-jar-plugin + + + bukkit + jar + package + + bukkit + + **/com/plotsquared/sponge/* + + + + + sponge + jar + package + + sponge + + **/com/plotsquared/bukkit/* + + + + + maven-compiler-plugin 2.3.2 diff --git a/src/main/java/com/intellectualcrafters/plot/PS.java b/src/main/java/com/intellectualcrafters/plot/PS.java index 33b66f9e1..16c434d16 100644 --- a/src/main/java/com/intellectualcrafters/plot/PS.java +++ b/src/main/java/com/intellectualcrafters/plot/PS.java @@ -201,7 +201,7 @@ public class PS { log("&8 - &3Or: &7" + url); } else if (LAST_VERSION != null && !VERSION.equals(LAST_VERSION)) { - log("&aThanks for updating from: " + LAST_VERSION + " to " + VERSION); + log("&aThanks for updating from: " + LAST_VERSION + " to " + StringMan.join(VERSION, ".")); } } }); diff --git a/src/main/java/com/intellectualcrafters/plot/util/StringMan.java b/src/main/java/com/intellectualcrafters/plot/util/StringMan.java index 8efa09557..48088f940 100644 --- a/src/main/java/com/intellectualcrafters/plot/util/StringMan.java +++ b/src/main/java/com/intellectualcrafters/plot/util/StringMan.java @@ -1,5 +1,6 @@ package com.intellectualcrafters.plot.util; +import java.util.Arrays; import java.util.Collection; import java.util.Map; import java.util.Map.Entry; @@ -160,6 +161,10 @@ public class StringMan { return result.toString(); } + public static String join(int[] array, String delimiter) { + return join(Arrays.asList(array), delimiter); + } + public static boolean isEqual(String a, String b ) { return (a == b || (a.length() == b.length() && a.hashCode() == b.hashCode() && a.equals(b))); }