Ejemplo n.º 1
0
    public void ServerCommand(string command, BasePlayer player)
    {
        HeldEntity heldEntity = this.GetHeldEntity() as HeldEntity;

        if (Object.op_Inequality((Object)heldEntity, (Object)null))
        {
            heldEntity.ServerCommand(this, command, player);
        }
        foreach (ItemMod itemMod in this.info.itemMods)
        {
            itemMod.ServerCommand(this, command, player);
        }
    }
Ejemplo n.º 2
0
    public void ServerCommand(string command, BasePlayer player)
    {
        HeldEntity heldEntity = this.GetHeldEntity() as HeldEntity;

        if (heldEntity != null)
        {
            heldEntity.ServerCommand(this, command, player);
        }
        ItemMod[] itemModArray = this.info.itemMods;
        for (int i = 0; i < (int)itemModArray.Length; i++)
        {
            itemModArray[i].ServerCommand(this, command, player);
        }
    }