forked from MagicBane/Server
Rebuild of ./createitem
This commit is contained in:
@@ -40,9 +40,10 @@ public class CreateItemCmd extends AbstractDevCmd {
|
||||
int templateID = Integer.parseInt(words[0]);
|
||||
ItemTemplate template = ItemTemplate.templates.get(templateID);
|
||||
|
||||
if (template == null)
|
||||
if (template == null) {
|
||||
ChatManager.chatSystemInfo(playerCharacter, "No such template found.");
|
||||
return;
|
||||
|
||||
}
|
||||
int size = 1;
|
||||
|
||||
if (words.length == 2)
|
||||
@@ -51,7 +52,7 @@ public class CreateItemCmd extends AbstractDevCmd {
|
||||
for (int i = 0; i < size; i++) {
|
||||
|
||||
if (!playerCharacter.charItemManager.hasRoomInventory(template.item_wt)) {
|
||||
ChatManager.chatSystemInfo(playerCharacter, "You can not carry any more of that item.");
|
||||
ChatManager.chatSystemInfo(playerCharacter, "You are encumbered!.");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user