mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
fixes #37
This commit is contained in:
parent
a30e8eec9a
commit
627400558b
2 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue