mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
fixes #37
This commit is contained in:
parent
a30e8eec9a
commit
627400558b
@ -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 New Issue
Block a user