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

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