forked from circlecloud/MiaoChat
fix: 修复部分BUG 自动初始化本地化工具
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
f43af0b3a1
commit
6178bb8725
@ -47,7 +47,7 @@ public class MiaoChat extends JavaPlugin implements CommandExecutor {
|
||||
public void onEnable() {
|
||||
new ChatListener();
|
||||
new CommandManager("MiaoChat", this);
|
||||
L10N.getItemFullName(new ItemStack(Material.DIAMOND_SWORD));
|
||||
L10N.getItemName(new ItemStack(Material.AIR));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -23,7 +23,7 @@ public class ChatRule extends InjectConfigurationSection {
|
||||
private Integer index;
|
||||
@Default("MiaoChat.default")
|
||||
private String permission;
|
||||
@Default("#world##player#: ")
|
||||
@Default("[world][player]: ")
|
||||
private String format;
|
||||
@Default("0")
|
||||
private Integer range;
|
||||
|
@ -117,7 +117,7 @@ public class ChatListener implements Listener {
|
||||
plist = C.Player.getOnlinePlayers();
|
||||
}
|
||||
for (final Entity ne : plist) {
|
||||
if (ne instanceof Player && !offList.contains(ne.getName())) {
|
||||
if (ne instanceof Player && !offList.contains(((Player) ne).getName())) {
|
||||
tr.send(ne);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user