虚浮 TLocaleTitle 无法使用变量的问题

This commit is contained in:
坏黑
2018-07-01 12:18:22 +08:00
parent bb75dfbe68
commit 9c1d434434
4 changed files with 57 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import com.ilummc.tlib.resources.TLocale;
import me.skymc.taboolib.commands.SubCommand;
import me.skymc.taboolib.inventory.ItemUtils;
import me.skymc.taboolib.itemnbtapi.NBTItem;
import me.skymc.taboolib.json.JSONReader;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -23,7 +24,7 @@ public class InfoCommand extends SubCommand {
player.getItemInHand().getType().name(),
ItemUtils.getCustomName(player.getItemInHand()),
player.getItemInHand().getTypeId() + ":" + player.getItemInHand().getDurability(),
nbt.toString());
JSONReader.formatJson(nbt.asNBTString()));
}
}
}