feat: 使用新的语言库

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-20 01:56:33 +08:00
parent 990d983537
commit 7abe783220
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class MiaoChat extends JavaPlugin implements CommandExecutor {
public void onEnable() {
new ChatListener();
new CommandManager("MiaoChat", this);
L10N.getItemName(new ItemStack(Material.AIR));
L10N.getName(new ItemStack(Material.AIR));
}
@Override

View File

@ -162,7 +162,7 @@ public class ChatListener implements Listener {
final ItemStack is = k == 'i' ? player.getItemInHand() : player.getInventory().getItem(k - '0' - 1);
if (is != null && is.getType() != Material.AIR) {
// Log.d("处理物品: %s", mm);
tr.then(String.format(ChatColor.translateAlternateColorCodes('&', cr.getItemformat()), L10N.getItemName(is)));
tr.then(String.format(ChatColor.translateAlternateColorCodes('&', cr.getItemformat()), L10N.getName(is)));
tr.item(is);
}
} else {