From cfc976c2fcd33d50996d13ac9472ddd5002c6d9d Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Fri, 17 Jul 2015 22:06:37 +0200 Subject: [PATCH] Fixed prefixes being sent when not supposed to, and updated the link in /plot plugin --- .../java/com/intellectualcrafters/plot/commands/plugin.java | 4 ++-- .../java/com/intellectualcrafters/plot/util/MainUtil.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/intellectualcrafters/plot/commands/plugin.java b/src/main/java/com/intellectualcrafters/plot/commands/plugin.java index e24db29c5..627acef1f 100644 --- a/src/main/java/com/intellectualcrafters/plot/commands/plugin.java +++ b/src/main/java/com/intellectualcrafters/plot/commands/plugin.java @@ -71,10 +71,10 @@ public class plugin extends SubCommand { final ArrayList strings = new ArrayList() { // $2>> $1%id$2:$1%world $2- $1%owner { - add(String.format("$2>> $1&lPlotSquared $2(Version$2: $1%s$2)", PS.get().IMP.getVersion())); + add(String.format("$2>> $1&lPlotSquared $2($1Version$2: $1%s$2)", PS.get().IMP.getVersion())); add(String.format("$2>> $1&lAuthors$2: $1Citymonstret $2& $1Empire92")); add(String.format("$2>> $1&lWiki$2: $1https://github.com/IntellectualCrafters/PlotSquared/wiki")); - add(String.format("$2>> $1&lWebsite$2: $1http://plotsquared.co")); + add(String.format("$2>> $1&lWebsite$2: $1http://plotsquared.com")); add(String.format("$2>> $1&lNewest Version$2: $1" + (PS.get().update == null ? PS.get().IMP.getVersion() : PS.get().update))); } }; diff --git a/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java b/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java index 4215b6757..499dee7c6 100644 --- a/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java +++ b/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java @@ -1320,9 +1320,9 @@ public class MainUtil { public static boolean sendMessage(final PlotPlayer plr, String msg, final boolean prefix) { if ((msg.length() > 0) && !msg.equals("")) { if (plr == null) { - PS.log(C.PREFIX.s() + msg); + PS.log((prefix ? C.PREFIX.s() : "") + msg); } else { - plr.sendMessage(C.PREFIX.s() + C.color(msg)); + plr.sendMessage((prefix ? C.PREFIX.s() : "") + C.color(msg)); } } return true;