This commit is contained in:
坏黑
2018-05-08 23:31:26 +08:00
parent 674e993105
commit 19d318a610
89 changed files with 4664 additions and 2410 deletions

View File

@@ -38,7 +38,7 @@ public class ChatCatcher implements Listener {
if (playerdata.containsKey(e.getPlayer().getName()) && playerdata.get(e.getPlayer().getName()).size() > 0) {
e.setCancelled(true);
if (e.getMessage().equalsIgnoreCase("quit()")) {
if ("quit()".equalsIgnoreCase(e.getMessage())) {
// 退出引导
playerdata.get(e.getPlayer().getName()).removeFirst().cancel();
// 清理数据

View File

@@ -54,7 +54,7 @@ public class MsgUtils {
@Deprecated
public static String noPe() {
String s = Main.getInst().getConfig().getString("NO-PERMISSION-MESSAGE").replaceAll("&", "§");
if (s.equals("")) {
if ("".equals(s)) {
s = "§cCONFIG ERROR §8(NO-PERMISSION-MESSAGE)";
}
return s;
@@ -63,7 +63,7 @@ public class MsgUtils {
@Deprecated
public static String noClaim(String a) {
String s = Main.getInst().getConfig().getString("NO-CLAIM-MESSAGE").replaceAll("&", "§").replaceAll("%s%", a);
if (s.equals("")) {
if ("".equals(s)) {
s = "§cCONFIG ERROR §8(NO-CLAIM-MESSAGE)";
}
return s;