fix: 修复部分BUG 自动初始化本地化工具

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-12 16:41:39 +08:00
parent f43af0b3a1
commit 6178bb8725
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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);
}
}