@@ -62,7 +62,7 @@ public class MiaoChat extends JavaPlugin implements Executor, PluginMessageListe
|
||||
new ChatListener();
|
||||
new CommandSub("MiaoChat", this);
|
||||
if (getChatConfig().isBungeeCord()) {
|
||||
Log.info("已开启 BungeeCord 模式!");
|
||||
Log.i("已开启 BungeeCord 模式!");
|
||||
Bukkit.getMessenger().registerIncomingPluginChannel(this, "BungeeCord", this);
|
||||
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
|
||||
Bukkit.getPluginManager().registerEvents(this, this);
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package pw.yumc.MiaoChat.config;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Map;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@@ -48,7 +52,6 @@ public class ChatConfig {
|
||||
*/
|
||||
public ChatRule getChatRule(Player player) {
|
||||
for (ChatRule cr : rules) {
|
||||
Log.debug(cr.getName());
|
||||
if (cr.check(player)) { return cr; }
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user