mirror of
https://e.coding.net/circlecloud/MiaoChat.git
synced 2024-12-22 19:18:47 +00:00
fix: 修复类库错误
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
d17faea50e
commit
f4713e06d9
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>pw.yumc</groupId>
|
<groupId>pw.yumc</groupId>
|
||||||
<artifactId>MiaoChat</artifactId>
|
<artifactId>MiaoChat</artifactId>
|
||||||
<version>1.7</version>
|
<version>1.7.1</version>
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}</finalName>
|
<finalName>${project.name}</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
@ -93,7 +93,7 @@
|
|||||||
<groupId>pw.yumc</groupId>
|
<groupId>pw.yumc</groupId>
|
||||||
<artifactId>YumCore</artifactId>
|
<artifactId>YumCore</artifactId>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<version>1.5</version>
|
<version>1.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
@ -62,7 +62,7 @@ public class MiaoChat extends JavaPlugin implements Executor, PluginMessageListe
|
|||||||
new ChatListener();
|
new ChatListener();
|
||||||
new CommandSub("MiaoChat", this);
|
new CommandSub("MiaoChat", this);
|
||||||
if (getChatConfig().isBungeeCord()) {
|
if (getChatConfig().isBungeeCord()) {
|
||||||
Log.info("已开启 BungeeCord 模式!");
|
Log.i("已开启 BungeeCord 模式!");
|
||||||
Bukkit.getMessenger().registerIncomingPluginChannel(this, "BungeeCord", this);
|
Bukkit.getMessenger().registerIncomingPluginChannel(this, "BungeeCord", this);
|
||||||
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
|
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
|
||||||
Bukkit.getPluginManager().registerEvents(this, this);
|
Bukkit.getPluginManager().registerEvents(this, this);
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
package pw.yumc.MiaoChat.config;
|
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;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -48,7 +52,6 @@ public class ChatConfig {
|
|||||||
*/
|
*/
|
||||||
public ChatRule getChatRule(Player player) {
|
public ChatRule getChatRule(Player player) {
|
||||||
for (ChatRule cr : rules) {
|
for (ChatRule cr : rules) {
|
||||||
Log.debug(cr.getName());
|
|
||||||
if (cr.check(player)) { return cr; }
|
if (cr.check(player)) { return cr; }
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user