更新
This commit is contained in:
@@ -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();
|
||||
// 清理数据
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user