mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
change itemdb output to use locale
added ItemDatabaseResponse to messages.properties
This commit is contained in:
@@ -507,5 +507,6 @@ recipeGridItem=\ \u00a7{0}X \u00a76is \u00a7c{1}
|
||||
recipeMore=\u00a76Type /{0} \u00a7c{1}\u00a76 <number> to see other recipes for \u00a7c{2}
|
||||
recipeWhere=\u00a76Where: {0}
|
||||
invalidIpAddress=\u00a74Invalid IP address
|
||||
ItemDatabaseResponse=\u00a7c{0}\u00a76- {1}\u00a76:{2}
|
||||
#, java-format
|
||||
Hello\ {0},\ how\ are\ you?=\u00a7fHello \u00a74{0}\u00a7f, how are you?
|
||||
|
@@ -30,7 +30,8 @@ public class Commanditemdb extends EssentialsCommand
|
||||
}
|
||||
final Material itemType = itemStack.getType();
|
||||
final int id = itemType.getId();
|
||||
sender.sendMessage(itemStack.getType().toString() + "- " + id + ":" + Integer.toString(itemStack.getData().getData()));
|
||||
final String data = Integer.toString(itemStack.getData().getData());
|
||||
sender.sendMessage(_("ItemDatabaseResponse", itemStack.getType().toString(), id, data));
|
||||
if (id != 0)
|
||||
{
|
||||
final int maxuses = itemType.getMaxDurability();
|
||||
|
Reference in New Issue
Block a user