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() {
|
public void onEnable() {
|
||||||
new ChatListener();
|
new ChatListener();
|
||||||
new CommandManager("MiaoChat", this);
|
new CommandManager("MiaoChat", this);
|
||||||
L10N.getItemFullName(new ItemStack(Material.DIAMOND_SWORD));
|
L10N.getItemName(new ItemStack(Material.AIR));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -23,7 +23,7 @@ public class ChatRule extends InjectConfigurationSection {
|
|||||||
private Integer index;
|
private Integer index;
|
||||||
@Default("MiaoChat.default")
|
@Default("MiaoChat.default")
|
||||||
private String permission;
|
private String permission;
|
||||||
@Default("#world##player#: ")
|
@Default("[world][player]: ")
|
||||||
private String format;
|
private String format;
|
||||||
@Default("0")
|
@Default("0")
|
||||||
private Integer range;
|
private Integer range;
|
||||||
|
@ -117,7 +117,7 @@ public class ChatListener implements Listener {
|
|||||||
plist = C.Player.getOnlinePlayers();
|
plist = C.Player.getOnlinePlayers();
|
||||||
}
|
}
|
||||||
for (final Entity ne : plist) {
|
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);
|
tr.send(ne);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user