Fixed prefixes being sent when not supposed to, and updated the link in /plot plugin

This commit is contained in:
Sauilitired 2015-07-17 22:06:37 +02:00
parent 30b5d89dde
commit cfc976c2fc
2 changed files with 4 additions and 4 deletions

View File

@ -71,10 +71,10 @@ public class plugin extends SubCommand {
final ArrayList<String> strings = new ArrayList<String>() {
// $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)));
}
};

View File

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