Correct Lang issue

This commit is contained in:
HappyPikachu 2015-02-04 23:19:50 -05:00
parent 8fc6242610
commit a31d435809

View File

@ -53,7 +53,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
menu += "\n"; menu += "\n";
} }
menu += GOLD + "" + BOLD + "0. " + RESET + "" + YELLOW + Lang.get("itemCreateLoadHand") + "\n"; menu += GOLD + "" + BOLD + "0. " + RESET + "" + YELLOW + Lang.get("itemCreateLoadHand") + "\n";
menu += YELLOW + "" + BOLD + "1. " + RESET + "" + GOLD + Lang.get("itemCreateSetID") + "\n"; menu += YELLOW + "" + BOLD + "1. " + RESET + "" + GOLD + Lang.get("itemCreateSetName") + "\n";
menu += YELLOW + "" + BOLD + "2. " + RESET + "" + GOLD + Lang.get("itemCreateSetAmount") + "\n"; menu += YELLOW + "" + BOLD + "2. " + RESET + "" + GOLD + Lang.get("itemCreateSetAmount") + "\n";
menu += YELLOW + "" + BOLD + "3. " + RESET + "" + GOLD + Lang.get("itemCreateSetData") + "\n"; menu += YELLOW + "" + BOLD + "3. " + RESET + "" + GOLD + Lang.get("itemCreateSetData") + "\n";
menu += YELLOW + "" + BOLD + "4. " + RESET + "" + GOLD + Lang.get("itemCreateSetEnchs") + "\n"; menu += YELLOW + "" + BOLD + "4. " + RESET + "" + GOLD + Lang.get("itemCreateSetEnchs") + "\n";
@ -116,7 +116,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
if (cc.getSessionData("tempName") != null) { if (cc.getSessionData("tempName") != null) {
return new AmountPrompt(); return new AmountPrompt();
} else { } else {
cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoID")); cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoName"));
return new ItemStackPrompt(oldPrompt); return new ItemStackPrompt(oldPrompt);
} }
@ -143,7 +143,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
if (cc.getSessionData("tempName") != null && cc.getSessionData("tempAmount") != null) { if (cc.getSessionData("tempName") != null && cc.getSessionData("tempAmount") != null) {
return new NamePrompt(); return new NamePrompt();
} else { } else {
cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoIDAmount")); cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoNameAmount"));
return new ItemStackPrompt(oldPrompt); return new ItemStackPrompt(oldPrompt);
} }
@ -152,7 +152,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
if (cc.getSessionData("tempName") != null && cc.getSessionData("tempAmount") != null) { if (cc.getSessionData("tempName") != null && cc.getSessionData("tempAmount") != null) {
return new LorePrompt(); return new LorePrompt();
} else { } else {
cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoIDAmount")); cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoNameAmount"));
return new ItemStackPrompt(oldPrompt); return new ItemStackPrompt(oldPrompt);
} }
@ -212,7 +212,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
cc.setSessionData("newItem", Boolean.TRUE); cc.setSessionData("newItem", Boolean.TRUE);
} else { } else {
cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoIDAmount")); cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateNoNameAmount"));
return new ItemStackPrompt(oldPrompt); return new ItemStackPrompt(oldPrompt);
} }
@ -230,7 +230,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
return YELLOW + Lang.get("itemCreateEnterID"); return YELLOW + Lang.get("itemCreateEnterName");
} }
@Override @Override
@ -248,7 +248,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
Material mat = ItemData.getMaterial(input); Material mat = ItemData.getMaterial(input);
if (mat == null) { if (mat == null) {
cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateInvalidID")); cc.getForWhom().sendRawMessage(RED + Lang.get("itemCreateInvalidName"));
return new IDPrompt(); return new IDPrompt();
} else { } else {
@ -577,4 +577,4 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil {
} }
} }