This commit is contained in:
boy0001 2014-11-07 08:04:41 +11:00
parent a30e8eec9a
commit 627400558b
2 changed files with 5 additions and 7 deletions

View File

@ -274,12 +274,6 @@ public class PlayerFunctions {
* Caption to send
*/
public static void sendMessage(final Player plr, final C c, final String... args) {
if (plr == null) {
PlotMain.sendConsoleSenderMessage(c);
return;
}
if (c.s().length() < 1) {
return;
}
@ -289,6 +283,10 @@ public class PlayerFunctions {
msg = msg.replaceFirst("%s", str);
}
}
if (plr == null) {
PlotMain.sendConsoleSenderMessage(c);
return;
}
sendMessage(plr, msg);
}
}

View File

@ -11,7 +11,7 @@ import java.util.Collections;
public class StringComparsion {
private String bestMatch;
private double match;
private double match = 0;
public StringComparsion(final String input, final Object[] objects) {
double c = 0;