Added items load

This commit is contained in:
Lennart Kampshoff
2018-10-27 13:18:22 +02:00
parent 39cb03b2ec
commit cf10c52ab0
4 changed files with 43 additions and 7 deletions

View File

@@ -36,12 +36,12 @@ namespace reallife_gamemode.Server.Commands
return;
}
List<UserItem> itemList = player.GetData("items");
List<UserItem> itemList = player.GetUser().GetItems();
foreach (var item in itemList)
{
IItem iitem = item;
player.SendChatMessage(item. + );
IItem iitem = InventoryManager.GetItemById(item.ItemId);
player.SendChatMessage("Item: ~g~" + iitem.Name);
}
}