mirror of
https://e.coding.net/circlecloud/MiaoChat.git
synced 2024-11-14 13:28:46 +00:00
feat: 使用新的语言库
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
990d983537
commit
7abe783220
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user