1. maybe someone can help me with that :p
    Getting an Item from a players input.
    with this here the player has to put in the Shortname....
    i dont get it how to change it that the player can input the Displayname "Metal Fragments"



    Code:
    if (!TryConvert(args[1], out itemname))
                        {
                            
                            return;
                        }
    if (displaynameToShortname.ContainsKey(itemname))
                 itemname = displaynameToShortname[itemname];
                    var definition = ItemManager.FindItemDefinition(itemname);                
                    if (definition == null)
                        {
                            SendChatMessage(player, "Item not found");
                            return;
                        }
               
                    var item = definition.displayName.english;
                   
               
                    var item1 = ItemManager.Create(definition, amounts, 0);
                    
     
  2. Code:
    item.info.shortname
    item.info.displayName
    Maybe?
     
  3. That does not rly help me.
     
  4. Code:
    [ChatCommand("test")]
    private void TestCommand(BasePlayer player, string command, string[] args)
    {
        string inputitem = string.Join(" ", args);
        ItemDefinition itemdef = ItemManager.FindItemDefinition(inputitem);
        if (itemdef != null)
        {
            SendReply(player, "Found item: " + itemdef.displayName.english, player);
        }
        else
        {
            SendReply(player, "Could not find: " + inputitem, player);
        }
    }