4
1
mirror of https://e.coding.net/circlecloud/MiaoChat.git synced 2024-12-21 19:08:47 +00:00

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() { 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

View File

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

View File

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