1
0
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:
Riaku
2013-04-19 16:35:48 -05:00
parent 8c5620667a
commit 27eb723fa0
2 changed files with 3 additions and 1 deletions

View File

@@ -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} recipeMore=\u00a76Type /{0} \u00a7c{1}\u00a76 <number> to see other recipes for \u00a7c{2}
recipeWhere=\u00a76Where: {0} recipeWhere=\u00a76Where: {0}
invalidIpAddress=\u00a74Invalid IP address invalidIpAddress=\u00a74Invalid IP address
ItemDatabaseResponse=\u00a7c{0}\u00a76- {1}\u00a76:{2}
#, java-format #, java-format
Hello\ {0},\ how\ are\ you?=\u00a7fHello \u00a74{0}\u00a7f, how are you? Hello\ {0},\ how\ are\ you?=\u00a7fHello \u00a74{0}\u00a7f, how are you?

View File

@@ -30,7 +30,8 @@ public class Commanditemdb extends EssentialsCommand
} }
final Material itemType = itemStack.getType(); final Material itemType = itemStack.getType();
final int id = itemType.getId(); 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) if (id != 0)
{ {
final int maxuses = itemType.getMaxDurability(); final int maxuses = itemType.getMaxDurability();